pub struct Admitted { /* private fields */ }Expand description
A profile’s non-TLS families on this backend’s module, under options. Independent of
resolve: a profile whose TLS lists are empty on this module still admits its MACs, KDFs, key
agreement, AEADs, hashes and signatures.
Built only by admit, and read-only, so a constructor that takes it checks the profile’s
own admission.
Implementations§
Source§impl Admitted
impl Admitted
Sourcepub fn macs(&self) -> &[MacAlgorithm]
pub fn macs(&self) -> &[MacAlgorithm]
The MACs the profile admits, in preference order.
Sourcepub fn kdfs(&self) -> &[KdfAlgorithm]
pub fn kdfs(&self) -> &[KdfAlgorithm]
The KDFs the profile admits, in preference order.
Sourcepub fn key_agreements(&self) -> &[KeyAgreementAlgorithm]
pub fn key_agreements(&self) -> &[KeyAgreementAlgorithm]
The key-agreement curves the profile admits, in preference order.
Sourcepub fn aeads(&self) -> &[AeadAlgorithm]
pub fn aeads(&self) -> &[AeadAlgorithm]
The AEADs the profile admits, in preference order.
Sourcepub fn hashes(&self) -> &[HashAlgorithm]
pub fn hashes(&self) -> &[HashAlgorithm]
The hash functions the profile admits, in preference order.
Sourcepub fn signatures(&self) -> &[SignatureAlgorithm]
pub fn signatures(&self) -> &[SignatureAlgorithm]
The signature algorithms the profile admits outside TLS, in preference order.
Sourcepub fn excluded(&self) -> &[Algorithm]
pub fn excluded(&self) -> &[Algorithm]
Entries unavailable on the module line, in family and preference order.
Sourcepub fn admit_mac(&self, m: MacAlgorithm) -> Result<(), CryptoError>
pub fn admit_mac(&self, m: MacAlgorithm) -> Result<(), CryptoError>
Refuses a MAC the profile does not admit, and one the module line lacks with
CryptoError::Unavailable.
Sourcepub fn admit_kdf(&self, k: KdfAlgorithm) -> Result<(), CryptoError>
pub fn admit_kdf(&self, k: KdfAlgorithm) -> Result<(), CryptoError>
Refuses a KDF the profile does not admit, and one the module line lacks with
CryptoError::Unavailable.
Sourcepub fn admit_key_agreement(
&self,
k: KeyAgreementAlgorithm,
) -> Result<(), CryptoError>
pub fn admit_key_agreement( &self, k: KeyAgreementAlgorithm, ) -> Result<(), CryptoError>
Refuses a key-agreement curve the profile does not admit, and one the module line lacks
with CryptoError::Unavailable.
Sourcepub fn admit_aead(&self, d: AeadAlgorithm) -> Result<(), CryptoError>
pub fn admit_aead(&self, d: AeadAlgorithm) -> Result<(), CryptoError>
Refuses an AEAD the profile does not admit, and one the module line lacks with
CryptoError::Unavailable.
Sourcepub fn admit_hash(&self, h: HashAlgorithm) -> Result<(), CryptoError>
pub fn admit_hash(&self, h: HashAlgorithm) -> Result<(), CryptoError>
Refuses a hash function the profile does not admit, and one the module line lacks with
CryptoError::Unavailable.
Sourcepub fn admit_signature(&self, s: SignatureAlgorithm) -> Result<(), CryptoError>
pub fn admit_signature(&self, s: SignatureAlgorithm) -> Result<(), CryptoError>
Refuses a signature algorithm the profile does not admit outside TLS, and one the module
line lacks with CryptoError::Unavailable.