mbedtls/programs/psa
Gilles Peskine 3a1101a122 Define algorithms for EdDSA
Define algorithms for PureEdDSA and for HashEdDSA, the EdDSA variants
defined by RFC 8032.

The encoding for HashEdDSA needs to encode the hash algorithm so that
the hash can be calculated by passing PSA_ALG_SIGN_GET_HASH(sig_alg)
to psa_hash_compute() or psa_hash_setup(). As a consequence,
Ed25519ph (using SHA-512) and Ed448ph (using SHAKE256) need to have
different algorithm encodings (the key is enough to tell them apart,
but it is not known while hashing). Another consequence is that the
API needs to recognize the Ed448 prehash (64 bytes of SHAKE256 output)
as a hash algorithm.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2021-03-29 14:55:44 +02:00
..
CMakeLists.txt Build: Add MBEDTLS_TARGET_PREFIX 2020-10-20 13:44:44 +01:00
crypto_examples.c Rename output buffer size macros 2021-01-21 13:17:25 +01:00
key_ladder_demo.c Fix several typos 2020-11-11 15:12:14 +01:00
key_ladder_demo.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
psa_constant_names_generated.c Define algorithms for EdDSA 2021-03-29 14:55:44 +02:00
psa_constant_names.c Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00