Commit Graph

31 Commits

Author SHA1 Message Date
makejian
8c95ab94d3 crypto/mbedtls: Unified configuration with mbedtls default configuration
The configuration of Kconfig used by the nuttx before is not consistent with the mbedtls default configuration. This patch update configuration is consistent with the default configuration.
Signed-off-by: makejian <makejian@xiaomi.com>
2023-10-18 21:18:35 +08:00
Junbo Zheng
3177a9be84 crypto/mbedtls: fix kconfig typo
Signed-off-by: Junbo Zheng <zhengjunbo1@xiaomi.com>
2023-10-06 20:49:06 +08:00
makejian
851a4aa904 crypto/mbedtls: load certificate memory optimization
Reducing the use of memory due to multiple network links loading certificates
Signed-off-by: makejian <makejian@xiaomi.com>
2023-09-25 14:49:39 +08:00
makejian
ab7fd12e1d mbedtls: use 'getrandom' to get system entropy
use getrandom to get system entropy and not dependent on config DEVURANDOM
Signed-off-by: makejian <makejian@xiaomi.com>
2023-09-19 00:41:24 +08:00
Daniel Appiagyei
b37e84b05f c++ compatibility: rename usages of reserved c++ keywords 'this' and 'public' 2023-09-16 19:45:52 +08:00
makejian
71276b6181 mbedtls-alt/md5: add md5 alternative implementation
add md5 alternative implementation via /dev/crypto
Signed-off-by: makejian <makejian@xiaomi.com>
2023-09-12 10:01:16 +08:00
chao an
7dda7f1dee crypto/mbedtls: fix build break on sha256.c
Build break on Assemble compiler if -fno-omit-frame-pointer and -O3 enabled at same time

{standard input}: Assembler messages:
{standard input}:2560: Error: branch out of range
make[2]: *** [apps/Application.mk:170: mbedtls/library/sha256.o] Error 1

Signed-off-by: chao an <anchao@xiaomi.com>
2023-09-11 16:33:05 +08:00
xuxin19
2432a62ab6 fix cmake code smell issues
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2023-09-04 23:19:26 +08:00
makejian
53878a53db mbedtls: set most of the functions of mbedtls to be configurable
(1)reduce size and improve compilation efficiency
(2)provide more options for greater flexibility
Signed-off-by: makejian <makejian@xiaomi.com>
2023-08-30 20:40:11 +08:00
makejian
11de514217 mbedtls: update Kconfig
update Kconfig for adapting version v3.4.0
Signed-off-by: makejian <makejian@xiaomi.com>
2023-08-27 21:44:10 +08:00
makejian
1274aa5c8a mbedtls: mbedtls_selftest depends on MBEDTLS_SSL_DTLS_CONNECTION_ID
Signed-off-by: makejian <makejian@xiaomi.com>
2023-08-25 17:02:44 +08:00
xuxin19
a091b91d83 cmake:replace custom_patch_target with PATCH_COMMAND
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2023-08-24 17:49:12 +02:00
Andre Heinemans
8757c6934c Added tools for NXP SE05x (secure element) 2023-08-22 10:12:31 +08:00
makejian
18280fdc25 mbedtls-alt: add aes alternative implementation
aes module of mbedtls use alternative implementation via /dev/crypto
Signed-off-by: makejian <makejian@xiaomi.com>
2023-08-21 16:10:48 +08:00
simbit18
00a093e108 Fix Kconfig style
Replace help => ---help---
Add comments
2023-08-18 20:19:22 +08:00
makejian
c25f5e1955 crypto: fix formatting issues in commit #1932
(1) add 'FAR' in mbedtls_hardware_poll
(2) fix indentation issues in hash testcase
Signed-off-by: makejian <makejian@xiaomi.com>
2023-08-17 14:31:41 +08:00
makejian
af3ea2af03 mbedtls: add mbedtls sha256/sha512 alternative implementation
Signed-off-by: makejian <makejian@xiaomi.com>
2023-08-11 18:13:11 +08:00
makejian
558450f0ab mbedtls: add hardware entropy source via /dev/random
add hardware entropy from /dev/random
Signed-off-by: makejian <makejian@xiaomi.com>
2023-08-11 18:13:11 +08:00
makejian
4e016e2260 mbedtls: add nuttx crypto alternative implementation in mbedtls
(1)add dev_alt to manage /dev/crypto
(2)add sha_alt to alternate sha1 algorithm
(3)use new mbedtls_config.h to admin configs of mbedtls
Signed-off-by: makejian <makejian@xiaomi.com>
2023-08-11 18:13:11 +08:00
simbit18
2e98005608 crypto: Fix Kconfig style
Replace help => ---help---
Add comments
2023-08-09 19:24:17 +03:00
xuxin19
c93c0da4b0 cmake:migrate apps CMakeLists for mbedtls
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2023-08-03 05:53:05 -07:00
makejian
32aefa44c5 crypto/mbedtls: Bump Mbed TLS to version 3.4.0
Signed-off-by: makejian <makejian@xiaomi.com>
2023-07-30 22:21:52 -07:00
chao an
7cc325ae83 crypto/mbedtls: disable optimize on sim platform
Signed-off-by: chao an <anchao@xiaomi.com>
2023-02-23 18:05:26 +08:00
yinshengkai
bd2efd9f51 tools: replace DEFINE to DEFINE_PREFIX
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-11-11 01:18:32 +08:00
yinshengkai
ee4d8b738f Makefile: replace INCDIR to INCDIR_PREFIX
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2022-11-10 02:38:58 +08:00
yinshengkai
2c3c2edcb7 Makefile: Remove INCDIROPT
This option, which resolves to -w when CONFIG_CYGWIN_WINTOOL is
configured, is now appended to INCDIR in tools/Config.mk.

See git commit # 5eae32577e5d5226e5d3027c169eeb369f83f77d in the main
2022-10-25 13:48:16 +08:00
Xiang Xiao
4941182cc6 Make.defs: Change "ifeq ($(XXX),y)" to "ifneq ($(XXX),)
to support the tristate option correctly and unify the usage

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-16 14:59:08 +02:00
Huang Qi
2e2630e838 Don't download tarballs if a local git repo found
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-08-28 17:20:47 +08:00
Gustavo Henrique Nihei
8dd39b88c9 crypto/mbedtls: Fix occasional failures during Mbed TLS build
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-12-13 21:11:12 -06:00
Gustavo Henrique Nihei
fbdfb0ef96 crypto/mbedtls: Bump Mbed TLS to version 3.0.0
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-11-04 23:19:58 -05:00
Brennan Ashton
c2057d77b2 crypto: Initial support for mbedtls
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
2021-11-04 15:20:14 -03:00