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

    Interface MlKemDecapsulatorInterface

    Interface for decapsulation of ML-KEM with the private key which the instance holds.

    Use the async factory functions createMlKem512Decapsulator, createMlKem768Decapsulator, or createMlKem1024Decapsulator to create instances that implement this interface, or generateMlKem768Decapsulator and the like for a key pair which is used once.

    interface MlKemDecapsulatorInterface {
        decap(ct: Uint8Array): Promise<Uint8Array<ArrayBufferLike>>;
        destroy(): void;
    }
    Index
    • Decapsulates: returns sharedSecret.

      Parameters

      • ct: Uint8Array

      Returns Promise<Uint8Array<ArrayBufferLike>>