PrfCrypto

object PrfCrypto

Low-level helpers for PRF extension request wiring and symmetric crypto operations.

Properties

Link copied to clipboard

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