Skip to content

Prerequisites for testing Blake2 algorithm in TF-PSA-Crypto - #316

Open
valeriosetti wants to merge 2 commits into
Mbed-TLS:mainfrom
valeriosetti:blake2
Open

Prerequisites for testing Blake2 algorithm in TF-PSA-Crypto#316
valeriosetti wants to merge 2 commits into
Mbed-TLS:mainfrom
valeriosetti:blake2

Conversation

@valeriosetti

Copy link
Copy Markdown
Contributor

Description

Add support for Blake2 hash algorithms.
Prerequisite for Mbed-TLS/TF-PSA-Crypto#867.

PR checklist

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>
# 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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants