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