[][src]Struct parsec_interface::operations::key_attributes::Algorithm

pub struct Algorithm(_);

Wrapper around AlgorithmInner, used to statically ensure that any algorithm used in KeyAttributes is a valid combination of algorithms and options.

Methods

impl Algorithm[src]

pub fn cipher(cipher: CipherAlgorithm) -> Algorithm[src]

pub fn asymmetric_encryption(
    enc: AsymmetricEncryptionAlgorithm,
    hash: Option<HashAlgorithm>
) -> Algorithm
[src]

pub fn mac(
    mac: MacAlgorithm,
    hash: Option<HashAlgorithm>,
    tag_len: Option<u32>
) -> Algorithm
[src]

pub fn aead(aead: AeadAlgorithm, tag_len: Option<u32>) -> Algorithm[src]

pub fn sign(sign: SignAlgorithm, hash: Option<HashAlgorithm>) -> Algorithm[src]

pub fn key_derivation(
    key_derivation: KeyDerivationFunction,
    hash: Option<HashAlgorithm>
) -> Algorithm
[src]

pub fn key_agreement(
    key_agreement: KeyAgreementAlgorithm,
    key_derivation: KeyDerivationFunction,
    hash: Option<HashAlgorithm>
) -> Algorithm
[src]

pub fn hash(hash: HashAlgorithm) -> Algorithm[src]

pub fn inner(&self) -> &AlgorithmInner[src]

Trait Implementations

impl Clone for Algorithm[src]

impl Copy for Algorithm[src]

impl Debug for Algorithm[src]

impl PartialEq<Algorithm> for Algorithm[src]

impl StructuralPartialEq for Algorithm[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.