[go: up one dir, main page]

ctr 0.10.0-rc.0

CTR block modes of operation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use aes::{Aes128, Aes256};
use ctr::{Ctr128BE, CtrCore, flavors};

cipher::stream_cipher_test!(aes128_ctr_core, "aes128-ctr", Ctr128BE<Aes128>);
cipher::stream_cipher_test!(aes256_ctr_core, "aes256-ctr", Ctr128BE<Aes256>);
cipher::stream_cipher_seek_test!(aes128_ctr_seek, Ctr128BE<Aes128>);
cipher::stream_cipher_seek_test!(aes256_ctr_seek, Ctr128BE<Aes256>);
cipher::iv_state_test!(
    aes128_ctr_iv_state,
    CtrCore<Aes128, flavors::Ctr128BE>,
    apply_ks,
);