Crypto Lib
    Preparing search index...

    Function createFakeRecord

    • A fake record for client-enumeration protection (RFC 9807 ยง 6.3.2.2): a random client public key, a random masking key and an all-zero envelope. Create it once, store it with the real records, and pass it to generateKE2 whenever the credential identifier is unknown; the resulting KE2 has the same length and distribution as a real one, and the client then fails with OPAQUE_ENVELOPE_RECOVERY.

      Parameters

      • config: OpaqueConfig = {}

        Shared configuration (only the suite is used).

      Returns RegistrationRecord