File tree Expand file tree Collapse file tree 5 files changed +797
-1
lines changed
features/mbedtls/targets/TARGET_STM
TARGET_STM32F4/TARGET_NUCLEO_F439ZI Expand file tree Collapse file tree 5 files changed +797
-1
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ using namespace utest::v1;
32
32
#include " mbedtls/sha512.h"
33
33
#include " mbedtls/entropy.h"
34
34
#include " mbedtls/entropy_poll.h"
35
+ #include " mbedtls/aes.h"
35
36
36
37
#include < string.h>
37
38
@@ -67,6 +68,9 @@ MBEDTLS_SELF_TEST_TEST_CASE(mbedtls_sha512_self_test)
67
68
MBEDTLS_SELF_TEST_TEST_CASE (mbedtls_entropy_self_test)
68
69
#endif
69
70
71
+ #if defined(MBEDTLS_AES_C)
72
+ MBEDTLS_SELF_TEST_TEST_CASE (mbedtls_aes_self_test)
73
+ #endif
70
74
#else
71
75
#warning "MBEDTLS_SELF_TEST not enabled"
72
76
#endif /* MBEDTLS_SELF_TEST */
@@ -86,6 +90,9 @@ Case cases[] = {
86
90
Case (" mbedtls_entropy_self_test" , mbedtls_entropy_self_test_test_case),
87
91
#endif
88
92
93
+ #if defined(MBEDTLS_AES_C)
94
+ Case (" mbedtls_aes_self_test" ,mbedtls_aes_self_test_test_case),
95
+ #endif
89
96
#endif /* MBEDTLS_SELF_TEST */
90
97
};
91
98
Original file line number Diff line number Diff line change
1
+ /*
2
+ * mbedtls_device.h
3
+ *******************************************************************************
4
+ * Copyright (c) 2017, STMicroelectronics
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may
8
+ * not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ *
19
+ */
20
+ #ifndef MBEDTLS_DEVICE_H
21
+ #define MBEDTLS_DEVICE_H
22
+
23
+
24
+ #define MBEDTLS_AES_SETKEY_ENC_ALT
25
+ #define MBEDTLS_AES_SETKEY_DEC_ALT
26
+ #define MBEDTLS_AES_ENCRYPT_ALT
27
+ #define MBEDTLS_AES_DECRYPT_ALT
28
+
29
+
30
+ #endif /* MBEDTLS_DEVICE_H */
You can’t perform that action at this time.
0 commit comments