We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 170d9ee commit 69e6a66Copy full SHA for 69e6a66
1 file changed
tests/aead.rs
@@ -173,25 +173,3 @@ fn roundtrip_aes256() {
173
fn roundtrip_chacha20() {
174
roundtrip(TLS_CHACHA20_POLY1305_SHA256);
175
}
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
195
-fn roundtrip_chacha20() {
196
- roundtrip(TLS_CHACHA20_POLY1305_SHA256);
197
0 commit comments