use aes::*; use cbc::{Decryptor, Encryptor}; use cipher::{block_mode_dec_test, block_mode_enc_test, iv_state_test}; iv_state_test!(aes128_cbc_enc_iv_state, Encryptor, encrypt); iv_state_test!(aes128_cbc_dec_iv_state, Decryptor, decrypt); iv_state_test!(aes192_cbc_enc_iv_state, Encryptor, encrypt); iv_state_test!(aes192_cbc_dec_iv_state, Decryptor, decrypt); iv_state_test!(aes256_cbc_enc_iv_state, Encryptor, encrypt); iv_state_test!(aes256_cbc_dec_iv_state, Decryptor, decrypt); // Test vectors from CVAP "AES Multiblock Message Test (MMT) Sample Vectors": // block_mode_enc_test!(aes128_cbc_enc_test, "aes128", Encryptor); block_mode_dec_test!(aes128_cbc_dec_test, "aes128", Decryptor); block_mode_enc_test!(aes128enc_cbc_enc_test, "aes128", Encryptor); block_mode_dec_test!(aes128dec_cbc_dec_test, "aes128", Decryptor); block_mode_enc_test!(aes192_cbc_enc_test, "aes192", Encryptor); block_mode_dec_test!(aes192_cbc_dec_test, "aes192", Decryptor); block_mode_enc_test!(aes192enc_cbc_enc_test, "aes192", Encryptor); block_mode_dec_test!(aes192dec_cbc_dec_test, "aes192", Decryptor); block_mode_enc_test!(aes256_cbc_enc_test, "aes256", Encryptor); block_mode_dec_test!(aes256_cbc_dec_test, "aes256", Decryptor); block_mode_enc_test!(aes256enc_cbc_enc_test, "aes256", Encryptor); block_mode_dec_test!(aes256dec_cbc_dec_test, "aes256", Decryptor);