Struct AesKey
openssl::aes
pub struct AesKey(_);
The key used to encrypt or decrypt cipher blocks.
impl AesKey
fn new_encrypt(key: &[u8]) -> Result<AesKey, KeyError>
Prepares a key for encryption.
Returns an error if the key is not 128, 192, or 256 bits.
fn new_decrypt(key: &[u8]) -> Result<AesKey, KeyError>
Prepares a key for decryption.