pub fn encrypt_aesgcm(
remote_pub: &[u8],
remote_auth: &[u8],
data: &[u8],
) -> Result<AesGcmEncryptedBlock>
Expand description
Encrypt a block using legacy AESGCM encoding.
remote_pub
: The public key of the remote message recipientremote_auth
: The authentication secret of the remote message recipientdata
: the data to encrypt
You should only use this function if you know that you definitely need
to use the legacy format. The encrypt
function should
be preferred where possible.