#[non_exhaustive]pub struct Options {
pub pq_key_exchange_required: bool,
pub peer_certificates_match_profile: bool,
pub cnsa1_unclassified_nss: bool,
}Expand description
Options applied on top of any profile. The default changes nothing; cnsa1_unclassified_nss
widens cnsa1’s MACs, HKDFs, hashes and signatures, and the others narrow. Outside this crate,
build it from Options::default() and set the fields you need.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.pq_key_exchange_required: boolKeep only post-quantum key exchange (pure ML-KEM and hybrid groups), and so remove TLS 1.2, which has none. Key algorithms and signatures are not narrowed.
peer_certificates_match_profile: boolRequire peer leaf keys and certification paths to match the profile. Off by default.
cnsa1_unclassified_nss: boolAdmit HMAC-SHA256, HKDF-SHA256 and SHA-256 hashing under cnsa1, as CNSSP 15 (20 October
2016) Annex B ¶2b (p. B-2) allows SHA-256 in the near term for UNCLASSIFIED NSS data and
community-of-interest separation only, and 2048-bit RSA signatures with SHA-384 (PSS and
PKCS#1 v1.5), as ¶2b allows RSA “at the 2048 bit level”. Ignored by every other profile, and
by every family but message authentication, HKDF, hashing and signatures outside TLS. It
admits no one-step KDF and no curve but P-384, for key agreement or ECDSA, and does not
widen cnsa1’s AEADs beyond AES-256-GCM or its TLS key algorithms. Off by default.