#[non_exhaustive]pub enum CryptoAlgorithm {
Hash(HashAlgorithm),
Hmac(HmacAlgorithm),
Aead(AeadAlgorithm),
StreamCipher(StreamCipherAlgorithm),
BlockCipher(BlockCipherAlgorithm),
Cbc(CbcAlgorithm),
KeyExchange(KeyExchangeAlgorithm),
Signature(SignatureScheme),
SigningKeyGeneration(SignatureScheme),
SigningKeyImport(SignatureScheme),
}Expand description
A provider capability identifier.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Hash(HashAlgorithm)
Stateless hash operation.
Hmac(HmacAlgorithm)
HMAC generation and verification.
Aead(AeadAlgorithm)
Authenticated encryption.
StreamCipher(StreamCipherAlgorithm)
Stream encryption.
BlockCipher(BlockCipherAlgorithm)
Single-block encryption.
Cbc(CbcAlgorithm)
CBC encryption and decryption.
KeyExchange(KeyExchangeAlgorithm)
Ephemeral key agreement.
Signature(SignatureScheme)
Signature verification.
SigningKeyGeneration(SignatureScheme)
Signing-key generation.
SigningKeyImport(SignatureScheme)
PKCS#8 signing-key import.
Trait Implementations§
Source§impl Clone for CryptoAlgorithm
impl Clone for CryptoAlgorithm
Source§fn clone(&self) -> CryptoAlgorithm
fn clone(&self) -> CryptoAlgorithm
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CryptoAlgorithm
Source§impl Debug for CryptoAlgorithm
impl Debug for CryptoAlgorithm
impl Eq for CryptoAlgorithm
Source§impl Hash for CryptoAlgorithm
impl Hash for CryptoAlgorithm
Source§impl PartialEq for CryptoAlgorithm
impl PartialEq for CryptoAlgorithm
impl StructuralPartialEq for CryptoAlgorithm
Auto Trait Implementations§
impl Freeze for CryptoAlgorithm
impl RefUnwindSafe for CryptoAlgorithm
impl Send for CryptoAlgorithm
impl Sync for CryptoAlgorithm
impl Unpin for CryptoAlgorithm
impl UnsafeUnpin for CryptoAlgorithm
impl UnwindSafe for CryptoAlgorithm
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more