Skip to content

Commit 46e6f9d

Browse files
Document the vendor range for EC curve and DH group families
1 parent f65ed6f commit 46e6f9d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/psa/crypto_types.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ typedef uint16_t psa_key_type_t;
7070
* The curve identifier is required to create an ECC key using the
7171
* PSA_KEY_TYPE_ECC_KEY_PAIR() or PSA_KEY_TYPE_ECC_PUBLIC_KEY()
7272
* macros.
73+
*
74+
* Values defined by this standard will never be in the range 0x80-0xff.
75+
* Vendors who define additional families must use an encoding in this range.
7376
*/
7477
typedef uint8_t psa_ecc_curve_t;
7578

@@ -78,6 +81,9 @@ typedef uint8_t psa_ecc_curve_t;
7881
* The group identifier is required to create an Diffie-Hellman key using the
7982
* PSA_KEY_TYPE_DH_KEY_PAIR() or PSA_KEY_TYPE_DH_PUBLIC_KEY()
8083
* macros.
84+
*
85+
* Values defined by this standard will never be in the range 0x80-0xff.
86+
* Vendors who define additional families must use an encoding in this range.
8187
*/
8288
typedef uint8_t psa_dh_group_t;
8389

0 commit comments

Comments
 (0)