mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-31 18:32:57 +00:00
Merge pull request #8517 from mschulz-at-hilscher/fixes/issue-6910
Fixes redundant declarations for psa_set_key_domain_parameters
This commit is contained in:
commit
1cc90a1003
@ -464,10 +464,13 @@ psa_status_t mbedtls_psa_inject_entropy(const uint8_t *seed,
|
|||||||
* \retval #PSA_ERROR_NOT_SUPPORTED \emptydescription
|
* \retval #PSA_ERROR_NOT_SUPPORTED \emptydescription
|
||||||
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY \emptydescription
|
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY \emptydescription
|
||||||
*/
|
*/
|
||||||
|
#if !defined(PSA_SET_KEY_DOMAIN_PARAMETERS)
|
||||||
|
#define PSA_SET_KEY_DOMAIN_PARAMETERS
|
||||||
psa_status_t psa_set_key_domain_parameters(psa_key_attributes_t *attributes,
|
psa_status_t psa_set_key_domain_parameters(psa_key_attributes_t *attributes,
|
||||||
psa_key_type_t type,
|
psa_key_type_t type,
|
||||||
const uint8_t *data,
|
const uint8_t *data,
|
||||||
size_t data_length);
|
size_t data_length);
|
||||||
|
#endif /* PSA_SET_KEY_DOMAIN_PARAMETERS */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Get domain parameters for a key.
|
* \brief Get domain parameters for a key.
|
||||||
|
@ -368,10 +368,13 @@ static inline psa_algorithm_t psa_get_key_algorithm(
|
|||||||
|
|
||||||
/* This function is declared in crypto_extra.h, which comes after this
|
/* This function is declared in crypto_extra.h, which comes after this
|
||||||
* header file, but we need the function here, so repeat the declaration. */
|
* header file, but we need the function here, so repeat the declaration. */
|
||||||
|
#if !defined(PSA_SET_KEY_DOMAIN_PARAMETERS)
|
||||||
|
#define PSA_SET_KEY_DOMAIN_PARAMETERS
|
||||||
psa_status_t psa_set_key_domain_parameters(psa_key_attributes_t *attributes,
|
psa_status_t psa_set_key_domain_parameters(psa_key_attributes_t *attributes,
|
||||||
psa_key_type_t type,
|
psa_key_type_t type,
|
||||||
const uint8_t *data,
|
const uint8_t *data,
|
||||||
size_t data_length);
|
size_t data_length);
|
||||||
|
#endif /* PSA_SET_KEY_DOMAIN_PARAMETERS */
|
||||||
|
|
||||||
static inline void psa_set_key_type(psa_key_attributes_t *attributes,
|
static inline void psa_set_key_type(psa_key_attributes_t *attributes,
|
||||||
psa_key_type_t type)
|
psa_key_type_t type)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user