Macro kyberlib::kyberlib_decrypt_message

source ·
macro_rules! kyberlib_decrypt_message {
    ($ss:expr, $ct:expr, $sk:expr) => { ... };
}
Expand description

Generates a shared secret for a given cipher text and private key.

§Arguments

  • ss - Output shared secret (an already allocated array of CRYPTO_BYTES bytes).
  • ct - Input cipher text (an already allocated array of CRYPTO_CIPHERTEXTBYTES bytes).
  • sk - Input private key (an already allocated array of CRYPTO_SECRETKEYBYTES bytes).

On failure, ss will contain a pseudo-random value. Macro to decrypt a message using the Kyber key encapsulation mechanism.