diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 17:39:49 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 17:39:49 +0000 |
commit | a0aa2307322cd47bbf416810ac0292925e03be87 (patch) | |
tree | 37076262a026c4b48c8a0e84f44ff9187556ca35 /rust/vendor/aes/tests/ctr.rs | |
parent | Initial commit. (diff) | |
download | suricata-a0aa2307322cd47bbf416810ac0292925e03be87.tar.xz suricata-a0aa2307322cd47bbf416810ac0292925e03be87.zip |
Adding upstream version 1:7.0.3.upstream/1%7.0.3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'rust/vendor/aes/tests/ctr.rs')
-rw-r--r-- | rust/vendor/aes/tests/ctr.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rust/vendor/aes/tests/ctr.rs b/rust/vendor/aes/tests/ctr.rs new file mode 100644 index 0000000..3fd3c9e --- /dev/null +++ b/rust/vendor/aes/tests/ctr.rs @@ -0,0 +1,9 @@ +#![cfg(feature = "ctr")] + +use aes::{Aes128Ctr, Aes256Ctr}; + +// Random tests generated by OpenSSL +cipher::stream_cipher_test!(aes128_ctr_core, Aes128Ctr, "aes128-ctr"); +cipher::stream_cipher_test!(aes256_ctr_core, Aes256Ctr, "aes256-ctr"); +cipher::stream_cipher_seek_test!(aes128_ctr_seek, Aes128Ctr); +cipher::stream_cipher_seek_test!(aes256_ctr_seek, Aes256Ctr); |