Add Wycheproof tests #883

Open
JulioLoayzaM wants to merge 2 commits from JulioLoayzaM/add-wycheproof-tests into development
JulioLoayzaM commented 2026-08-27 11:07:08 -05:00 (Migrated from github.com)

Description

This PR adds the generator for .data files from Project Wycheproof test vectors, as well as the .function files to exercise them. When possible, the TF-PSA API is used. The RSA tests make use of mbedtls_pk_* functions.

Since the generated test vectors are ~20MB, they are not committed, thus not included in this PR. We are open to including them directly, instead of having to modify the CI to pull Wycheproof to generate the .data files.

PR checklist

Please remove the segment/s on either side of the | symbol as appropriate, and add any relevant link/s to the end of the line.
If the provided content is part of the present PR remove the # symbol.

  • changelog not required because: this is test code that users do not interact with directly.
  • framework PR not required because: these are tests for TF-PSA only.
  • TF-PSA-Crypto development PR provided: this PR.
  • TF-PSA-Crypto 1.1 PR provided # | not required because:
  • mbedtls development PR not required because: these are tests for TF-PSA only.
  • mbedtls 4.1 PR not required because: these are tests for TF-PSA only.
  • mbedtls 3.6 PR not required because: these are tests for TF-PSA only.
  • tests provided.

Notes for the submitter

Please refer to the contributing guidelines, especially the
checklist for PR contributors.

Help make review efficient:

  • Multiple simple commits
    • please structure your PR into a series of small commits, each of which does one thing
  • Avoid force-push
    • please do not force-push to update your PR - just add new commit(s)
  • See our Guidelines for Contributors for more details about the review process.
## Description This PR adds the generator for `.data` files from [Project Wycheproof](https://github.com/C2SP/wycheproof) test vectors, as well as the `.function` files to exercise them. When possible, the TF-PSA API is used. The RSA tests make use of `mbedtls_pk_*` functions. Since the generated test vectors are ~20MB, they are not committed, thus not included in this PR. We are open to including them directly, instead of having to modify the CI to pull Wycheproof to generate the `.data` files. ## PR checklist Please remove the segment/s on either side of the | symbol as appropriate, and add any relevant link/s to the end of the line. If the provided content is part of the present PR remove the # symbol. - [x] **changelog** not required because: this is test code that users do not interact with directly. - [x] **framework PR** not required because: these are tests for TF-PSA only. - [x] **TF-PSA-Crypto development PR** provided: this PR. - [ ] **TF-PSA-Crypto 1.1 PR** provided # | not required because: - [x] **mbedtls development PR** not required because: these are tests for TF-PSA only. - [x] **mbedtls 4.1 PR** not required because: these are tests for TF-PSA only. - [x] **mbedtls 3.6 PR** not required because: these are tests for TF-PSA only. - **tests** provided. ## Notes for the submitter Please refer to the [contributing guidelines](https://github.com/Mbed-TLS/TF-PSA-Crypto/blob/development/CONTRIBUTING.md), especially the checklist for PR contributors. Help make review efficient: * Multiple simple commits - please structure your PR into a series of small commits, each of which does one thing * Avoid force-push - please do not force-push to update your PR - just add new commit(s) * See our [Guidelines for Contributors](https://mbed-tls.readthedocs.io/en/latest/reviews/review-for-contributors/) for more details about the review process.
This pull request is broken due to missing fork information.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'JulioLoayzaM/add-wycheproof-tests:JulioLoayzaM/add-wycheproof-tests'
git switch 'JulioLoayzaM/add-wycheproof-tests'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'development'
git merge --no-ff 'JulioLoayzaM/add-wycheproof-tests'
git switch 'JulioLoayzaM/add-wycheproof-tests'
git rebase 'development'
git switch 'development'
git merge --ff-only 'JulioLoayzaM/add-wycheproof-tests'
git switch 'JulioLoayzaM/add-wycheproof-tests'
git rebase 'development'
git switch 'development'
git merge --no-ff 'JulioLoayzaM/add-wycheproof-tests'
git switch 'development'
git merge --squash 'JulioLoayzaM/add-wycheproof-tests'
git switch 'development'
git merge --ff-only 'JulioLoayzaM/add-wycheproof-tests'
git switch 'development'
git merge 'JulioLoayzaM/add-wycheproof-tests'
git push origin 'development'
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-Mbed-TLS/TF-PSA-Crypto!883
No description provided.