Skip to content

Commit 170d9ee

Browse files
committed
Fixes
1 parent 5e9162d commit 170d9ee

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/aead.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ fn roundtrip_chacha20() {
176176

177177
fn roundtrip(cipher: Cipher) {
178178
let aead = make_aead(cipher);
179-
let mut buf = &mut [0u8; 1024][..];
179+
let buf = &mut [0u8; 1024][..];
180180

181-
let ct = aead.encrypt(42, AAD, PLAINTEXT, &mut buf).expect("encrypt");
181+
let ct = aead.encrypt(42, AAD, PLAINTEXT, buf).expect("encrypt");
182182
let pt_buf = &mut [0u8; 1024][..];
183183
let pt = aead
184184
.decrypt(42, AAD, ct, &mut pt_buf[..ct.len()])

0 commit comments

Comments
 (0)