Expand description
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.
Structs§
- Options
- Narrowing applied on top of any profile. The default narrows nothing.
- Parse
Profile Error - A name that is not one of the crate’s profiles. Names are matched exactly: no trimming and no case folding.
- Profile
Spec - A profile’s contents, each list in preference order.
- Selection
- A profile narrowed by its options, every entry implemented by the module’s backend, in the profile’s preference order.
Enums§
- Governing
Text - The text a profile follows.
- 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.
Constants§
- BSI
bsi: BSI TR-02102-2 (TLS) and TR-02102-1, version 2026-01.- CNSA1
cnsa1: the CNSA 1.0 algorithm set of CNSSP 15 (20 October 2016), Annex B (p. B-1), in the TLS 1.2 and 1.3 profile of RFC 9151 (April 2022). Transition dates: CNSSP 15 (December 2024) ¶18 (pp. 7-8).- CNSA2
cnsa2: the CNSA 2.0 algorithm set of CNSSP 15 (December 2024), Annex B, pp. B-1 to B-2, on TLS 1.3. No CNSA 2.0 TLS profile is published: CNSSP 15 ¶8a, footnote 1 (p. 5).- FIPS1402
fips1402: FIPS 140-2 Annex A and Annex D (2021-10-12 editions), FIPS 186-4, SP 800-131A r2 and SP 800-52r2. An algorithm set, not a validation claim.- FIPS1403
fips1403: NIST SP 800-140C r2 and SP 800-140D r2 with the CMVP lists (updated August 21, 2026), the FIPS 140-3 Implementation Guidance (August 19, 2026), SP 800-52r2 and SP 800-131A r2. An algorithm set, not a validation claim.- PREFERRED
preferred: the crate’s recommendation. Not a government profile; seedocs/profiles.md.- UNRESTRICTED
unrestricted: the crate’s own set, following no published text. Not a government profile.
Functions§
- select
- The backend-independent half of a backend’s
resolve:profile’s lists, narrowed byoptions;pq_key_exchange_requiredalso removes TLS 1.2, its suites and the RSA PKCS#1 v1.5 handshake schemes. Records entries the module line lacks inSelection::excluded, then refuses a family left empty withCryptoError::EmptyProfile. Both use versions, suites, groups, schemes and keys order, preserving preference order. Approval is a separate check.