#[non_exhaustive]pub enum ProviderCapability<'a> {
Digest(DigestAlgorithm),
Sign(SignatureAlgorithm),
Verify(SignatureAlgorithm),
VerifyCertificate(X509SignatureAlgorithm),
KeyAgreement(&'a KeyAgreementParameters<'a>),
Kdf(&'a KdfParameters<'a>),
Random,
}Expand description
One exact provider capability, including operation-specific parameters.
Capability discovery describes mechanisms, not policy permission. Callers must still apply the immutable operation policy before provider dispatch.
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.
Digest(DigestAlgorithm)
Message digest computation for an XMLDSig digest method.
Sign(SignatureAlgorithm)
Signature generation for an XMLDSig signature method.
Verify(SignatureAlgorithm)
Signature verification for an XMLDSig signature method.
VerifyCertificate(X509SignatureAlgorithm)
X.509 signature verification with complete algorithm parameters.
KeyAgreement(&'a KeyAgreementParameters<'a>)
Provider-defined key agreement identified by its standard URI.
Kdf(&'a KdfParameters<'a>)
Provider-defined key derivation identified by its standard URI.
Random
Cryptographically secure random byte generation.
Implementations§
Source§impl ProviderCapability<'_>
impl ProviderCapability<'_>
Trait Implementations§
Source§impl<'a> Clone for ProviderCapability<'a>
impl<'a> Clone for ProviderCapability<'a>
Source§fn clone(&self) -> ProviderCapability<'a>
fn clone(&self) -> ProviderCapability<'a>
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<'a> Copy for ProviderCapability<'a>
Auto Trait Implementations§
impl<'a> Freeze for ProviderCapability<'a>
impl<'a> RefUnwindSafe for ProviderCapability<'a>
impl<'a> Send for ProviderCapability<'a>
impl<'a> Sync for ProviderCapability<'a>
impl<'a> Unpin for ProviderCapability<'a>
impl<'a> UnsafeUnpin for ProviderCapability<'a>
impl<'a> UnwindSafe for ProviderCapability<'a>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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