Function speck_cbc::decrypt
[−]
[src]
pub fn decrypt<Endian: ByteOrder>(
input: &[u8],
output: &mut [u8],
key: &[u8],
iv: &[u8]
)
Decrypt data with SPECK-CBC.
Endian is the endianness of key, iv, and the blocks.
key and iv's length must be BLOCK_SIZE.
input's length must be a multiple of BLOCK_SIZE.
output's length must be the same as input's.