Skip to main content

Crate crypto_profile_awslc3

Crate crypto_profile_awslc3 

Source
Expand description

The crypto-profile backend on the AWS-LC FIPS 3.x module (aws-lc-rs 1.17, fips). rustls is re-exported because its types are this crate’s API; aws-lc-rs is not.

Re-exports§

pub use rustls;

Modules§

aead
AES-256-GCM. Sealing goes through RandomizedNonceKey, so the module picks every nonce (aws-lc-rs: LessSafeKey sealing must not be used under FIPS).
algorithm
The algorithms the crate names: signature keys, TLS signature schemes, key-exchange groups, cipher suites, hashes and TLS versions.
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).
csr
Certificate signing requests for a fresh key.
digest
Hashing.
fips
The FIPS checks: the module’s own mode, and a TLS configuration’s FIPS status.
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.
random
Random bytes from the FIPS module’s DRBG.
sealbox
A sealed box: an ephemeral P-384 ECDH to the recipient’s static key, HKDF-SHA384 keyed by a caller-chosen domain, and AES-256-GCM over the plaintext with the caller’s AAD. Wire format: version, ephemeral point, nonce, ciphertext, tag.
sealbox_wire
The sealed box’s version-1 framing: version, ephemeral P-384 point, nonce, ciphertext and tag.
signature
Signature keys: generation, signing, verification, and the SubjectPublicKeyInfo shape check.
tls
TLS configuration from a Policy: which versions, cipher suites, key-exchange groups and handshake signature schemes a provider carries, in preference order.

Structs§

Capability
One cell of the capability table. A cipher suite cell speaks only to the suite’s algorithms; whether its protocol version is approved is the Protocol cell.
Certificate
The certificate a module carries.
Module
An AWS-LC FIPS module: a line and a linkage.
Options
Narrowing applied on top of any profile. The default narrows nothing.
ParseAlgorithmError
A name that is not one of the crate’s algorithms.
ParseProfileError
A name that is not one of the crate’s profiles. Names are matched exactly: no trimming and no case folding.
PeerCertificateRule
Immutable cited certificate-policy data.
PeerKeyRule
The key families and parameters admitted for a certificate role.
ProfileSpec
A profile’s contents, each list in preference order.
Resolved
A profile resolved against this backend’s module. profile and options say what resolve was called with; tls goes to tls::client_builder, tls::server_builder and the verifier builders; Resolved::certified_key binds this side’s certificate and key to the profile.

Enums§

Algorithm
Any algorithm the capability table has a cell for.
Approval
A module’s approval status for one algorithm, as its published evidence settles it.
CertStatus
A certificate’s CMVP status as recorded when this crate version was released.
CertificateSignature
A certificate signature algorithm, independent of CertificateVerify schemes.
CipherSuite
A TLS cipher suite.
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.
GoverningText
The text a profile follows.
HashAlgorithm
A hash function.
KxGroup
A TLS key-exchange group.
Linkage
How the FIPS module is linked; each linkage is a separate module, with its own certificate or submission.
MlDsaParameterSet
A standardized pure ML-DSA parameter set.
ModuleLine
An AWS-LC FIPS module line.
PeerCertificateRuleId
A finite certificate-policy identity.
PeerCertificateViolation
Why a peer certificate failed the profile rule. Descriptors never carry DER or key bytes.
PeerCurve
A supported named elliptic curve.
PeerKey
A bounded public-key descriptor, carrying no key bytes.
PeerVerifierIdentity
Bounded identity of a peer verifier, independent of certificates and trust anchors.
Profile
A named profile. Each one that is named for a regime follows that regime’s published text, in the edition Profile::governing_text names, and changes only when a new edition is published.
RsaSizeRule
The published RSA modulus-size condition, separate from implementation limits.
SignatureAlgorithm
A signature key algorithm: what a key is generated as, and what its CSR is signed with.
TlsError
Why a TLS configuration step was refused.
TlsSignatureScheme
A TLS handshake signature scheme.
TlsVersion
A TLS protocol version.

Constants§

MODULE
The AWS-LC FIPS module (line and linkage) this build links. Its certificate status is fips::certificate(); for 3.x the certified release is 3.1.0.

Functions§

assert_module_approves
Refuses with CryptoError::NotFips unless the module is in FIPS mode, with CryptoError::PolicyEmpty naming the first family r leaves empty, and otherwise unless every algorithm r names, each protocol version included, is Approved for the running module. Fails on the first cell that is not Approved; AlgorithmTested is not. On the 4.x module it fails today: a cell is Approved only where a published security policy lists it.
awslc_version
Returns the exact runtime-linked AWS-LC release, independently of its certificate release.
capability
What the backend for m can do for a, and what that module’s published evidence says about it: its security policy, or one CAVP certificate (decision 0004).
certificate
The certificate for a module.
ensure_available
Refuses an algorithm the module’s backend does not implement.
peer_certificate_rule
The canonical, immutable certificate rule for a profile.
resolve
Resolves profile, narrowed by options, against this backend’s module. Refuses with CryptoError::EmptyProfile when a family comes out empty. Entries the module line lacks are recorded in Resolved::excluded; approval is checked separately.