API reference for mlkem/main
    Preparing search index...

    Function expandMlKem512PrivateKey

    • Expands a private key of ML-KEM-512, which is a 64-octet seed, to the decapsulation key of FIPS 203, which is 1632 octets in length.

      It is for interoperability with an implementation which needs the expanded form. createMlKem512Decapsulator accepts both of them.

      Parameters

      • seed: Uint8Array

        A 64-octet seed (d || z in FIPS 203).

      Returns Promise<Uint8Array<ArrayBufferLike>>

      A promise that resolves to the private key in the expanded form.