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:LessSafeKeysealing 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
Protocolcell. - 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.
- Parse
Algorithm Error - A name that is not one of the crate’s algorithms.
- Parse
Profile Error - A name that is not one of the crate’s profiles. Names are matched exactly: no trimming and no case folding.
- Peer
Certificate Rule - Immutable cited certificate-policy data.
- Peer
KeyRule - The key families and parameters admitted for a certificate role.
- Profile
Spec - A profile’s contents, each list in preference order.
- Resolved
- A profile resolved against this backend’s module.
profileandoptionssay whatresolvewas called with;tlsgoes totls::client_builder,tls::server_builderand the verifier builders;Resolved::certified_keybinds 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.
- Cert
Status - A certificate’s CMVP status as recorded when this crate version was released.
- Certificate
Signature - A certificate signature algorithm, independent of CertificateVerify schemes.
- Cipher
Suite - A TLS cipher suite.
- Crypto
Error - 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.
- Governing
Text - The text a profile follows.
- Hash
Algorithm - 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.
- MlDsa
Parameter Set - A standardized pure ML-DSA parameter set.
- Module
Line - An AWS-LC FIPS module line.
- Peer
Certificate Rule Id - A finite certificate-policy identity.
- Peer
Certificate Violation - Why a peer certificate failed the profile rule. Descriptors never carry DER or key bytes.
- Peer
Curve - A supported named elliptic curve.
- PeerKey
- A bounded public-key descriptor, carrying no key bytes.
- Peer
Verifier Identity - 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_textnames, and changes only when a new edition is published. - RsaSize
Rule - The published RSA modulus-size condition, separate from implementation limits.
- Signature
Algorithm - 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.
- TlsSignature
Scheme - 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::NotFipsunless the module is in FIPS mode, withCryptoError::PolicyEmptynaming the first familyrleaves empty, and otherwise unless every algorithmrnames, each protocol version included, isApprovedfor the running module. Fails on the first cell that is notApproved;AlgorithmTestedis not. On the 4.x module it fails today: a cell isApprovedonly 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
mcan do fora, 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 byoptions, against this backend’s module. Refuses withCryptoError::EmptyProfilewhen a family comes out empty. Entries the module line lacks are recorded inResolved::excluded; approval is checked separately.