rust-crypto icon indicating copy to clipboard operation
rust-crypto copied to clipboard

AeadEncryptor::encrypt() does not actually have a parameter for associated data

Open oconnor663 opened this issue 7 years ago • 1 comments

Compare to the ad parameter in ring.

oconnor663 avatar Jan 25 '17 17:01 oconnor663

In Rust-Crypto the associated data should be passed to the crypto::some_module::SomeAeadEncryptorAlgo::new() function, and not the some_aead_encryptor_instance.encrypt().

niluxv avatar Jan 26 '18 18:01 niluxv