pub struct CryptoWrapper<P> {
pub crypto_header: CryptoHeader,
pub payload: P,
pub mic_state: MicState,
}Expand description
Wrapper around a payload, which adds fields required for cryptographic algorithms.
This currently does not do any encryption or MIC calculation on it’s own, but merely generates the correctly layouted data and adds the CCMP/GCMP header.
Fields§
§crypto_header: CryptoHeaderThe cryptographic header prepended to the payload.
payload: PThe actual payload.
mic_state: MicStateThe state of the MIC.
Trait Implementations§
Source§impl<P: Clone> Clone for CryptoWrapper<P>
impl<P: Clone> Clone for CryptoWrapper<P>
Source§fn clone(&self) -> CryptoWrapper<P>
fn clone(&self) -> CryptoWrapper<P>
Returns a duplicate 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<P: Debug> Debug for CryptoWrapper<P>
impl<P: Debug> Debug for CryptoWrapper<P>
Source§impl<P> Format for CryptoWrapper<P>
impl<P> Format for CryptoWrapper<P>
Source§impl<P: Hash> Hash for CryptoWrapper<P>
impl<P: Hash> Hash for CryptoWrapper<P>
Source§impl<P: MeasureWith<()>> MeasureWith<()> for CryptoWrapper<P>
impl<P: MeasureWith<()>> MeasureWith<()> for CryptoWrapper<P>
Source§fn measure_with(&self, ctx: &()) -> usize
fn measure_with(&self, ctx: &()) -> usize
How large is
Self, given the ctx?Source§impl<P: Ord> Ord for CryptoWrapper<P>
impl<P: Ord> Ord for CryptoWrapper<P>
Source§fn cmp(&self, other: &CryptoWrapper<P>) -> Ordering
fn cmp(&self, other: &CryptoWrapper<P>) -> 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<P: PartialEq> PartialEq for CryptoWrapper<P>
impl<P: PartialEq> PartialEq for CryptoWrapper<P>
Source§impl<P: PartialOrd> PartialOrd for CryptoWrapper<P>
impl<P: PartialOrd> PartialOrd for CryptoWrapper<P>
Source§impl<'a, P: TryFromCtx<'a, PayloadCtx, Error = Error>, PayloadCtx: Copy> TryFromCtx<'a, (MicState, PayloadCtx)> for CryptoWrapper<P>
impl<'a, P: TryFromCtx<'a, PayloadCtx, Error = Error>, PayloadCtx: Copy> TryFromCtx<'a, (MicState, PayloadCtx)> for CryptoWrapper<P>
Source§impl<P: TryIntoCtx<(), Error = Error>> TryIntoCtx for CryptoWrapper<P>
impl<P: TryIntoCtx<(), Error = Error>> TryIntoCtx for CryptoWrapper<P>
impl<P: Copy> Copy for CryptoWrapper<P>
impl<P: Eq> Eq for CryptoWrapper<P>
impl<P> StructuralPartialEq for CryptoWrapper<P>
Auto Trait Implementations§
impl<P> Freeze for CryptoWrapper<P>where
P: Freeze,
impl<P> RefUnwindSafe for CryptoWrapper<P>where
P: RefUnwindSafe,
impl<P> Send for CryptoWrapper<P>where
P: Send,
impl<P> Sync for CryptoWrapper<P>where
P: Sync,
impl<P> Unpin for CryptoWrapper<P>where
P: Unpin,
impl<P> UnwindSafe for CryptoWrapper<P>where
P: UnwindSafe,
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