Commit Graph

51 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
raiden00pl
1050d3028b libsodium depends on ICS license 2023-09-22 20:42:18 +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
Lingao Meng
518e455dce add macro for ecc
application may use micro-ecc for some ecc operation, which may be
faster than tinycrypt, due to assamble code, but both of them have
same function defination, cause build error on there case.

Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
2023-08-29 12:19:26 +03: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
xuxin19
8e8d58a915 cmake:migrate apps CMakeLists for libsodium
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2023-08-17 14:35:02 +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
024a7eeec3 crypto/libsodium: fix libsodium compilation problem
(1)fix unable to pull source code
(2)fix compile warning
Signed-off-by: makejian <makejian@xiaomi.com>
2023-08-17 14:31:23 +08:00
xuxin19
817ea66e9f cmake:migrate apps CMakeLists for tinycrypt
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2023-08-16 00:59:04 +08:00
yangjiao
910409b4fb resolve the compile error.
Update the test cases' source code to solve the conflict of test function name,like below:"/home/yangjiao/Vela_Project/vela_TinyCrypt/apps/crypto/tinycrypt/tinycrypt/tests/test_sha256.c:149: multiple definition of `test_5'; /home/yangjiao/Vela_Project/vela_TinyCrypt/nuttx/staging/libapps.a(test_hmac_prng.c.home.yangjiao.Vela_Project.vela_TinyCrypt.apps.crypto.tinycrypt.o):/home/yangjiao/Vela_Project/vela_TinyCrypt/apps/crypto/tinycrypt/tinycrypt/tests/test_hmac_prng.c:316: first defined here".

Signed-off-by: yangjiao <yangjiao@xiaomi.com>
2023-08-11 21:47:47 +08:00
yangjiao
30e56fd6a0 porting tinycrypt tests.
Signed-off-by: yangjiao <yangjiao@xiaomi.com>
2023-08-11 21:47:47 +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
zhangchao53
d3d704fddb porting libtomcrypt tests cases,update make config.
Signed-off-by: zhangchao53 <zhangchao53@xiaomi.com>
2023-08-11 15:57:59 +08:00
simbit18
2e98005608 crypto: Fix Kconfig style
Replace help => ---help---
Add comments
2023-08-09 19:24:17 +03:00
xuxin19
646a30fe7c cmake:migrate apps CMakeLists for libtomcrypt
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2023-08-05 06:48:17 -07:00
makejian
383ca3bcf9 crypto/libsodium: fix libsodium compile warning
Signed-off-by: makejian <makejian@xiaomi.com>
2023-08-03 07:26:16 -07:00
makejian
53620b91c8 crypto/libsodium: porting libsodium into nuttx
Signed-off-by: makejian <makejian@xiaomi.com>
2023-08-03 07:26:16 -07: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
raiden00pl
81f9fb5e08 crypto: add Eclipse tinydtls support 2023-07-27 09:33:10 -07:00
chao an
4d79a5cbaf add initial cmake build system
Co-authored-by: Daniel Agar <daniel@agar.ca>
Signed-off-by: chao an <anchao@xiaomi.com>
2023-07-08 13:52:02 +08:00
simbit18
e15db0c21b crypto/tinycrypt/Kconfig: Fix indentation
Replace help => ---help---
Add TABs
2023-05-19 01:00:38 +08:00
John Bland
6b01cce1aa add wolfssl integration files 2023-05-15 13:24:47 -03: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
wangbowen6
0eb778d849 crypto/tinycrypt: sync .gitignore with mbedtls/.gitignore
avoid git untracked
Untracked files:
  (use "git add <file>..." to include in what will be committed)
        crypto/tinycrypt/tinycrypt/

Signed-off-by: wangbowen6 <wangbowen6@xiaomi.com>
2023-01-30 00:06:24 +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
anjiahao
263f4ab8b9 crypto:add tinycrypt to apps/crypto
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2022-10-20 14:53:38 +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
Petro Karashchenko
84e0e50995 make: update makefiles for mcuboot and libtomcrypt
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-04-21 21:11:58 +08:00
Alexander Lunev
61fe9c4fa2 crypto/libtomcrypt: added CONFIG_LIBTOMCRYPT_HASHSUM option to build hashsum app 2022-01-07 11:13:46 +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