Skip to content

Commit ab2d6a8

Browse files
committed
Fixes
1 parent 1b1b609 commit ab2d6a8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/aead.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ impl Aead {
622622
PK11_AEADOp(
623623
*self.ctx,
624624
CK_GENERATOR_FUNCTION::from(CKG_NO_GENERATE),
625-
0,
625+
c_int_len(NONCE_LEN - COUNTER_LEN)?,
626626
nonce.as_mut_ptr(),
627627
c_int_len(nonce.len())?,
628628
aad.as_ptr(),
@@ -848,7 +848,7 @@ mod test {
848848
}
849849

850850
#[test]
851-
fn seal_with_seq_chacha20poly1305() {
851+
fn encrypt_with_seq_chacha20poly1305() {
852852
const KEY: &[u8] = &[0x42; 32];
853853
roundtrip_encrypt_with_seq(AeadAlgorithms::ChaCha20Poly1305, KEY);
854854
}

0 commit comments

Comments
 (0)