mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2024-12-28 06:19:27 +00:00
90ca4145cf
Move all the modules that constitute the crypto library as well as the associated headers to tf-psa-crypto/core for the PSA core modules and to tf-psa-crypto/drivers/builtin/src for the others. The common.h file is copied instead of being just moved as eventually they will be different in mbedtls and TF-PSA-Crypto. Some parts of it can be shared though but this will be done later, probably when adding the CMake build system in tf-psa-crypto. Signed-off-by: Ronald Cron <ronald.cron@arm.com>
23 lines
434 B
C
23 lines
434 B
C
/*
|
|
* PSA crypto client code
|
|
*/
|
|
/*
|
|
* Copyright The Mbed TLS Contributors
|
|
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
|
*/
|
|
|
|
#include "common.h"
|
|
#include "psa/crypto.h"
|
|
|
|
#if defined(MBEDTLS_PSA_CRYPTO_CLIENT)
|
|
|
|
#include <string.h>
|
|
#include "mbedtls/platform.h"
|
|
|
|
void psa_reset_key_attributes(psa_key_attributes_t *attributes)
|
|
{
|
|
memset(attributes, 0, sizeof(*attributes));
|
|
}
|
|
|
|
#endif /* MBEDTLS_PSA_CRYPTO_CLIENT */
|