|
1 | 1 | //! Test vectors are from NESSIE:
|
2 | 2 | //! https://www.cosic.esat.kuleuven.be/nessie/testvectors/
|
3 | 3 |
|
4 |
| -// TODO(tarcieri): update tests to support RustCrypto/traits#1916 |
5 |
| -//cipher::block_cipher_test!(aes128_test, "aes128", aes::Aes128); |
6 |
| -//cipher::block_cipher_test!(aes192_test, "aes192", aes::Aes192); |
7 |
| -//cipher::block_cipher_test!(aes256_test, "aes256", aes::Aes256); |
| 4 | +cipher::block_cipher_test!(aes128, aes::Aes128); |
| 5 | +cipher::block_cipher_test!(aes192, aes::Aes192); |
| 6 | +cipher::block_cipher_test!(aes256, aes::Aes256); |
| 7 | + |
| 8 | +cipher::block_cipher_test!(aes128_enc, "aes128", aes::Aes128Enc, encrypt_test); |
| 9 | +cipher::block_cipher_test!(aes192_enc, "aes192", aes::Aes192Enc, encrypt_test); |
| 10 | +cipher::block_cipher_test!(aes256_enc, "aes256", aes::Aes256Enc, encrypt_test); |
| 11 | + |
| 12 | +cipher::block_cipher_test!(aes128_dec, "aes128", aes::Aes128Dec, decrypt_test); |
| 13 | +cipher::block_cipher_test!(aes192_dec, "aes192", aes::Aes192Dec, decrypt_test); |
| 14 | +cipher::block_cipher_test!(aes256_dec, "aes256", aes::Aes256Dec, decrypt_test); |
0 commit comments