Skip to content

Commit 69e6a66

Browse files
committed
Fix
1 parent 170d9ee commit 69e6a66

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

tests/aead.rs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -173,25 +173,3 @@ fn roundtrip_aes256() {
173173
fn roundtrip_chacha20() {
174174
roundtrip(TLS_CHACHA20_POLY1305_SHA256);
175175
}
176-
177-
fn roundtrip(cipher: Cipher) {
178-
let aead = make_aead(cipher);
179-
let buf = &mut [0u8; 1024][..];
180-
181-
let ct = aead.encrypt(42, AAD, PLAINTEXT, buf).expect("encrypt");
182-
let pt_buf = &mut [0u8; 1024][..];
183-
let pt = aead
184-
.decrypt(42, AAD, ct, &mut pt_buf[..ct.len()])
185-
.expect("decrypt");
186-
assert_eq!(pt, PLAINTEXT);
187-
}
188-
189-
#[test]
190-
fn roundtrip_aes256() {
191-
roundtrip(TLS_AES_256_GCM_SHA384);
192-
}
193-
194-
#[test]
195-
fn roundtrip_chacha20() {
196-
roundtrip(TLS_CHACHA20_POLY1305_SHA256);
197-
}

0 commit comments

Comments
 (0)