Commit graph

1 commit

Author SHA1 Message Date
db25f3e3e0 feat(crypto): private-key DER parsing (rv2 9 phase G3a)
- wo_pkey_parse: PKCS#8 PrivateKeyInfo (wrapping PKCS#1/SEC1), bare PKCS#1
  RSAPrivateKey, and bare SEC1 ECPrivateKey -> RSA (n,d) or the EC P-256
  32-byte scalar. Reuses the X.509 DER reader; spans point into the buffer
- KAT: all three formats parse, and the extracted key signs a hash our
  verify accepts (RSA-PSS + ECDSA); garbage rejected. test_crypto 130,
  ASan/UBSan clean

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
(cherry picked from commit 819d67226a94c4cd5a765ec403e57466c64f1e65)
2026-09-15 01:15:52 +02:00