[go: up one dir, main page]

aes 0.7.1

Pure Rust implementation of the Advanced Encryption Standard (a.k.a. Rijndael) including support for AES in counter mode (a.k.a. AES-CTR)
Documentation
1
2
3
4
5
6
7
8
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);