update-wycheproof-test-vectors
How to import updated Project Wycheproof test vectors and regenerate BoringSSL's FileTest inputs.
Warnings for the author
- "name" should match the name of the directory that holds SKILL.md
- Not listed through the skills extension: the directory must be named after the skill.
Updating Wycheproof Test Vectors
Note: Handling new tests, upstream JSON fields, or acceptable test flags requires judgment. Do a first pass on these decisions, call out all such decisions explicitly in your output to the user along with a concise justification for your first-pass decision, and wait for the human user's decision on anything genuinely questionable.
-
Sync Upstream JSON Vectors:
- Sync
testvectors_v1/*.jsonfrom the target revision of the upstream github.com repository recorded in third_party/wycheproof_testvectors/METADATA intothird_party/wycheproof_testvectors/(including additions and deletions).
- Sync
-
Convert Implemented Test Vectors to
.txt:- Only convert and import into BoringSSL's test suite (
defaultInputsin util/convert_wycheproof/convert_wycheproof.go and*_test.cc) test vectors for primitives and formats implemented in BoringSSL (checking both new upstream files and whether BoringSSL now implements anything previously skipped). Note any omissions in the CL description. - When invoked with no arguments,
convert_wycheproof.goreadsdefaultInputsfrom and writes.txtfiles to CWD:(cd third_party/wycheproof_testvectors && go run ../../util/convert_wycheproof/convert_wycheproof.go) - If
.txtfiles are added or removed (ordefaultInputschanges), run update_pregenerated_files.
- Only convert and import into BoringSSL's test suite (
-
Update METADATA: Update
versionandlast_upgrade_date. -
Build and Triage:
- Build and run
crypto_test(see build_and_test). - Update
convert_wycheproof.goor*_test.ccconsumers as needed for new tests, upstream fields, oracceptabletest flags (see crypto/test/wycheproof_util.h), following the judgment and reporting note above.
- Build and run
Files of this skill
This skill has no supporting files.