18 #ifndef PSA_CRYPTO_COMPAT_H
19 #define PSA_CRYPTO_COMPAT_H
33 #define PSA_KEY_HANDLE_INIT MBEDTLS_SVC_KEY_ID_INIT
153 #if !defined(MBEDTLS_DEPRECATED_REMOVED)
161 #define PSA_DH_FAMILY_CUSTOM \
162 ((psa_dh_family_t) MBEDTLS_DEPRECATED_NUMERIC_CONSTANT(0x7e))
185 if (data_length != 0) {
208 uint8_t *
data,
size_t data_size,
size_t *data_length)
220 #define PSA_KEY_DOMAIN_PARAMETERS_SIZE(key_type, key_bits) \
221 MBEDTLS_DEPRECATED_NUMERIC_CONSTANT(1u)
mbedtls_svc_key_id_t psa_key_handle_t
psa_status_t psa_open_key(mbedtls_svc_key_id_t key, psa_key_handle_t *handle)
Open a handle to an existing persistent key.
psa_status_t psa_close_key(psa_key_handle_t handle)
Close a key handle.
static int psa_key_handle_is_null(psa_key_handle_t handle)
Check whether a handle is null.
static const struct attribute attributes[]
static void psa_set_key_type(psa_key_attributes_t *attributes, psa_key_type_t type)
Declare the type of a key.
static psa_status_t MBEDTLS_DEPRECATED psa_set_key_domain_parameters(psa_key_attributes_t *attributes, psa_key_type_t type, const uint8_t *data, size_t data_length)
Set domain parameters for a key.
static psa_status_t MBEDTLS_DEPRECATED psa_get_key_domain_parameters(const psa_key_attributes_t *attributes, uint8_t *data, size_t data_size, size_t *data_length)
Get domain parameters for a key.
uint16_t psa_key_type_t
Encoding of a key type.
int32_t psa_status_t
Function return status.
#define PSA_ERROR_NOT_SUPPORTED
The requested operation or a parameter is not supported by this implementation.
#define PSA_SUCCESS
The action was completed successfully.
static int mbedtls_svc_key_id_is_null(mbedtls_svc_key_id_t key)
Check whether a key identifier is null.
psa_key_id_t mbedtls_svc_key_id_t
Encoding of key identifiers as seen inside the PSA Crypto implementation.
const struct ncbi::grid::netcache::search::fields::KEY key