Crypto Lib
    Preparing search index...

    Function finalizeRegistrationRequest

    • FinalizeRegistrationRequest (RFC 9807 § 5.2.3): finish the OPRF, run the KSF and build the record for the server.

      Parameters

      • password: string | Uint8Array<ArrayBufferLike>

        The password given to createRegistrationRequest.

      • blind: Uint8Array

        The blind it returned.

      • response: RegistrationResponse

        The server's RegistrationResponse.

      • identities: Identities = {}

        Optional client and server identities; the same values must be used at every login.

      • config: OpaqueConfig = {}

        Shared configuration.

      Returns { record: RegistrationRecord; exportKey: Uint8Array }

      The record to send to the server, and the client-only export key.

      CryptoError if the response or server public key is invalid.