mirror of
https://github.com/bitwarden/browser
synced 2025-12-24 04:04:24 +00:00
18 lines
567 B
TypeScript
18 lines
567 B
TypeScript
import { PrfKey } from "../../../types/key";
|
|
|
|
/**
|
|
* Contains methods for all crypto operations specific to the WebAuthn login flow.
|
|
*/
|
|
export abstract class WebAuthnLoginPrfCryptoServiceAbstraction {
|
|
/**
|
|
* Get the salt used to generate the PRF-output used when logging in with WebAuthn.
|
|
*/
|
|
getLoginWithPrfSalt: () => Promise<ArrayBuffer>;
|
|
|
|
/**
|
|
* Create a symmetric key from the PRF-output by stretching it.
|
|
* This should be used as `ExternalKey` with `RotateableKeySet`.
|
|
*/
|
|
createSymmetricKeyFromPrf: (prf: ArrayBuffer) => Promise<PrfKey>;
|
|
}
|