Cryptographic Agility Guide

Operator guide for configuring BrainstormRouter's cryptographic algorithms

Cryptographic Agility Guide

Overview

BrainstormRouter's crypto agility layer allows operators to configure which cryptographic algorithms are used for key exchange, signatures, and hashing — without code changes or redeployment.

Configuration

Add to your gateway config:

{
  "security": {
    "crypto": {
      "keyExchange": "hybrid-pqc",
      "signature": "hmac-sha256",
      "hash": "sha256"
    }
  }
}

Algorithm Reference

Key Exchange

AlgorithmConfig ValueRequiresNotes
X25519x25519Classical default, universally supported
ML-KEM-768ml-kem-768OpenSSL 3.5+FIPS 203 (NIST standard)
Hybridhybrid-pqcOpenSSL 3.5+Recommended — X25519+ML-KEM-768

Signatures

AlgorithmConfig ValueRequiresNotes
HMAC-SHA256hmac-sha256Default for audit signing
Ed25519ed25519Compact signatures
RSA-PSSrsa-pssLegacy compatibility
ML-DSA-65ml-dsa-65liboqs-nodeFIPS 204 (NIST standard)

Hashes

AlgorithmConfig ValueRequiresNotes
SHA-256sha256Default
SHA-512sha512Higher security margin
SHA-3-256sha3-256Keccak-based alternative

Fallback Behavior

If a configured algorithm is unavailable (e.g., ml-dsa-65 without liboqs-node), the system falls back to the classical default and logs a warning:

WARN [security/crypto-agility] Preferred algorithm "ml-dsa-65" not available, falling back to default

Verification

Check available algorithms at runtime:

# Via gateway logs at startup
INFO [security/crypto-agility] Crypto agility: 8/10 algorithms available, 2 PQC (OpenSSL 3.6.1)

Positioning Language

When communicating about BrainstormRouter's PQC capabilities:

  • Use: "post-quantum ready", "cryptographically agile"
  • Avoid: "quantum-secure", "quantum-proof" (no system is proven quantum-secure yet)