#[repr(C)]pub struct Params {
pub key: *const u8,
pub iv: *const u8,
pub aad: *const u8,
pub aad_len: usize,
pub length: usize,
pub clear: *const u8,
pub cipher: *mut u8,
pub tag: *mut u8,
}Expand description
Parameters of encrypt
Fields§
§key: *const u8The 32 bytes key.
iv: *const u8The 12 bytes IV.
aad: *const u8The additional authenticated data.
aad_len: usizeThe length of the additional authenticated data.
length: usizeThe length of the clear (and cipher) text.
clear: *const u8The clear text.
A null pointer indicates that the clear text is in the cipher text and should be encrypted in place.
cipher: *mut u8The cipher text.
tag: *mut u8The authentication tag (see super::tag_length()).
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