Ronald Cron | d790632 | 2021-01-28 16:07:56 +0100 | [diff] [blame] | 1 | /* |
2 | * PSA crypto client code | ||||
3 | */ | ||||
4 | /* | ||||
5 | * Copyright The Mbed TLS Contributors | ||||
Dave Rodgman | 16799db | 2023-11-02 19:47:20 +0000 | [diff] [blame] | 6 | * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later |
Ronald Cron | d790632 | 2021-01-28 16:07:56 +0100 | [diff] [blame] | 7 | */ |
8 | |||||
9 | #include "common.h" | ||||
Ronald Cron | d790632 | 2021-01-28 16:07:56 +0100 | [diff] [blame] | 10 | #include "psa/crypto.h" |
11 | |||||
Ronald Cron | 395889f | 2021-02-09 12:36:49 +0100 | [diff] [blame] | 12 | #if defined(MBEDTLS_PSA_CRYPTO_CLIENT) |
13 | |||||
Ronald Cron | 21b5616 | 2021-01-28 16:36:00 +0100 | [diff] [blame] | 14 | #include <string.h> |
15 | #include "mbedtls/platform.h" | ||||
Ronald Cron | 21b5616 | 2021-01-28 16:36:00 +0100 | [diff] [blame] | 16 | |
Gilles Peskine | 449bd83 | 2023-01-11 14:50:10 +0100 | [diff] [blame] | 17 | void psa_reset_key_attributes(psa_key_attributes_t *attributes) |
Ronald Cron | 21b5616 | 2021-01-28 16:36:00 +0100 | [diff] [blame] | 18 | { |
Gilles Peskine | 449bd83 | 2023-01-11 14:50:10 +0100 | [diff] [blame] | 19 | memset(attributes, 0, sizeof(*attributes)); |
Ronald Cron | 21b5616 | 2021-01-28 16:36:00 +0100 | [diff] [blame] | 20 | } |
21 | |||||
Ronald Cron | 395889f | 2021-02-09 12:36:49 +0100 | [diff] [blame] | 22 | #endif /* MBEDTLS_PSA_CRYPTO_CLIENT */ |