blob: 72f671d63d5a8da8d89a86f72b587f474709482c [file] [log] [blame]
Ronald Crond7906322021-01-28 16:07:56 +01001/*
2 * PSA crypto client code
3 */
4/*
5 * Copyright The Mbed TLS Contributors
Dave Rodgman16799db2023-11-02 19:47:20 +00006 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
Ronald Crond7906322021-01-28 16:07:56 +01007 */
8
9#include "common.h"
Ronald Crond7906322021-01-28 16:07:56 +010010#include "psa/crypto.h"
11
Ronald Cron395889f2021-02-09 12:36:49 +010012#if defined(MBEDTLS_PSA_CRYPTO_CLIENT)
13
Ronald Cron21b56162021-01-28 16:36:00 +010014#include <string.h>
15#include "mbedtls/platform.h"
Ronald Cron21b56162021-01-28 16:36:00 +010016
Gilles Peskine449bd832023-01-11 14:50:10 +010017void psa_reset_key_attributes(psa_key_attributes_t *attributes)
Ronald Cron21b56162021-01-28 16:36:00 +010018{
Gilles Peskine449bd832023-01-11 14:50:10 +010019 memset(attributes, 0, sizeof(*attributes));
Ronald Cron21b56162021-01-28 16:36:00 +010020}
21
Ronald Cron395889f2021-02-09 12:36:49 +010022#endif /* MBEDTLS_PSA_CRYPTO_CLIENT */