Struct tomcrypt_sys::symmetric_CTR
[−]
[src]
#[repr(C)]pub struct symmetric_CTR { pub cipher: c_int, pub blocklen: c_int, pub padlen: c_int, pub mode: c_int, pub ctrlen: c_int, pub ctr: [c_uchar; 128], pub pad: [c_uchar; 128], pub key: symmetric_key, }
A block cipher CTR structure
Fields
cipher: c_int
The index of the cipher chosen
blocklen: c_int
The block size of the given cipher
padlen: c_int
The padding offset
mode: c_int
The mode (endianess) of the CTR, 0==little, 1==big
ctrlen: c_int
counter width
ctr: [c_uchar; 128]
The counter
pad: [c_uchar; 128]
The pad used to encrypt/decrypt
key: symmetric_key
The scheduled key