nuttx/crypto
makejian 136c001ea9 crypto/rijndael: fix undefined behavior in AES decryption last round
Cast TD4 S-box lookup results to uint32_t before left shift by 24
to avoid signed integer overflow. When TD4 returns a value >= 128,
shifting by 24 as signed int exceeds INT_MAX, triggering UBSan
runtime error: "left shift of N by 24 places cannot be represented
in type 'int'".

Signed-off-by: makejian <makejian@xiaomi.com>
2026-04-21 01:36:09 +08:00
..
CMakeLists.txt crypto: export algorithm about ecc 2026-04-21 01:27:49 +08:00
Kconfig crypto/key: support software key management based MTD 2026-04-21 01:27:28 +08:00
Makefile crypto: export algorithm about ecc 2026-04-21 01:27:49 +08:00
aes.c crypto: migrate to SPDX identifier 2026-04-21 01:13:36 +08:00
blake2s.c crypto: migrate to SPDX identifier 2026-04-21 01:13:36 +08:00
blf.c crypto: migrate to SPDX identifier 2026-04-21 01:13:36 +08:00
bn.c crypto/bn: add length to optimize calculate process 2026-04-21 01:34:06 +08:00
cast.c crypto: migrate to SPDX identifier 2026-04-21 01:13:36 +08:00
castsb.h crypto: migrate to SPDX identifier 2026-04-21 01:13:36 +08:00
chacha_private.h crypto: migrate to SPDX identifier 2026-04-21 01:13:36 +08:00
chachapoly.c crypto: migrate to SPDX identifier 2026-04-21 01:13:36 +08:00
cmac.c crypto: migrate to SPDX identifier 2026-04-21 01:13:36 +08:00
crypto.c crypto: driver adapt to BMP mode 2026-04-21 01:34:19 +08:00
cryptodev.c crypto: driver adapt to BMP mode 2026-04-21 01:34:19 +08:00
cryptosoft.c cryptosoft/aes: fix aes encrypt fail 2026-04-21 01:35:40 +08:00
curve25519.c crypto: migrate to SPDX identifier 2026-04-21 01:13:36 +08:00
des_locl.h crypto: migrate to SPDX identifier 2026-04-21 01:13:36 +08:00
ecb3_enc.c crypto: migrate to SPDX identifier 2026-04-21 01:13:36 +08:00
ecb_enc.c crypto: migrate to SPDX identifier 2026-04-21 01:13:36 +08:00
ecc.c crypto/ecc: fix static check in using uninitilized params 2026-04-21 01:30:22 +08:00
gmac.c crypto: migrate to SPDX identifier 2026-04-21 01:13:36 +08:00
hmac.c crypto: migrate to SPDX identifier 2026-04-21 01:13:36 +08:00
hmac_buff.c crypto: migrate to SPDX identifier 2026-04-21 01:13:36 +08:00
idgen.c crypto: migrate to SPDX identifier 2026-04-21 01:13:36 +08:00
key_wrap.c crypto: migrate to SPDX identifier 2026-04-21 01:13:36 +08:00
md5.c crypto: migrate to SPDX identifier 2026-04-21 01:13:36 +08:00
podd.h crypto: migrate to SPDX identifier 2026-04-21 01:13:36 +08:00
poly1305.c crypto: migrate to SPDX identifier 2026-04-21 01:13:36 +08:00
random_pool.c crypto: migrate to SPDX identifier 2026-04-21 01:13:36 +08:00
rijndael.c crypto/rijndael: fix undefined behavior in AES decryption last round 2026-04-21 01:36:09 +08:00
rmd160.c crypto: migrate to SPDX identifier 2026-04-21 01:13:36 +08:00
set_key.c crypto: migrate to SPDX identifier 2026-04-21 01:13:36 +08:00
sha1.c crypto: migrate to SPDX identifier 2026-04-21 01:13:36 +08:00
sha2.c crypto: migrate to SPDX identifier 2026-04-21 01:13:36 +08:00
siphash.c crypto/siphash: avoid redefine name issue 2026-04-21 01:23:29 +08:00
sk.h crypto: migrate to SPDX identifier 2026-04-21 01:13:36 +08:00
spr.h crypto: migrate to SPDX identifier 2026-04-21 01:13:36 +08:00
testmngr.c crypto: migrate to SPDX identifier 2026-04-21 01:13:36 +08:00
testmngr.h crypto: migrate to SPDX identifier 2026-04-21 01:13:36 +08:00
xform.c cryptosoft/aes: fix aes encrypt fail 2026-04-21 01:35:40 +08:00