PrfCrypto
object PrfCrypto
Low-level helpers for PRF extension request wiring and symmetric crypto operations.
Functions
Link copied to clipboard
suspend fun createSession(prfResults: AuthenticationExtensionsPRFValues, outputSelection: PrfOutputSelection = PrfOutputSelection.FIRST, context: String = DEFAULT_CONTEXT, hkdfSalt: Base64UrlBytes? = null): PrfCryptoSession
Link copied to clipboard
Link copied to clipboard
suspend fun deriveAes256Key(prfOutput: Base64UrlBytes, context: String = DEFAULT_CONTEXT, hkdfSalt: Base64UrlBytes? = null): Base64UrlBytes
Link copied to clipboard
suspend fun encryptAesGcm(key: Base64UrlBytes, plaintext: Base64UrlBytes, associatedData: Base64UrlBytes? = null): PrfCiphertext
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun withPrfEvaluation(options: PublicKeyCredentialRequestOptions, evaluation: AuthenticationExtensionsPRFValues): PublicKeyCredentialRequestOptions
fun withPrfEvaluation(options: PublicKeyCredentialRequestOptions, firstSalt: Base64UrlBytes, secondSalt: Base64UrlBytes? = null): PublicKeyCredentialRequestOptions