Skip to main content

NoAlgorithms

Enum NoAlgorithms 

Source
pub enum NoAlgorithms {}
Expand description

Type which an implementation of Cal can use when it implements no algorithm for a particular provider.

This type is uninhabited and can stand in for all of the Algorithm associated types as well as state and result types.

Trait Implementations§

Source§

impl AeadAlgorithm for NoAlgorithms

Source§

fn key_length(&self) -> usize

Length of a key in bytes.
Source§

fn tag_length(&self) -> usize

Length of the cryptographic tag in bytes.
Source§

fn nonce_length(&self) -> usize

Length of the nonce (called IV in some algorithms) in bytes.
Source§

fn from_cose_number(number: impl Into<i128>) -> Option<Self>

Selects an AEAD algorithm from its COSE number. Read more
Source§

impl AsRef<[u8]> for NoAlgorithms

Source§

fn as_ref(&self) -> &[u8]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Clone for NoAlgorithms

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for NoAlgorithms

Source§

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

Formats the value using the given formatter. Read more
Source§

impl DhAlgorithm for NoAlgorithms

Source§

fn output_length(&self) -> usize

Length of the shared secret produced by keys of this algorithm.
Source§

fn from_cose_ecdh(curve: impl Into<i128>) -> Option<Self>

Selects a DH algorithm from its COSE numbers. Read more
Source§

impl Eq for NoAlgorithms

Source§

impl HashAlgorithm for NoAlgorithms

Source§

fn len(&self) -> usize

Output length of the hash algorithm.
Source§

fn from_cose_number(number: impl Into<i128>) -> Option<Self>

Selects a hash algorithm from its COSE number. Read more
Source§

fn from_ni_id(number: u8) -> Option<Self>

Selects a hash algorithm from a Suite ID out of the IANA Named Information Hash Algorith Registry Read more
Source§

fn from_ni_name(name: &str) -> Option<Self>

Selects a hash algorithm from a Hash Name String out of the IANA Named Information Hash Algorith Registry Read more
Source§

impl HmacAlgorithm for NoAlgorithms

Source§

const MAX_LEN: usize = 0

The maximum output of Self::len(). Read more
Source§

type MaxLenBuf = [u8; 0]

A [u8; MAX_LEN] type. Read more
Source§

fn len(&self) -> usize

Output length in bytes. Read more
Source§

fn from_cose_number(number: impl Into<i128>) -> Option<Self>

Selects an HMAC algorithm from its COSE number. Read more
Source§

impl PartialEq for NoAlgorithms

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for NoAlgorithms

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

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

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

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

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.