Macro 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.