Generates a shared secret from the encapsulated ciphertext and the private key.
A ciphertext generated by encap.
A private key.
A shared secret.
Generates a ciphertext for the public key and a shared secret.
A public key.
Optionalseed: Uint8Array
An optional 32-octet seed for the deterministic shared secret generation.
A ciphertext (the encapsulation of the shared secret) and a shared secret.
ML-KEM-768 with asynchronous operations which take the keys.
Deprecated
Use createMlKem768Encapsulator and createMlKem768Decapsulator instead. This class will be removed in 4.0.0.