1 /* 2 * Copyright (c) 2025, ARM Limited and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef MBEDTLS_PSA_CRYPTO_H 8 #define MBEDTLS_PSA_CRYPTO_H 9 10 #define MAX_CACHED_KEYS 10 11 12 typedef struct key_cache_s { 13 const char *pk_oid; /* Store OID of the public key */ 14 psa_key_id_t key_id; /* PSA key ID */ 15 psa_algorithm_t psa_alg; /* PSA Algorithm associated with the key */ 16 psa_key_attributes_t psa_key_attr; /* PSA key attributes associated with the key */ 17 bool valid; /* Whether this cache entry is valid */ 18 } key_cache_t; 19 20 #endif /* MBEDTLS_PSA_CRYPTO_H */ 21