Function speck_cbc::encrypt
[−]
[src]
pub fn encrypt<Endian: ByteOrder>(buffer: &mut [u8], key: &[u8], iv: &[u8])
Encrypt 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
.