We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b1b609 commit ab2d6a8Copy full SHA for ab2d6a8
1 file changed
src/aead.rs
@@ -622,7 +622,7 @@ impl Aead {
622
PK11_AEADOp(
623
*self.ctx,
624
CK_GENERATOR_FUNCTION::from(CKG_NO_GENERATE),
625
- 0,
+ c_int_len(NONCE_LEN - COUNTER_LEN)?,
626
nonce.as_mut_ptr(),
627
c_int_len(nonce.len())?,
628
aad.as_ptr(),
@@ -848,7 +848,7 @@ mod test {
848
}
849
850
#[test]
851
- fn seal_with_seq_chacha20poly1305() {
+ fn encrypt_with_seq_chacha20poly1305() {
852
const KEY: &[u8] = &[0x42; 32];
853
roundtrip_encrypt_with_seq(AeadAlgorithms::ChaCha20Poly1305, KEY);
854
0 commit comments