From c6f03ef6d4808e11a9e262e620085deace95f7e5 Mon Sep 17 00:00:00 2001 From: Andrew Thoelke Date: Tue, 24 Sep 2019 13:19:49 +0100 Subject: [PATCH] Include IANA reference in the definition of ECC curves and DH groups Fixes ARMmbed/psa-crypto#262 --- include/psa/crypto_types.h | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/include/psa/crypto_types.h b/include/psa/crypto_types.h index b6b61984b..f9811bdfe 100644 --- a/include/psa/crypto_types.h +++ b/include/psa/crypto_types.h @@ -65,10 +65,24 @@ typedef int32_t psa_status_t; */ typedef uint32_t psa_key_type_t; -/** The type of PSA elliptic curve identifiers. */ +/** The type of PSA elliptic curve identifiers. + * + * The encoding of curve identifiers is aligned with the + * TLS Supported Groups Registry (formerly known as the + * TLS EC Named Curve Registry) + * https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#tls-parameters-8 + * The values are defined by RFC 8422 and RFC 7027. + */ typedef uint16_t psa_ecc_curve_t; -/** The type of PSA Diffie-Hellman group identifiers. */ +/** The type of PSA Diffie-Hellman group identifiers. + * + * The encoding of group identifiers is aligned with the + * TLS Supported Groups Registry (formerly known as the + * TLS EC Named Curve Registry) + * https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#tls-parameters-8 + * The values are defined by RFC 7919. + */ typedef uint16_t psa_dh_group_t; /** \brief Encoding of a cryptographic algorithm.