identity: the SD-JWT form of an AERE hybrid identity is judged on its ML-DSA-65 half by default, the Ed25519 half only on explicit request, and every verdict says postQuantum (rule sdjwt.hybrid-half); pq-pki: the signature algorithm a certificate or a revocation list declares must be its issuer key's (ALG_KEY, CRL_ALG_KEY); agents: an equivocation proof requires the agent's ML-DSA-65 key; pq-gateway: the status names the path to the backend and hybrid-only refuses a plain-HTTP backend; conformance 241 rules, 631 vectors

This commit is contained in:
Aere Network committed 2026-10-19 05:19:21 +03:00
1 parent 3ff21f7758
commit 0c8f1de3fd
122 files changed
+1205 -262

No files matched your search

+5
View File
@@ -45,6 +45,11 @@ const PLANTARI = [
['[A7] numai primul intermediar candidat', 'pki.mjs', 'certs.inter.filter((c) => c !== cur && !stiva.includes(c) && emite(c, cur)) : [];', 'certs.inter.filter((c) => c !== cur && !stiva.includes(c) && emite(c, cur)).slice(0, 1) : [];', 'reinnoirea radacinii'],
['[A10] primul subidentificator OID scris pe un singur octet', 'der.mjs', ' const out = base128(p[0] * 40n + p[1]);', ' const out = [Number((p[0] * 40n + p[1]) & 0x7fn)];', 'OID'],
['[A10] arcul OID dedus fara regula de 80', 'der.mjs', ' const arc = first < 80n ? first / 40n : 2n;', ' const arc = first / 40n;', 'OID'],
// 2026-10-19 (AIP-25 C3, D-537): algoritmul declarat e al cheii emitentului; fiecare paznic nou scos pe rand
['[AIP-25 C3] algoritmul declarat de un certificat nu mai e legat de cheia emitentului', 'pki.mjs', "if (!(c.alg === p.pkAlg)) return fail('ALG_KEY'", "if (!(c.alg === p.pkAlg) && Boolean(Number('0'))) return fail('ALG_KEY'", 'algoritmul declarat e al cheii emitentului'],
['[AIP-25 C3] radacina declara alt algoritm decat propria cheie', 'pki.mjs', "if (!(top.alg === top.pkAlg)) return fail('ALG_KEY'", "if (!(top.alg === top.pkAlg) && Boolean(Number('0'))) return fail('ALG_KEY'", 'algoritmul declarat e al cheii emitentului'],
['[AIP-25 C3] lista de revocare declara alt algoritm decat cheia emitentului', 'pki.mjs', 'const altAlg = verificate.find((l) => !(l.alg === p.pkAlg));', "const altAlg = verificate.find((l) => !(l.alg === p.pkAlg) && Boolean(Number('0')));", 'algoritmul declarat e al cheii emitentului'],
['[AIP-25 C3] selfSignatureValid nu mai cere algoritmul cheii', 'pki.mjs', 'return c.alg === c.pkAlg && c.subjectRaw.equals(c.issuerRaw)', 'return c.subjectRaw.equals(c.issuerRaw)', 'algoritmul declarat e al cheii emitentului'],
];
// 1. martorul: originalul trebuie sa fie verde, si din el se ia numarul de probe