Document the vendor range for EC curve and DH group families

This commit is contained in:
Gilles Peskine 2019-12-04 17:24:43 +01:00
parent f65ed6f254
commit 46e6f9de4a

View file

@ -70,6 +70,9 @@ typedef uint16_t psa_key_type_t;
* The curve identifier is required to create an ECC key using the * The curve identifier is required to create an ECC key using the
* PSA_KEY_TYPE_ECC_KEY_PAIR() or PSA_KEY_TYPE_ECC_PUBLIC_KEY() * PSA_KEY_TYPE_ECC_KEY_PAIR() or PSA_KEY_TYPE_ECC_PUBLIC_KEY()
* macros. * macros.
*
* Values defined by this standard will never be in the range 0x80-0xff.
* Vendors who define additional families must use an encoding in this range.
*/ */
typedef uint8_t psa_ecc_curve_t; typedef uint8_t psa_ecc_curve_t;
@ -78,6 +81,9 @@ typedef uint8_t psa_ecc_curve_t;
* The group identifier is required to create an Diffie-Hellman key using the * The group identifier is required to create an Diffie-Hellman key using the
* PSA_KEY_TYPE_DH_KEY_PAIR() or PSA_KEY_TYPE_DH_PUBLIC_KEY() * PSA_KEY_TYPE_DH_KEY_PAIR() or PSA_KEY_TYPE_DH_PUBLIC_KEY()
* macros. * macros.
*
* Values defined by this standard will never be in the range 0x80-0xff.
* Vendors who define additional families must use an encoding in this range.
*/ */
typedef uint8_t psa_dh_group_t; typedef uint8_t psa_dh_group_t;