Struct CtOutput

pub struct CtOutput<T: OutputSizeUser> { /* private fields */ }

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

impl<T: OutputSizeUser> CtOutput<T>

fn new(bytes: Output<T>) -> Self

Create a new CtOutput value.

fn as_bytes(&self) -> &Output<T>

Get reference to the inner Output array this type wraps.

fn into_bytes(&self) -> Output<T>

Get the inner Output array this type wraps.

Trait Implementations

impl<'a, T: OutputSizeUser> From<&'a Array<u8, <T as OutputSizeUser>::OutputSize>> for CtOutput<T>

fn from(bytes: &'a Output<T>) -> Self

impl<T: Clone + OutputSizeUser> Clone for CtOutput<T>

fn clone(&self) -> Self

impl<T: OutputSizeUser> Debug for CtOutput<T>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<T: OutputSizeUser> Drop for CtOutput<T>

fn drop(&mut self)

impl<T: OutputSizeUser> Eq for CtOutput<T>

impl<T: OutputSizeUser> From<Array<u8, <T as OutputSizeUser>::OutputSize>> for CtOutput<T>

fn from(bytes: Output<T>) -> Self

impl<T: OutputSizeUser> PartialEq for CtOutput<T>

fn eq(&self, other: &CtOutput<T>) -> bool

impl<T: OutputSizeUser> ZeroizeOnDrop for CtOutput<T>

Auto Trait Implementations

impl<T> Freeze for CtOutput<T> where Array<u8, <T as OutputSizeUser>::OutputSize>: Freeze,

impl<T> RefUnwindSafe for CtOutput<T> where Array<u8, <T as OutputSizeUser>::OutputSize>: RefUnwindSafe,

impl<T> Send for CtOutput<T> where Array<u8, <T as OutputSizeUser>::OutputSize>: Send,

impl<T> Sync for CtOutput<T> where Array<u8, <T as OutputSizeUser>::OutputSize>: Sync,

impl<T> Unpin for CtOutput<T> where Array<u8, <T as OutputSizeUser>::OutputSize>: Unpin,

impl<T> UnsafeUnpin for CtOutput<T> where Array<u8, <T as OutputSizeUser>::OutputSize>: UnsafeUnpin,

impl<T> UnwindSafe for CtOutput<T> where Array<u8, <T as OutputSizeUser>::OutputSize>: UnwindSafe,

Blanket Implementations

impl<T> Any for CtOutput<T> where T: 'static + ?Sized,

impl<T> Borrow<T> for CtOutput<T> where T: ?Sized,

impl<T> BorrowMut<T> for CtOutput<T> where T: ?Sized,

impl<T> CloneToUninit for CtOutput<T> where T: Clone,

impl<T> From<T> for CtOutput<T>

impl<T> Same for CtOutput<T>

impl<T> ToOwned for CtOutput<T> where T: Clone,

impl<T, U> Into<U> for CtOutput<T> where U: From<T>,

impl<T, U> TryFrom<U> for CtOutput<T> where U: Into<T>,

impl<T, U> TryInto<U> for CtOutput<T> where U: TryFrom<T>,