Skip to content

Commit 24b0feb

Browse files
committed
M467: Support Crypto SHA/ECC H/W
1. Prepare crypto common code 2. Support list - SHA - ECC NOTE: AES/RSA are to support in other works NOTE: Compared to M487, M467's SHA supports context save & restore (DMA Cascade mode) and so no software fallback is needed. NOTE: M467's ECC, following M487, goes partial-module replacement and it can just improve primitives e.g. point addition/doubling by 2X, and cannot improve high level point multiplication because MbedTLS doesn’t open it. To improve performance best, full-module replacement is needed. NOTE: Continuing above, add support for Montgomery curve
1 parent ec2c155 commit 24b0feb

File tree

20 files changed

+2989
-1
lines changed

20 files changed

+2989
-1
lines changed

connectivity/drivers/mbedtls/TARGET_NUVOTON/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# Copyright (c) 2020 ARM Limited. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
if("M480" IN_LIST MBED_TARGET_LABELS)
4+
if("M460" IN_LIST MBED_TARGET_LABELS)
5+
add_subdirectory(TARGET_M460)
6+
elseif("M480" IN_LIST MBED_TARGET_LABELS)
57
add_subdirectory(TARGET_M480)
68
elseif("NUC472" IN_LIST MBED_TARGET_LABELS)
79
add_subdirectory(TARGET_NUC472)
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright (c) 2020 ARM Limited. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
target_include_directories(mbed-mbedtls
5+
INTERFACE
6+
.
7+
./aes
8+
./ecp
9+
./rsa
10+
./sha
11+
)
12+
13+
target_sources(mbed-mbedtls
14+
INTERFACE
15+
aes/aes_alt.c
16+
ecp/ecp_internal_alt.c
17+
rsa/rsa_alt.c
18+
sha/sha1_alt.c
19+
sha/sha256_alt.c
20+
sha/sha512_alt.c
21+
sha/sha_alt_hw.c
22+
)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* TODO */
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* TODO */

0 commit comments

Comments
 (0)