Function speck_cbc::decrypt
[−]
[src]
pub fn decrypt<Endian: ByteOrder>(buffer: &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
.
buffer
's length must be a multiple of BLOCK_SIZE
.