Run cryptofuzz against the PSA API #607

Open
opened 2023-09-13 07:14:11 -05:00 by gilles-peskine-arm · 1 comment
gilles-peskine-arm commented 2023-09-13 07:14:11 -05:00 (Migrated from github.com)

This is an epic-level task. The overall goal is to integrate the PSA crypto API into cryptofuzz and arrange for OSS-Fuzz to run that.

  1. Familiarization
  2. Add a modifier to the cryptofuzz backend for mbedtls, so that it will either dispatch to the legacy API or to PSA. See guidance from the author of cryptofuzz.
  3. Implement at least one algorithm in cryptofuzz with PSA (hashes are likely the best candidate).
  4. Ensure that the way OSS-Fuzz runs cryptofuzz does pick up the PSA code paths (I'm not sure if there's any change to do there).
  5. Continue adding PSA code paths until the whole API is covered (insofar as it's within the scope of Cryptofuzz).

Guido (author of Cryptofuzz) can help with the Cryptofuzz integration:

once you submit a rough draft I can take it from there.

This is an epic-level task. The overall goal is to integrate the PSA crypto API into [cryptofuzz](https://github.com/guidovranken/cryptofuzz) and arrange for [OSS-Fuzz](https://github.com/google/oss-fuzz) to run that. 1. [Familiarization](https://github.com/Mbed-TLS/mbedtls/issues/6887) 2. Add a modifier to the cryptofuzz backend for mbedtls, so that it will either dispatch to the legacy API or to PSA. See [guidance from the author of cryptofuzz](https://github.com/guidovranken/cryptofuzz/issues/47). 3. Implement at least one algorithm in cryptofuzz with PSA (hashes are likely the best candidate). 4. Ensure that the way OSS-Fuzz runs cryptofuzz does pick up the PSA code paths (I'm not sure if there's any change to do there). 5. Continue adding PSA code paths until the whole API is covered (insofar as it's within the scope of Cryptofuzz). Guido (author of Cryptofuzz) can help with the Cryptofuzz integration: > once you submit a rough draft I can take it from there.
gilles-peskine-arm commented 2025-12-11 11:55:03 -06:00 (Migrated from github.com)

This is on hold since OSS-Fuzz is currently unmaintained and bitrotted.

This is on hold since OSS-Fuzz is currently unmaintained and bitrotted.
Sign in to join this conversation.
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#607
No description provided.