Skip to content

Commit 8d7fb63

Browse files
Jonathan D.A. Jewellclaude
andcommitted
security: add comprehensive cryptographic requirements
Add post-quantum cryptographic standards to META.scm and SECURITY.md: META.scm: - Document password hashing: Argon2id (512 MiB, 8 iter, 4 lanes) - Document PQ signatures: Dilithium5-AES (ML-DSA-87, FIPS 204) - Document PQ key exchange: Kyber-1024 + SHAKE256-KDF - Document all crypto algorithms with NIST/FIPS standards - Add formal verification requirement for crypto primitives - Terminate deprecated algorithms: Ed25519, SHA-1, HTTP/1.1, IPv4 SECURITY.md: - Replace template with complete security policy - Add Cryptographic Requirements section with detailed specs - Document formal verification requirements (Idris2/Coq) - Add contact information (jonathan.jewell@open.ac.uk) - Specify protocol stack: QUIC + HTTP/3 + IPv6 only - List terminated algorithms as security requirements Implements user security requirements for proactive security stance with belt-and-suspenders approach (hybrid classical+PQ with SPHINCS+ fallback). Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent b593978 commit 8d7fb63

2 files changed

Lines changed: 92 additions & 255 deletions

File tree

META.scm

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,21 @@
5656
(security
5757
(constraint-validation "All neural tokens must pass Anti-Crash")
5858
(no-eval "Never use dynamic code execution")
59-
(type-safety "ReScript strict mode enforced"))
59+
(type-safety "ReScript strict mode enforced")
60+
61+
;; Cryptographic Requirements (for future auth/crypto features)
62+
(password-hashing "Argon2id (512 MiB, 8 iter, 4 lanes) - max resistance to GPU/ASIC attacks")
63+
(general-hashing "SHAKE3-512 (512-bit output, FIPS 202) - post-quantum for provenance/key derivation")
64+
(pq-signatures "Dilithium5-AES hybrid (ML-DSA-87, FIPS 204) with SPHINCS+ backup")
65+
(pq-key-exchange "Kyber-1024 + SHAKE256-KDF (ML-KEM-1024, FIPS 203)")
66+
(classical-sigs "Ed448 + Dilithium5 hybrid - TERMINATE Ed25519/SHA-1 immediately")
67+
(symmetric "XChaCha20-Poly1305 (256-bit key) - larger nonce space for quantum margin")
68+
(key-derivation "HKDF-SHAKE512 (FIPS 202) - post-quantum KDF for all secret material")
69+
(rng "ChaCha20-DRBG (512-bit seed, SP 800-90Ar1) - CSPRNG for high-entropy needs")
70+
(database-hashing "BLAKE3 (512-bit) + SHAKE3-512 - speed + long-term storage")
71+
(formal-verification "Idris2/Coq for crypto primitives - proactive attestation required")
72+
(protocol-stack "QUIC + HTTP/3 + IPv6 ONLY - terminate HTTP/1.1, IPv4, SHA-1")
73+
(fallback "SPHINCS+ as conservative PQ backup for all hybrid systems"))
6074

6175
(testing
6276
(unit "rescript-test for pure functions")

0 commit comments

Comments
 (0)