Change driver key slot numbers to 64 bits

This slightly increases storage requirements, but works in more use
cases. In particular, it allows drivers to treat choose slot numbers
with a monotonic counter that is incremented each time a key is
created, without worrying about overflow in practice.
This commit is contained in:
Gilles Peskine 2019-07-12 23:18:29 +02:00
parent 011e4284a1
commit f03143a4d1

View File

@ -43,7 +43,7 @@ extern "C" {
/** An internal designation of a key slot between the core part of the /** An internal designation of a key slot between the core part of the
* PSA Crypto implementation and the driver. The meaning of this value * PSA Crypto implementation and the driver. The meaning of this value
* is driver-dependent. */ * is driver-dependent. */
typedef uint32_t psa_key_slot_number_t; // Change this to psa_key_slot_t after psa_key_slot_t is removed from Mbed crypto typedef uint64_t psa_key_slot_number_t;
/** \defgroup se_mac Secure Element Message Authentication Codes /** \defgroup se_mac Secure Element Message Authentication Codes
* Generation and authentication of Message Authentication Codes (MACs) using * Generation and authentication of Message Authentication Codes (MACs) using