[−][src]Struct parsec_interface::operations::key_attributes::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]
enc: AsymmetricEncryptionAlgorithm,
hash: Option<HashAlgorithm>
) -> Algorithm
pub fn mac(
mac: MacAlgorithm,
hash: Option<HashAlgorithm>,
tag_len: Option<u32>
) -> Algorithm
[src]
mac: MacAlgorithm,
hash: Option<HashAlgorithm>,
tag_len: Option<u32>
) -> Algorithm
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]
key_derivation: KeyDerivationFunction,
hash: Option<HashAlgorithm>
) -> Algorithm
pub fn key_agreement(
key_agreement: KeyAgreementAlgorithm,
key_derivation: KeyDerivationFunction,
hash: Option<HashAlgorithm>
) -> Algorithm
[src]
key_agreement: KeyAgreementAlgorithm,
key_derivation: KeyDerivationFunction,
hash: Option<HashAlgorithm>
) -> Algorithm
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
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnwindSafe for Algorithm
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,