Skip to contents

Encapsulate a shared secret under a recipient's ML-KEM-768 public key. Returns the ciphertext (1088 B) the sender transmits, plus the 32-byte shared secret the sender holds locally.

Usage

morie_crypto_mlkem768_encaps(pk)

Arguments

pk

1184-byte raw vector (recipient's ML-KEM-768 public key).

Value

List with ct (raw, 1088 B) and shared_secret (raw, 32 B).