mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-23 09:55:40 +01:00
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:
parent
011e4284a1
commit
f03143a4d1
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user