Skip to main content

Crate crypto_profile

Crate crypto_profile 

Source
Expand description

Algorithm types, the per-module capability model, the named profiles and the conformance suite shared by every crypto-profile backend. This crate performs no cryptography.

Re-exports§

pub use peer_certificate::CertificateSignature;
pub use peer_certificate::MlDsaParameterSet;
pub use peer_certificate::PeerCertificateRule;
pub use peer_certificate::PeerCertificateRuleId;
pub use peer_certificate::PeerCertificateViolation;
pub use peer_certificate::PeerCurve;
pub use peer_certificate::PeerKey;
pub use peer_certificate::PeerKeyRule;
pub use peer_certificate::RsaSizeRule;
pub use peer_certificate::peer_certificate_rule;
pub use algorithm::AeadAlgorithm;
pub use algorithm::Algorithm;
pub use algorithm::CipherSuite;
pub use algorithm::HashAlgorithm;
pub use algorithm::KdfAlgorithm;
pub use algorithm::KeyAgreementAlgorithm;
pub use algorithm::KxGroup;
pub use algorithm::MacAlgorithm;
pub use algorithm::ParseAlgorithmError;
pub use algorithm::SignatureAlgorithm;
pub use algorithm::TlsSignatureScheme;
pub use algorithm::TlsVersion;
pub use capability::Approval;
pub use capability::Capability;
pub use capability::CertStatus;
pub use capability::Certificate;
pub use capability::Linkage;
pub use capability::Module;
pub use capability::ModuleLine;
pub use capability::capability;
pub use capability::certificate;
pub use capability::ensure_available;
pub use profile::AdmittedSelection;
pub use profile::GoverningText;
pub use profile::MAC_KEY_MAX_BITS;
pub use profile::Options;
pub use profile::ParseProfileError;
pub use profile::Profile;
pub use profile::ProfileSpec;
pub use profile::kdf_info_may_be_empty;
pub use profile::mac_key_floor_bits;
pub use profile::select_admitted;

Modules§

algorithm
The algorithms the crate names: signature keys, TLS signature schemes, key-exchange groups, cipher suites, hashes, TLS versions, MACs, KDFs, key agreements and AEADs.
capability
What each AWS-LC FIPS module can do and what the published evidence says about each algorithm: the module’s security policy, cited by table for every sourced cell, or, for a module with none published, one CAVP certificate, which is never an approval (decision 0004).
peer_certificate
Immutable certificate rules, independent of handshake signature schemes.
profile
Named profiles: algorithm sets a backend resolves into a TLS policy and the key algorithms it admits. A profile is an algorithm set, not a validation claim; whether the running module is validated for it is a separate check.
sealbox_wire
The sealed box’s version-1 framing: version, ephemeral P-384 point, nonce, ciphertext and tag.

Enums§

CryptoError
A refusal from one of the crate’s operations. It never carries key or plaintext material.
CsrError
Why a certificate signing request could not be produced.
Family
A family of algorithms in a TLS policy or a profile.
PeerVerifierIdentity
Bounded identity of a peer verifier, independent of certificates and trust anchors.
TlsError
Why a TLS configuration step was refused.