Skip to content

Commit

Permalink
Merge branch 'tmp-branch-move-files-to-framework' into move-files-int…
Browse files Browse the repository at this point in the history
…o-framework
  • Loading branch information
Harry-Ramsey committed Jan 13, 2025
2 parents feb09e2 + 8358a65 commit ea6c3d0
Show file tree
Hide file tree
Showing 3 changed files with 743 additions and 0 deletions.
16 changes: 16 additions & 0 deletions configs/config-symmetric-only.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* \file config-symmetric-only.h
*
* \brief Configuration without any asymmetric cryptography.
*/
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

/* Mbed TLS feature support */
#define MBEDTLS_ERROR_STRERROR_DUMMY
#define MBEDTLS_VERSION_FEATURES

#define MBEDTLS_TIMING_C
#define MBEDTLS_VERSION_C
28 changes: 28 additions & 0 deletions configs/crypto-config-ccm-aes-sha256.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/**
* \file configs/crypto-config-ccm-aes-sha256.h
*
* \brief PSA crypto configuration with only symmetric cryptography: CCM-AES,
* SHA-256 and key derivation (uses HMAC).
*/
/*
* Copyright The Mbed TLS Contributors
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
*/

#ifndef PSA_CRYPTO_CONFIG_H
#define PSA_CRYPTO_CONFIG_H

#define PSA_WANT_ALG_CCM 1
#define PSA_WANT_ALG_SHA_256 1
#define PSA_WANT_ALG_TLS12_PRF 1
#define PSA_WANT_ALG_TLS12_PSK_TO_MS 1
#define PSA_WANT_KEY_TYPE_DERIVE 1
#define PSA_WANT_KEY_TYPE_AES 1
#define PSA_WANT_KEY_TYPE_RAW_DATA 1


#define MBEDTLS_PSA_CRYPTO_C
#define MBEDTLS_CTR_DRBG_C
#define MBEDTLS_ENTROPY_C

#endif /* PSA_CRYPTO_CONFIG_H */
Loading

0 comments on commit ea6c3d0

Please sign in to comment.