OP-TEE / optee_os

Trusted side of the TEE
Other
1.51k stars 1.03k forks source link

core: ltc: Fix building with mbedtls #6867

Closed jkroon81 closed 4 weeks ago

jkroon81 commented 1 month ago

Fix building OP-TEE with:

make PLATFORM=vexpress \ PLATFORM_FLAVOR=juno \ CFG_CRYPTOLIB_NAME=mbedtls \ CFG_CRYPTOLIB_DIR=lib/libmbedtls ... core/lib/libtomcrypt/aes_accel.c: In function ‘aes_ctr_encrypt_nblocks’: core/lib/libtomcrypt/aes_accel.c:182:21: error: ‘CTR_COUNTER_LITTLE_ENDIAN’ undeclared (first use in this function) 182 | if (mode == CTR_COUNTER_LITTLE_ENDIAN) {

jforissier commented 4 weeks ago

We should probably do the same for the other modes, but that's not in the scope of this PR.

+1