mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-16 08:42:50 +00:00
psa: move default definition of MBEDTLS_PSA_STATIC_KEY_SLOT_BUFFER_SIZE
Move the default definition of MBEDTLS_PSA_STATIC_KEY_SLOT_BUFFER_SIZE from psa_crypto_core.h to the public header crypto_extra.h in order to solve documentation build issues. Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
parent
8bc8172c4a
commit
f9face436a
@ -55,15 +55,6 @@ typedef enum {
|
|||||||
PSA_SLOT_PENDING_DELETION,
|
PSA_SLOT_PENDING_DELETION,
|
||||||
} psa_key_slot_state_t;
|
} psa_key_slot_state_t;
|
||||||
|
|
||||||
/* If the size of static key slots is not explicitly defined by the user, then
|
|
||||||
* set it to the maximum between PSA_EXPORT_KEY_PAIR_OR_PUBLIC_MAX_SIZE and
|
|
||||||
* PSA_CIPHER_MAX_KEY_LENGTH. */
|
|
||||||
#if !defined(MBEDTLS_PSA_STATIC_KEY_SLOT_BUFFER_SIZE)
|
|
||||||
#define MBEDTLS_PSA_STATIC_KEY_SLOT_BUFFER_SIZE \
|
|
||||||
((PSA_EXPORT_KEY_PAIR_OR_PUBLIC_MAX_SIZE > PSA_CIPHER_MAX_KEY_LENGTH) ? \
|
|
||||||
PSA_EXPORT_KEY_PAIR_OR_PUBLIC_MAX_SIZE : PSA_CIPHER_MAX_KEY_LENGTH)
|
|
||||||
#endif /* !MBEDTLS_PSA_STATIC_KEY_SLOT_BUFFER_SIZE*/
|
|
||||||
|
|
||||||
/** The data structure representing a key slot, containing key material
|
/** The data structure representing a key slot, containing key material
|
||||||
* and metadata for one key.
|
* and metadata for one key.
|
||||||
*/
|
*/
|
||||||
|
@ -17,7 +17,6 @@ extern "C" {
|
|||||||
|
|
||||||
#include "psa/crypto.h"
|
#include "psa/crypto.h"
|
||||||
#include "psa/crypto_se_driver.h"
|
#include "psa/crypto_se_driver.h"
|
||||||
#include "psa_crypto_core.h"
|
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -32,6 +32,16 @@ extern "C" {
|
|||||||
#define MBEDTLS_PSA_KEY_SLOT_COUNT 32
|
#define MBEDTLS_PSA_KEY_SLOT_COUNT 32
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* If the size of static key slots is not explicitly defined by the user, then
|
||||||
|
* set it to the maximum between PSA_EXPORT_KEY_PAIR_OR_PUBLIC_MAX_SIZE and
|
||||||
|
* PSA_CIPHER_MAX_KEY_LENGTH.
|
||||||
|
* See mbedtls_config.h for the definition. */
|
||||||
|
#if !defined(MBEDTLS_PSA_STATIC_KEY_SLOT_BUFFER_SIZE)
|
||||||
|
#define MBEDTLS_PSA_STATIC_KEY_SLOT_BUFFER_SIZE \
|
||||||
|
((PSA_EXPORT_KEY_PAIR_OR_PUBLIC_MAX_SIZE > PSA_CIPHER_MAX_KEY_LENGTH) ? \
|
||||||
|
PSA_EXPORT_KEY_PAIR_OR_PUBLIC_MAX_SIZE : PSA_CIPHER_MAX_KEY_LENGTH)
|
||||||
|
#endif /* !MBEDTLS_PSA_STATIC_KEY_SLOT_BUFFER_SIZE*/
|
||||||
|
|
||||||
/** \addtogroup attributes
|
/** \addtogroup attributes
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user