15 Commits

Author SHA1 Message Date
makejian
08fdbb03bb mbedtls-alt: aligned alternative implementation return value with mbedtls
mbedtls interfaces overwritten by nuttx crypto driver, change return value of mbedtls interfaces from return value of nuttx crypto driver into starndard return value of mbedtls

Signed-off-by: makejian <makejian@xiaomi.com>
2025-07-30 15:41:50 +08:00
Alin Jerpelea
5b68158154 crypto: migrate to SPDX identifier
Most tools used for compliance and SBOM generation use SPDX identifiers
This change brings us a step closer to an easy SBOM generation.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2024-12-19 15:25:28 +08:00
makejian
e42de5d36d mbedtls-alt/bignum: add bignum alternative implementation via /dev/mpi
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-30 15:26:42 +08:00
makejian
194269dbb8 mbedtls-alt/poly1305-alt: add poly1305 alternative implementation
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-30 15:26:42 +08:00
makejian
83d3256f91 mbedtls-alt/ripemd160: add ripemd160 alternative implementation
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-30 15:26:42 +08:00
makejian
4fc6e7ca0c mbedtls-alt/aes-alt: Illegal parameter detection for aes related functions
(1)aes-xts sets the key length to only 256 and 512 bits
(2)when the key length of aes-xts is 512 bits, MAX_KEY_SIZE needs to be expanded to 64 bytes.
(3)check invalid input length and mode

Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-30 15:26:42 +08:00
makejian
b05c967ae6 mbedtls-alt/dev-alt: complement cloning capability
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-30 15:26:42 +08:00
makejian
9a1a8d3ca3 mbedtls/psa: provides PSA method for using hardware random driver
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-19 08:36:46 +08:00
makejian
96b220659d apps/mbedtls-alt: support cmac
Signed-off-by: makejian <makejian@xiaomi.com>
2024-09-19 08:36:46 +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
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
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