crypto_config.h
Go to the documentation of this file.
1 /*
2  * Copyright 2024-2025, Texas Instruments Incorporated
3  * SPDX-License-Identifier: Apache-2.0
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License"); you may
6  * not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 #ifndef CRYPTO_CONFIG_H
19 #define CRYPTO_CONFIG_H
20 
21 #include <ti/devices/DeviceFamily.h>
22 
23 #ifndef TFM_BUILD
24  /* Secure only configuration */
25 
26  #define ENABLE_TI_CRYPTO_AESCBC
27 
28  #define ENABLE_TI_CRYPTO_AESCCM
29 
30  #define ENABLE_TI_CRYPTO_AESCMAC
31 
32  #define ENABLE_TI_CRYPTO_AESCTR
33 
34  #define ENABLE_TI_CRYPTO_AESECB
35 
36  #define ENABLE_TI_CRYPTO_AESGCM
37 
38  #define ENABLE_TI_CRYPTO_ECDH
39 
40  #define ENABLE_TI_CRYPTO_ECDSA
41 
42  #define ENABLE_TI_CRYPTO_EDDSA
43 
44  /* Devices with HSM use RNG driver for random number operations */
45  #if ((DeviceFamily_PARENT == DeviceFamily_PARENT_CC27XX) || (DeviceFamily_PARENT == DeviceFamily_PARENT_CC35XX))
46  #define ENABLE_TI_CRYPTO_RNG
47  #else
48  #define ENABLE_TI_CRYPTO_TRNG
49  #endif
50 
51  #define ENABLE_TI_CRYPTO_SHA2
52 
53 #endif /* TFM_BUILD */
54 
55 #endif /* CRYPTO_CONFIG_H */
© Copyright 1995-2026, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale