21#ifndef PSA_CRYPTO_CORE_H
22#define PSA_CRYPTO_CORE_H
24#if !defined(MBEDTLS_CONFIG_FILE)
27#include MBEDTLS_CONFIG_FILE
74#if defined(MBEDTLS_PSA_CRYPTO_SE_C)
86#define PSA_KA_MASK_INTERNAL_ONLY ( \
98static inline int psa_is_key_slot_occupied(
const psa_key_slot_t *slot )
100 return( slot->attr.type != 0 );
111static inline int psa_is_key_slot_locked(
const psa_key_slot_t *slot )
113 return( slot->lock_count > 0 );
124static inline uint16_t psa_key_slot_get_flags(
const psa_key_slot_t *slot,
127 return( slot->attr.flags & mask );
140 slot->attr.flags = ( ( ~mask & slot->attr.flags ) |
149static inline void psa_key_slot_set_bits_in_flags(
psa_key_slot_t *slot,
152 slot->attr.flags |= mask;
163 slot->attr.flags &= ~mask;
198 size_t data_length );
Configuration options (set of defines)
Platform Security Architecture cryptography module.
PSA external cryptoprocessor driver module.
int32_t psa_status_t
Function return status.
uint64_t psa_key_slot_number_t
An internal designation of a key slot between the core part of the PSA Crypto implementation and the ...
The data structure representing a key slot, containing key material and metadata for one key.