macro_rules! kyberlib_encrypt_message {
($ct:expr, $ss:expr, $pk:expr, $rng:expr, $seed:expr) => { ... };
}Expand description
Generates cipher text and a shared secret for a given public key.
§Arguments
ct- Output cipher text (an already allocated array of CRYPTO_CIPHERTEXTBYTES bytes).ss- Output shared secret (an already allocated array of CRYPTO_BYTES bytes).pk- Input public key (an already allocated array of CRYPTO_PUBLICKEYBYTES bytes)._rng- Random number generator implementing RngCore + CryptoRng._seed- Optional seed for random number generation.
§Errors
Returns a KyberLibError on failure.