crypto-profile-awslc3 0.10.0

The crypto-profile backend on the AWS-LC FIPS 3.x module, through aws-lc-rs 1.17
Documentation

crypto-profile

CI Rust License

Named cryptographic profiles for Rust: a policy layer and a rustls CryptoProvider over aws-lc-rs.

What it is

One reviewed place for an application's cryptographic choices:

  • Profiles. Named, inspectable algorithm sets an application selects at start-up that report unavailable module-line entries in Resolved::excluded and refuse any empty family. See Profiles.
  • A rustls provider whose key-exchange groups, cipher suites and signature schemes follow a tls::Policy, and fips::assert_fips_module, which an application calls at start-up to refuse to run unless the loaded module reports FIPS mode.
  • The functions applications need beside TLS, each implemented once:
    • hashing (SHA-2 and SHA-3) under a profile, through digest::digest and digest::Hasher;
    • random bytes;
    • AEAD (AES-128-GCM, AES-256-GCM and ChaCha20-Poly1305) under a profile, through aead::Key, with nonces chosen inside the crate, never by the caller (AES-GCM by the module's seal, ChaCha20-Poly1305 from the module's DRBG), and a limit of 2^32 seals per aead::Key;
    • HMAC under a profile, admitted with admit outside TLS and keyed through hmac::Key;
    • key derivation (HKDF and the one-step KDF) under a profile, admitted with admit and derived through kdf::derive;
    • ECDH key agreement under a profile, through ecdh::EphemeralKey and ecdh::StaticKey, each completing into kdf (HKDF, the one-step KDF, or RFC 9180's DHKEM) so the shared secret never leaves the crate;
    • a sealed box under a profile;
    • signing and verification (ML-DSA-87, ECDSA, Ed25519, RSA with PKCS#1 v1.5 or PSS), under a profile for keys made through signature::KeyPair::generate or KeyPair::from_pkcs8_der and for signature::verify, with private keys taken only in the PKCS#8 structure their RFCs define and public keys only raw;
    • certificate requests for a tls::CertificateKey, a key of the profile's TLS key list that has no sign; it signs through the TLS key provider with the policy's TLS schemes, and its PKCS#8 export is the private key, which imports as a signature::KeyPair only under an Admitted whose signatures admit the algorithm (decision 0016, residuals 2 and 4).
  • A capability table that records, for each certified or submitted module and each algorithm, whether the backend implements it and what the published evidence says about it: the module's security policy, cited by table for every sourced cell, or, for a module with no published security policy, one CAVP certificate, which is never an approval (decision 0004).

What it is not

  • Not new cryptography. Every primitive is AWS-LC's, through aws-lc-rs.
  • Not a validated module, and not FIPS-certified. The validation status that matters is the AWS-LC FIPS module's, which this crate builds on; it does not change it or claim it. See the CMVP lists and the table below.
  • Not affiliated with AWS or the rustls project.

AWS-LC FIPS module lines

Cargo resolves one aws-lc-rs 1.x per lockfile, so each module line gets its own backend crate. Your Cargo.toml then shows which line you are on.

Backend Module line Status
crypto-profile-awslc4 AWS-LC FIPS 4.x, through aws-lc-rs 1.19 Built from AWS-LC 4.2.0; 4.x is in CMVP review.
crypto-profile-awslc3 AWS-LC FIPS 3.x, through aws-lc-rs 1.17 Built from AWS-LC 3.6.0; the 3.1.0 release carries the certificates below.

Select exactly one backend per build. Both declare links = "crypto-profile-backend". Today their exact aws-lc-rs pins refuse a combined graph first; the shared links key also refuses it if those pins become compatible. Each backend exposes awslc_version() for the exact runtime-linked release, separately from certificate(MODULE).

AWS-LC 3.6.0 is a later revision of the AWS-LC FIPS 3.x line whose 3.1.0 release has the certificates below.

The modules' certificate status, as recorded when this file was last updated (CMVP Modules In Process list last updated 11/2/2026, captured 2026-11-02). The CMVP lists are authoritative.

Module Status
AWS-LC FIPS 3.1.0 Validated: certificate #5314 (static) and #5298 (dynamic).
AWS-LC FIPS 4.x Submitted, in CMVP review; not validated, and no security policy published yet. Static and dynamic are separate submissions: the CMVP Modules In Process list, last updated 11/2/2026, shows "AWS-LC 4 Cryptographic Module (dynamic)" and "AWS-LC 4 Cryptographic Module (static)", FIPS 140-3, both in "Comment Resolution - Lab (10/22/2026)".

aws-lc-rs 1.17.4 with its fips feature compiles ML-DSA out, so the 3.x backend refuses ML-DSA with a typed error rather than fall back. See docs/usage.md for linkage, what the crate claims, and its limits.

Profiles

A profile is an algorithm set, not a validation claim.

  • unrestricted: every algorithm in the inventory. Not a government profile.
  • preferred: the crate's recommendation, as docs/profiles.md defines it. Not a government profile.
  • cnsa2: CNSSP 15 (December 2024) Annex B, on TLS 1.3 as the crate maps it.
  • cnsa1: CNSSP 15 (20 October 2016) Annex B in RFC 9151's TLS profile; a transition profile for CNSA 1.0 counterparts, with its gaps named in docs/profiles.md.
  • bsi: BSI TR-02102-2 and TR-02102-1, version 2026-01.
  • fips1403: what FIPS 140-3 approves under the published texts.
  • fips1402: what FIPS 140-2 approved, for peers whose boundary is 140-2.

Resolution intersects the published profile set with module-line availability after Options, preserving preference order and reporting every line exclusion. This changes neither the governing text nor the module approval claim. See per-line resolution.

The option "post-quantum key exchange required" (pq_key_exchange_required, set on Options::default()) keeps only ML-KEM and hybrid key exchange on any profile, and so TLS 1.3 only. Whether the running module is validated for a resolved profile is a separate call, assert_module_approves, which fails closed.

Documentation

Licensing

Licensed under either of

at your option.

AWS-LC, which this crate links, carries its own terms, including the OpenSSL licence for parts of the FIPS module. Anyone distributing binaries is responsible for its notices.

The provider ports code from rustls (MIT) and rustls-webpki (ISC); their notices are in crypto-profile/LICENSE-THIRD-PARTY, and each published package carries an identical copy.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.