#[repr(C)]pub struct Params {
pub key: *const u8,
pub iv: *const u8,
pub len: usize,
pub clear: *const u8,
pub cipher: *mut u8,
}Expand description
Parameters of encrypt
Fields§
§key: *const u8The 16 bytes key to encrypt with.
iv: *const u8The 8 bytes IV to encrypt with.
len: usizeLength in bytes of the clear text.
This must be at most 251 bytes. The cipher length must be 4 bytes longer than
this value.
clear: *const u8The clear text to encrypt from.
Its length must be provided in the len field.
cipher: *mut u8The cipher text to encrypt to.
Its length must be len + 4 bytes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Params
impl RefUnwindSafe for Params
impl !Send for Params
impl !Sync for Params
impl Unpin for Params
impl UnwindSafe for Params
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