Skip to content

Commit 704b385

Browse files
committed
Rust: Fix a mistake in the test.
1 parent a0f4fa2 commit 704b385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/ql/test/query-tests/security/CWE-798/test_cipher.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,5 +139,5 @@ fn test_aes_gcm(
139139
_ = getrandom::fill(&mut key4).unwrap();
140140
_ = getrandom2::getrandom(&mut nonce4).unwrap();
141141
let cipher4 = Aes256Gcm::new(&key4.into());
142-
let _ = cipher2.encrypt(&nonce4.into(), b"plaintext".as_ref()).unwrap();
142+
let _ = cipher4.encrypt(&nonce4.into(), b"plaintext".as_ref()).unwrap();
143143
}

0 commit comments

Comments
 (0)