#[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,
}Expand description
A block cipher CTR structure
Fields§
§cipher: c_intThe index of the cipher chosen
blocklen: c_intThe block size of the given cipher
padlen: c_intThe padding offset
mode: c_intThe mode (endianess) of the CTR, 0==little, 1==big
ctrlen: c_intcounter width
ctr: [c_uchar; 128]The counter
pad: [c_uchar; 128]The pad used to encrypt/decrypt
key: symmetric_keyThe scheduled key
Trait Implementations§
Source§impl Clone for symmetric_CTR
impl Clone for symmetric_CTR
impl Copy for symmetric_CTR
Auto Trait Implementations§
impl Freeze for symmetric_CTR
impl RefUnwindSafe for symmetric_CTR
impl !Send for symmetric_CTR
impl !Sync for symmetric_CTR
impl Unpin for symmetric_CTR
impl UnwindSafe for symmetric_CTR
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more