Function ece::decrypt

source ·
pub fn decrypt(
    components: &EcKeyComponents,
    auth: &[u8],
    data: &[u8]
) -> Result<Vec<u8>>
Expand description

Decrypt a block using the AES128GCM encryption scheme.

  • components : The public and private key components of the local message recipient
  • auth : The authentication secret of the remote message recipient
  • data : The encrypted data block

For the equivalent function using legacy AESGCM encryption scheme use legacy::decrypt_aesgcm.