Mistake on this page?
Report an issue in GitHub or email us
TARGET_Cypress/TARGET_MXCRYPTO/mbedtls_device.h
1 /*
2  * mbed Microcontroller Library
3  * Copyright (c) 2019 Cypress Semiconductor Corporation
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may 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,
13  * WITHOUT 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 MBEDTLS_DEVICE_H
19 #define MBEDTLS_DEVICE_H
20 
21 #ifndef MXCRYPTO_DISABLED
22 /* Currently this target supports SHA1 */
23 // #define MBEDTLS_SHA1_C
24 
25 #define MBEDTLS_SHA1_ALT
26 #define MBEDTLS_SHA256_ALT
27 #define MBEDTLS_SHA512_ALT
28 
29 /* Currently this target supports CBC, CFB, OFB, CTR and XTS cipher modes */
30 #define MBEDTLS_AES_ALT
31 // #define MBEDTLS_CIPHER_MODE_CBC
32 // #define MBEDTLS_CIPHER_MODE_CFB
33 // #define MBEDTLS_CIPHER_MODE_OFB
34 // #define MBEDTLS_CIPHER_MODE_CTR
35 // #define MBEDTLS_CIPHER_MODE_XTS
36 
37 /* Only NIST-P curves are currently supported */
38 #define MBEDTLS_ECP_ALT
39 // #define MBEDTLS_ECP_DP_SECP192R1_ENABLED
40 // #define MBEDTLS_ECP_DP_SECP224R1_ENABLED
41 // #define MBEDTLS_ECP_DP_SECP256R1_ENABLED
42 // #define MBEDTLS_ECP_DP_SECP384R1_ENABLED
43 // #define MBEDTLS_ECP_DP_SECP521R1_ENABLED
44 
45 #define MBEDTLS_ECDSA_SIGN_ALT
46 #define MBEDTLS_ECDSA_VERIFY_ALT
47 
48 #endif /* #ifndef MXCRYPTO_DISABLED */
49 #endif /* MBEDTLS_DEVICE_H */
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.