mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-01 22:20:58 +00:00
Secure element driver structure
Define a structure type containing all the methods of a secure element driver.
This commit is contained in:
parent
e6d5781ef4
commit
b6cadea6a5
@ -8,11 +8,11 @@
|
|||||||
* space in which the PSA Crypto implementation runs, typically secure
|
* space in which the PSA Crypto implementation runs, typically secure
|
||||||
* elements (SEs).
|
* elements (SEs).
|
||||||
*
|
*
|
||||||
* This file is part of the PSA Crypto Driver Model, containing functions for
|
* This file is part of the PSA Crypto Driver HAL (hardware abstraction layer),
|
||||||
* driver developers to implement to enable hardware to be called in a
|
* containing functions for driver developers to implement to enable hardware
|
||||||
* standardized way by a PSA Cryptographic API implementation. The functions
|
* to be called in a standardized way by a PSA Cryptography API
|
||||||
* comprising the driver model, which driver authors implement, are not
|
* implementation. The functions comprising the driver HAL, which driver
|
||||||
* intended to be called by application developers.
|
* authors implement, are not intended to be called by application developers.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -961,6 +961,38 @@ typedef struct {
|
|||||||
|
|
||||||
/**@}*/
|
/**@}*/
|
||||||
|
|
||||||
|
/** \defgroup se_registration Secure element driver registration
|
||||||
|
*/
|
||||||
|
/**@{*/
|
||||||
|
|
||||||
|
/** A structure containing pointers to all the entry points of a
|
||||||
|
* secure element driver.
|
||||||
|
*
|
||||||
|
* Future versions of this specification may add extra substructures at
|
||||||
|
* the end of this structure.
|
||||||
|
*/
|
||||||
|
typedef struct {
|
||||||
|
/** The version of the driver model that this driver implements.
|
||||||
|
* This is a protection against linking driver binaries built against
|
||||||
|
* a different version of this specification.
|
||||||
|
* Use #PSA_DRV_SE_HAL_VERSION.
|
||||||
|
*/
|
||||||
|
uint32_t hal_version;
|
||||||
|
psa_drv_se_key_management_t key_management;
|
||||||
|
psa_drv_se_mac_t mac;
|
||||||
|
psa_drv_se_cipher_t cipher;
|
||||||
|
psa_drv_se_aead_t aead;
|
||||||
|
psa_drv_se_asymmetric_t asymmetric;
|
||||||
|
psa_drv_se_key_derivation_t derivation;
|
||||||
|
} psa_drv_se_t;
|
||||||
|
|
||||||
|
/** The current version of the opaque driver model.
|
||||||
|
*/
|
||||||
|
/* 0.0.0 patchlevel 5 */
|
||||||
|
#define PSA_DRV_SE_HAL_VERSION 0x00000005
|
||||||
|
|
||||||
|
/**@}*/
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user