Skip to content

google/boringssl

Mirror of BoringSSL

https://skillcdn.ai/gh/google/boringssl

Connect this address to your AI to use this skill. How to connect

  • Unverified
  • Default branchmain
  • Commit1008a51
  • LicenseApache-2.0
  • Searchwords
View on GitHub

update-wycheproof-test-vectors

How to import updated Project Wycheproof test vectors and regenerate BoringSSL's FileTest inputs.

Path
_agents/skills/update_wycheproof_test_vectors/SKILL.md
License
Apache-2.0

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.

  1. Sync Upstream JSON Vectors:

    • Sync testvectors_v1/*.json from the target revision of the upstream github.com repository recorded in third_party/wycheproof_testvectors/METADATA into third_party/wycheproof_testvectors/ (including additions and deletions).
  2. Convert Implemented Test Vectors to .txt:

    • Only convert and import into BoringSSL's test suite (defaultInputs in 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.go reads defaultInputs from and writes .txt files to CWD:
      (cd third_party/wycheproof_testvectors && go run ../../util/convert_wycheproof/convert_wycheproof.go)
      
    • If .txt files are added or removed (or defaultInputs changes), run update_pregenerated_files.
  3. Update METADATA: Update version and last_upgrade_date.

  4. Build and Triage:

    • Build and run crypto_test (see build_and_test).
    • Update convert_wycheproof.go or *_test.cc consumers as needed for new tests, upstream fields, or acceptable test flags (see crypto/test/wycheproof_util.h), following the judgment and reporting note above.

Files of this skill

This skill has no supporting files.

Browse all supporting files