8 Commits

Author SHA1 Message Date
aa79ba108a feat(util): support SHA224/SHA384 calculation although call sha256/sha512 APIs 2020-01-06 16:36:22 +08:00
297294c5b9 feat(mbedtls): mbedtls using SHA/AES of util component instead of its raw algorithm 2019-12-24 14:19:05 +08:00
18a3839198 feat(util): refactor SHA algorithm of util components 2019-12-17 15:14:54 +08:00
5f2b5eafcf feat(mbedtls): modify code to support ESP8266
It is that maybe less modification working on the components is better, so I just modified the platform
code of AES, SHA and so on.

ESP8266 has no real hardware AES, SHA or bignum peripheral, but some method can speed up the process of part
of upper algorithm, so I also added the platform code of AES, SHA, bignum, ARC, MD5.

ESP8266 has no platform of bignum, so users should not enable the bignum hardware at "menuconfig".
2019-10-10 13:39:08 +08:00
56ab9ddc9e feat(make): remove submodule declare for using real submodule later 2019-09-18 13:58:08 +08:00
cca13e0f99 feat(make): Sync code from esp-idf and modify for ESP8266
Commit ID: f6bfe13e
2019-05-16 16:22:11 +08:00
768afde238 feat(util): Add extra SHA and unit test
1. wpa_supplicatn use extra SHA default
2. mbedtls use extra SHA default
3. bootloader use extra SHA default
4. user code can use extra SHA default

Above all, using unified module is easy to maintenance code and save rom or ram.
2019-04-15 16:18:21 +08:00
9a81588004 feature/libsodium: Added libsodium component from esp-idf.
from esp-idf libsodium commit ID: d4cbfd34cce3cd8b0f03a91dad46a277dab287d7

Changes: randombytes_esp32.c - esp_fill_random() function.
Component.mk & CMakelists.txt - Replaced CONFIG_SSL_USING_MBEDTLS with CONFIG_LIBSODIUM_USE_MBEDTLS_SHA.
Removed GCC_5_2_0 check.
2018-10-17 14:51:12 +05:30