XCOM.DEV

Tool · cryptography · CNSA / Suite B

Crypto Toolkit

Hash, MAC and encrypt with the NSA algorithm set.

A client-side cryptographic workbench using the algorithms named in NSA's Commercial National Security Algorithm Suite (CNSA, 2015–2016) and the earlier Suite B: SHA-2 (256/384/512), HMAC-SHA-2, AES-GCM authenticated encryption and PBKDF2 key derivation. Everything runs via the Web Crypto API — keys and plaintext never leave your browser tab.

—

CNSA 2.0 preference: use SHA-384 or SHA-512 (SHA-256 is fine for Suite B / general use). See the CNSA reference tab.

—
—

Output format: iv_hex : ciphertext_hex||tag_hex — paste back into the field to decrypt.

CNSA 2.0 preference: AES-256 (the default key above is 32 bytes) with an authenticated mode (GCM). The IV must be unique per message.

—

CNSA guidance is ≥ 192-bit keys; PBKDF2-SHA-256/512 with a high iteration count is used for password-based derivation. Prefer ≥ 600,000 iterations (SHA-256) for new work.

NSA CNSA reference (from the NSA advisory)

Sourced from NSA's "Announcing the Commercial National Security Algorithm Suite 2.0" (U/OO/194427-22 · PP-22-1338 · Sep 2022) and the CNSA 1.0 tables (CNSSP 15, Annex B). CNSA 1.0 is the current standard; CNSA 2.0 adds post-quantum algorithms for the transition to be complete by 2035. Reference only — not a compliance claim.

Table IV — CNSA 2.0 algorithms

FunctionAlgorithmSpecificationParameters
Symmetric block cipher (info protection)AESFIPS PUB 197256-bit keys for all levels
Asymmetric key establishmentCRYSTALS-Kyber (ML-KEM)TBDLevel V params for all levels
Asymmetric digital signaturesCRYSTALS-Dilithium (ML-DSA)TBDLevel V params for all levels
Hash (condensed representation)SHAFIPS PUB 180-4SHA-384 or SHA-512 for all levels
Firmware & software signingLMSNIST SP 800-208All params; SHA-256/192 recommended
Firmware & software signingXMSSNIST SP 800-208All params approved for all levels

Table V — CNSA 1.0 algorithms

FunctionAlgorithmSpecificationParameters
Symmetric block cipher (info protection)AESFIPS PUB 197256-bit keys for all levels
Asymmetric key establishmentECDH Key ExchangeNIST SP 800-56ACurve P-384 for all levels
Asymmetric digital signaturesECDSAFIPS PUB 186-4Curve P-384 for all levels
Hash (condensed representation)SHAFIPS PUB 180-4SHA-384 for all levels
Asymmetric key establishmentDH Key ExchangeIETF RFC 3526Minimum 3072-bit modulus
Asymmetric key establishmentRSANIST SP 800-56BMinimum 3072-bit modulus
Asymmetric digital signaturesRSAFIPS PUB 186-4Minimum 3072-bit modulus

Not in the suite: DSA, SHA-1, MD5, Diffie-Hellman/RSA below 3072-bit. CNSA 2.0 deprecates RSA, DH and EC once the PQC standards and FIPS-validated implementations land.

CNSA 2.0 transition timeline (NSA)

AreaPrefer CNSA 2.0 byExclusive use by
Software & firmware signing20252030
Web browsers/servers & cloud20252033
Traditional networking (VPN, routers)20262030
Operating systems20272033
Niche equipment (constrained, large PKI)20302033
Custom apps & legacy equipment—2033

What this tool can and cannot do

Can: SHA-2 hashing, HMAC-SHA-2, AES-GCM encryption/decryption and PBKDF2 derivation — the symmetric primitives from the suite, via your browser's audited Web Crypto implementation. Cannot (here): certificate/key generation, ECDSA/ECDH/EdDSA signing, RSA, LMS/XMSS, or post-quantum (ML-KEM/ML-DSA) — browsers don't expose those as simple primitives (RSA/EC keygen exist but are outside this tool's scope). The algorithms above that aren't implemented here are named for reference.

Security notes

Everything is computed locally with crypto.subtle; nothing is transmitted. This is a utility for engineers — it is not audited for production key management, and using a browser tab for secrets has obvious limits. For real key material, use a hardware-backed store (HSM, smart card, TPM).

Sources: NSA, "Announcing the Commercial National Security Algorithm Suite 2.0" (Sep 2022); CNSA 1.0 tables (CNSSP 15, Annex B); NSA Suite B (RFC 8423 reclassified it historic). Related IETF profiles: RFC 8603, 8755, 8756, 9151, 9206, 9212.