interplane.Get Omega
Read in your language

aien-receipts

Append-only AIEN verification receipts, indexed by repository and exact source commit. Read verdicts, signatures and retained logs before making a claim.

Brought by drakestapleton

branch main Branches Tags History

aien-receipts / audit / tls / omega-mv / acvp / NOTES.md

138 lines · 14168 bytes Raw Blame History Source

ACVP sample-vector proof pack for Omega's TLS 1.3 library (om/tls)

What this is: the om/tls library was tested against the CAVP/ACVP test methods with NIST's published vectors. It is not NIST-validated. These are self-run sample vectors from NIST's public ACVP-Server repository. They are not a CAVP certificate. A CAVP certificate (an "A-number") is issued only when an accredited laboratory submits through NIST's ACVP production server. Nothing here is "FIPS validated" or "FIPS certified". The ACVP-Server sample files hold both the prompts and NIST's expected answers. This pack answers the prompts with the library, then compares the answers field by field with NIST's expectedResults.json.

Labels: MEASURED = observed in the cited artifact in this directory. NOT_RUN = not executed. No figure here is MODELED. All figures are integer counts or hashes, so Wolfram was not used.

Pins

Rerun

git clone --branch audit/tls-outside-review https://github.com/aien-dev/omega-mv.git src && cd src
git checkout 2d613b2d2f4650ae9b5a693b3fb4caffab0dea20
# copy code/* to om/tls/test/acvp/ (the integration PR will carry them)
MLKEM_SRC=<dir with sha3.om mlkem.om> ACVP_DRBG_ROOT=<tree with om/tls/test/drbg> sh om/tls/test/acvp/run.sh seed/out/omc

Without ACVP_DIR, run.sh fetches the pinned ACVP-Server commit into build/tls/acvp/acvp-server. The fetch is a sparse checkout of the 47 files. Without MLKEM_SRC / ACVP_DRBG_ROOT, and with no such files in the tree, those lines print NOT_RUN and the final line is ACVP PARTIAL ... not_run=... with exit 3. NOT_RUN never counts as PASS.

How it works

Results (MEASURED, logs/run.log, run 2026-10-26, wall time 113.6 s from /usr/bin/time)

ACVP SHA2-256-1.0 PASS tests=517 not_applicable=0
ACVP SHA2-384-1.0 PASS tests=137 not_applicable=892
ACVP SHA2-512-1.0 PASS tests=1029 not_applicable=0
ACVP HMAC-SHA2-256-1.0 PASS tests=975 not_applicable=0
ACVP HMAC-SHA2-384-1.0 PASS tests=975 not_applicable=0
ACVP HMAC-SHA2-512-1.0 PASS tests=975 not_applicable=0
ACVP HMAC-SHA2-256-2.0 PASS tests=150 not_applicable=0
ACVP HMAC-SHA2-384-2.0 PASS tests=150 not_applicable=0
ACVP HMAC-SHA2-512-2.0 PASS tests=150 not_applicable=0
ACVP ACVP-AES-GCM-1.0 PASS tests=60 not_applicable=0
ACVP ACVP-AES-ECB-1.0 PASS tests=1072 not_applicable=1072
ACVP ECDSA-SigVer-1.0 PASS tests=42 not_applicable=2268
ACVP ECDSA-SigVer-FIPS186-5 PASS tests=28 not_applicable=168
ACVP RSA-SigVer-FIPS186-4 NOT_APPLICABLE tests=0 not_applicable=432
ACVP RSA-SigVer-FIPS186-5 PASS tests=108 not_applicable=162
ACVP KDA-HKDF-Sp800-56Cr1 PASS tests=300 not_applicable=700
ACVP KDA-HKDF-Sp800-56Cr2 PASS tests=600 not_applicable=1400
ACVP TLS-v1.3-KDF-RFC8446 PASS tests=250 not_applicable=0
ACVP XECDH-SSC-RFC7748 PASS tests=25 not_applicable=25
ACVP KAS-ECC-SSC-Sp800-56Ar3 NOT_APPLICABLE tests=0 not_applicable=20
ACVP TLS-v1.3-KDF-RFC8446-native(tls.om) PASS tests=25 not_applicable=0
ACVP ML-KEM-keyGen-FIPS203 PASS tests=25 not_applicable=50
ACVP ML-KEM-encapDecap-FIPS203 PASS tests=55 not_applicable=110
ACVP hmacDRBG (om/tls/test/drbg/run.sh in /tmp/tlsproof/fipsmodule/src) DRBG PASS vectors=810 (acvp=90, cavp=720) api=23 mutants=13/13
NONFIPS CHACHA PASS vectors=3087 (wycheproof=339) mutants=5/5
NONFIPS X25519 PASS vectors=531 (wycheproof=518) mutants=7/7
ACVP PASS algos=21 tests=7623 not_applicable=7299 not_run=NONE

Development finding (MEASURED, logs/run1-ecdsa-sp800-106.log)

The first full run failed on ECDSA-SigVer-1.0 (fail=6 of 84). The cause was in the converter, not the library. ECDSA-SigVer-1.0 has groups with conformance: SP800-106, whose message must first be randomized with randomValue (SP 800-106) before hashing. The converter had ignored that field. Those groups are now listed as not applicable, and any other conformance value stops the converter. The second run passes 42 of 42.

Test types covered

Exclusions (each test is listed with its reason in responses/FOLDER.map.json → na)

FolderNot applicableReason
SHA2-384-1.0892message length is not a whole number of bytes, and the library hashes bytes. (SHA2-256/512 vectors are all byte-aligned.)
ACVP-AES-ECB-1.01072decrypt: the library has no AES inverse cipher. TLS uses AES only inside GCM, encrypt direction. ECB encrypt is tested through the library's internal aes_setkey/aes_enc4, which are not a public API.
ECDSA-SigVer-1.02268curves other than P-256/P-384, hashes other than SHA2-256/384/512, and SP 800-106 randomized hashing
ECDSA-SigVer-FIPS186-5168curves other than P-256/P-384, hashes other than SHA2-256/384/512
RSA-SigVer-FIPS186-4432ANSI X9.31 (144), PKCS#1 v1.5 with SHA-1 or SHA2-224 (144), PSS with SHA-1 or SHA2-224 (144). Every group in this file uses one of these, so none can run.
RSA-SigVer-FIPS186-5162every RSASSA-PSS group here uses SHAKE-128, SHAKE-256 or SHA3-256 as hash and/or MGF. The library's PSS takes SHA2-256/384/512 with MGF1. rsa_verify_pss is therefore not exercised through ACVP. It is covered by om/tls/test/rsa (Wycheproof rsa_pss_* files), which is not part of this pack.
KDA-HKDF-Sp800-56Cr1 / Cr2700 / 1400HMAC hash not in the library: SHA2-224, SHA2-512/224, SHA2-512/256, SHA3-224/256/384/512
XECDH-SSC-RFC774825Curve448
KAS-ECC-SSC-Sp800-56Ar320no SP 800-56A ECC key agreement in the library. Its key exchange is X25519; P-256/P-384 serve ECDSA verification only.
ML-KEM keyGen / encapDecap50 / 110ML-KEM-512 and ML-KEM-1024. The library is ML-KEM-768 only.

Encodings the converter applies

These are re-encodings of NIST's inputs, not computations:

Outside the FIPS track

ChaCha20-Poly1305 (RFC 8439) and X25519 (RFC 7748) have no CAVP/ACVP test method in this ACVP-Server tree as used here. XECDH-SSC above does cover X25519 shared secrets: 25 tests. Both ran through the repo's own suites:

Results are MEASURED in logs/run.log (NONFIPS lines). Wycheproof was not duplicated here; it belongs to TlsSuites.

Overlap

TlsSuites' own ML-KEM suite also replays ACVP 975de31e ML-KEM-768 vectors from internalProjection.json. Per TlsSuites.MlKem's message (not run by me), it reports MLKEM PASS vectors=4500 (wycheproof=756 fips203=105). This pack checks the prompt → response → expectedResults path independently.

NOT_RUN

Files