pub struct AesGcmCtrV1 {
pub aad_prefix: Option<Vec<u8>>,
pub aad_file_unique: Option<Vec<u8>>,
pub supply_aad_prefix: Option<bool>,
}
Fields§
§aad_prefix: Option<Vec<u8>>
AAD prefix *
aad_file_unique: Option<Vec<u8>>
Unique file identifier part of AAD suffix *
supply_aad_prefix: Option<bool>
In files encrypted with AAD prefix without storing it, readers must supply the prefix *
Implementations§
Source§impl AesGcmCtrV1
impl AesGcmCtrV1
pub fn new<F1, F2, F3>( aad_prefix: F1, aad_file_unique: F2, supply_aad_prefix: F3, ) -> AesGcmCtrV1
pub fn read_from_in_protocol<T: TInputProtocol>( i_prot: &mut T, ) -> Result<AesGcmCtrV1>
pub fn write_to_out_protocol<T: TOutputProtocol>( &self, o_prot: &mut T, ) -> Result<usize>
Trait Implementations§
Source§impl Clone for AesGcmCtrV1
impl Clone for AesGcmCtrV1
Source§fn clone(&self) -> AesGcmCtrV1
fn clone(&self) -> AesGcmCtrV1
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AesGcmCtrV1
impl Debug for AesGcmCtrV1
Source§impl Hash for AesGcmCtrV1
impl Hash for AesGcmCtrV1
Source§impl Ord for AesGcmCtrV1
impl Ord for AesGcmCtrV1
Source§fn cmp(&self, other: &AesGcmCtrV1) -> Ordering
fn cmp(&self, other: &AesGcmCtrV1) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AesGcmCtrV1
impl PartialEq for AesGcmCtrV1
Source§impl PartialOrd for AesGcmCtrV1
impl PartialOrd for AesGcmCtrV1
Source§impl ReadThrift for AesGcmCtrV1
impl ReadThrift for AesGcmCtrV1
fn read_from_in_protocol<T: TInputProtocol>( i_prot: &mut T, ) -> Result<AesGcmCtrV1>
impl Eq for AesGcmCtrV1
impl StructuralPartialEq for AesGcmCtrV1
Auto Trait Implementations§
impl Freeze for AesGcmCtrV1
impl RefUnwindSafe for AesGcmCtrV1
impl Send for AesGcmCtrV1
impl Sync for AesGcmCtrV1
impl Unpin for AesGcmCtrV1
impl UnwindSafe for AesGcmCtrV1
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)