Prerequisites for testing Blake2 algorithm in TF-PSA-Crypto - #316
Open
valeriosetti wants to merge 2 commits into
Open
Prerequisites for testing Blake2 algorithm in TF-PSA-Crypto#316valeriosetti wants to merge 2 commits into
valeriosetti wants to merge 2 commits into
Conversation
7 tasks
Signed-off-by: Valerio Setti <vsetti@baylibre.com>
PKCS v1.5 requires an OID for the hash algorithm being used, but so far no OID has been standardized for Blake2. Therefore exercizing this configuration should be avoided. Signed-off-by: Valerio Setti <vsetti@baylibre.com>
7 tasks
bjwtaylor
reviewed
Aug 17, 2026
| # RSA PKCS#1v1.5 signatures embed an ASN.1 OID identifying the hash | ||
| # algorithm, but there is no such OID being officially standardized for | ||
| # for BLAKE2. This is also reported on the PSA Crypto API specification: | ||
| # https://arm-software.github.io/psa-api/crypto/1.5/api/ops/hash.html#c.PSA_ALG_BLAKE2S_HASH256 |
There was a problem hiding this comment.
I believe this is now incorrect as these are specified here https://www.rfc-editor.org/rfc/rfc7693.html#section-4 Let me know what you think though?
Contributor
There was a problem hiding this comment.
This is correct with respect to the PSA specification.
I'll go and check if that OID is actually used in RSA PKCS#1v1.5 signatures. (It's sometimes a bit of a mess.) If so we'll update the PSA specification.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add support for Blake2 hash algorithms.
Prerequisite for Mbed-TLS/TF-PSA-Crypto#867.
PR checklist