Skip to main content

PREFERRED

Constant PREFERRED 

Source
pub const PREFERRED: ProfileSpec;
Expand description

preferred: the crate’s recommendation. Not a government profile; see docs/profiles.md.

“ISM” is ASD, Information security manual, Guidelines for cryptography, September 2026; SECRET-level controls ISM-1761 and ISM-1763 (p. 8), ISM-1765 (p. 10), ISM-1769 (p. 11).

  • TLS 1.3 only: ISM-1139, p. 19.
  • TLS_AES_256_GCM_SHA384, TLS_AES_128_GCM_SHA256: ISM-1369, p. 20; ISM-1769, p. 11.
  • ML-KEM-1024: ISM-1995, p. 10.
  • SecP384r1MLKEM1024, X25519MLKEM768, SecP256r1MLKEM768: ISM p. 12; ISM-1996, p. 13; FIPS 140-3 IG D.S Scenario 2 and Additional Comment 8a (August 2026, pp. 223-226), which names all three.
  • secp384r1, secp256r1: ISM-0474 and ISM-1761, p. 8; ISM-1446, p. 7.
  • X25519 on its own excluded: FIPS 140-3 IG C.K Resolution 5 (p. 160).
  • ChaCha20-Poly1305 excluded: ISM p. 6; SP 800-140Cr2 §6.1.
  • Schemes ML-DSA-87 (ISM-1991, p. 9), ECDSA P-384, P-256, P-521 (ISM-1763, p. 8), RSA-PSS with SHA-2 (ISM-1765, p. 10; ISM-1374, p. 20).
  • Ed25519 excluded: ISM pp. 5-6.
  • RSA PKCS#1 v1.5 schemes excluded: RFC 8446 §4.2.3.
  • Keys ML-DSA-87 (ISM-1991, p. 9), ECDSA P-384, P-256, P-521 (ISM-1763, p. 8), RSA 3072 and 4096 (ISM-1765, p. 10); RSA 2048 excluded: ISM-1765, p. 10.
  • ECDSA P-521 with SHA-384: ISM-1763, p. 8; SHA-2 output of at least 256 bits, ISM-1767, p. 11.
  • MACs: HMAC with SHA-2 for IPsec and TLS, ISM-1772 (p. 15), ISM-0998 (p. 16) and ISM-1375 (p. 20); SHA-2 output of at least 224 bits, ISM-1766 (p. 11). HMAC-SHA256 “will not be approved beyond 2030” (pp. 15-16).
  • KDFs: HKDF, the two-step method of SP 800-56C Rev. 2 §5, of which RFC 5869 “specifies a version” (SP 800-56C Rev. 2, p. 20); the ISM cites SP 800-56C Rev. 2 for combining hybrid key-encapsulation components (p. 13). SHA-2 output of at least 224 bits, ISM-1766 (p. 11); SHA-256 “will not be approved beyond 2030” (p. 11). Decision 0010. The one-step KDF of SP 800-56C Rev. 2 §4, under the same reading of that citation (decision 0011).
  • Key agreement: ECDH on P-384, P-521 and P-256, “preferably the NIST P-384 curve”, ISM-1761 (p. 8). X25519 excluded: ISM-1761 names only the NIST curves. ECDH “will not be approved beyond 2030” (p. 8).
  • AEADs: AES-256-GCM, AES-128-GCM. “The only approved symmetric cryptographic algorithm is … AES” (p. 6); AES-128, AES-192 or AES-256, “preferably AES-256”, ISM-1769 (p. 11); GCM, named on p. 11, preferred by ISM-1771 (p. 15) and ISM-0998 (p. 16), and required for TLS by ISM-1369 (p. 20). AES-128 “will not be approved beyond 2030” (p. 11). ChaCha20-Poly1305 excluded: p. 6 and ISM-0471 (p. 7).
  • Hashes: SHA-512, SHA-384, SHA-256. “The only approved hashing algorithm for general-purpose use is Secure Hashing Algorithm 2 (SHA-2)” (p. 6); ISM-1767 (p. 11), an output size of at least 256 bits, “preferably SHA-384 or SHA-512”. SHA-256 “will not be approved beyond 2030” (p. 11). SHA-3 excluded: “approved exclusively for use within ML-DSA and ML-KEM” (p. 6), “restricted to use within internal steps of ML-DSA and ML-KEM” (p. 11).
  • Signatures: ML-DSA-87, “preferably ML-DSA-87”, ISM-1991 (p. 9); ECDSA on P-384, P-521 and P-256, ISM-1763 (p. 8); RSA 4096 and 3072 with PSS, then with PKCS#1 v1.5, ISM-1765 (p. 10), which names no padding. Ed25519 excluded: ISM pp. 5-6. RSA 2048 excluded: ISM-1765 (p. 10). ECDSA P-521 with SHA-384 excluded: FIPS 186-5 §6.1.1 (p. 21), a hash weaker than the curve “shall not be used” (decision 0015). ECDSA and RSA “will not be approved beyond 2030” (pp. 8 and 10).