pub struct CtOutput<T> where
T: OutputSizeUser, { /* private fields */ }
Expand description
Fixed size output value which provides a safe Eq
implementation that
runs in constant time.
It is useful for implementing Message Authentication Codes (MACs).
Implementations
sourceimpl<T> CtOutput<T> where
T: OutputSizeUser,
impl<T> CtOutput<T> where
T: OutputSizeUser,
sourcepub fn new(
bytes: GenericArray<u8, <T as OutputSizeUser>::OutputSize>
) -> CtOutput<T>
pub fn new(
bytes: GenericArray<u8, <T as OutputSizeUser>::OutputSize>
) -> CtOutput<T>
Create a new CtOutput
value.
sourcepub fn into_bytes(self) -> GenericArray<u8, <T as OutputSizeUser>::OutputSize>
pub fn into_bytes(self) -> GenericArray<u8, <T as OutputSizeUser>::OutputSize>
Get the inner Output
array this type wraps.
Trait Implementations
sourceimpl<T> Clone for CtOutput<T> where
T: Clone + OutputSizeUser,
impl<T> Clone for CtOutput<T> where
T: Clone + OutputSizeUser,
sourceimpl<T> ConstantTimeEq for CtOutput<T> where
T: OutputSizeUser,
impl<T> ConstantTimeEq for CtOutput<T> where
T: OutputSizeUser,
sourceimpl<'a, T> From<&'a GenericArray<u8, <T as OutputSizeUser>::OutputSize>> for CtOutput<T> where
T: OutputSizeUser,
impl<'a, T> From<&'a GenericArray<u8, <T as OutputSizeUser>::OutputSize>> for CtOutput<T> where
T: OutputSizeUser,
sourcefn from(
bytes: &'a GenericArray<u8, <T as OutputSizeUser>::OutputSize>
) -> CtOutput<T>
fn from(
bytes: &'a GenericArray<u8, <T as OutputSizeUser>::OutputSize>
) -> CtOutput<T>
Converts to this type from the input type.
sourceimpl<T> From<GenericArray<u8, <T as OutputSizeUser>::OutputSize>> for CtOutput<T> where
T: OutputSizeUser,
impl<T> From<GenericArray<u8, <T as OutputSizeUser>::OutputSize>> for CtOutput<T> where
T: OutputSizeUser,
sourcefn from(
bytes: GenericArray<u8, <T as OutputSizeUser>::OutputSize>
) -> CtOutput<T>
fn from(
bytes: GenericArray<u8, <T as OutputSizeUser>::OutputSize>
) -> CtOutput<T>
Converts to this type from the input type.
sourceimpl<T> PartialEq<CtOutput<T>> for CtOutput<T> where
T: OutputSizeUser,
impl<T> PartialEq<CtOutput<T>> for CtOutput<T> where
T: OutputSizeUser,
impl<T> Eq for CtOutput<T> where
T: OutputSizeUser,
Auto Trait Implementations
impl<T> RefUnwindSafe for CtOutput<T> where
<<T as OutputSizeUser>::OutputSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
impl<T> Send for CtOutput<T>
impl<T> Sync for CtOutput<T>
impl<T> Unpin for CtOutput<T> where
<<T as OutputSizeUser>::OutputSize as ArrayLength<u8>>::ArrayType: Unpin,
impl<T> UnwindSafe for CtOutput<T> where
<<T as OutputSizeUser>::OutputSize as ArrayLength<u8>>::ArrayType: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more