You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo '#define MBEDTLS_AES_C' >include/mbedtls/mbedtls_config.h # config.h on 2.2x
make
Expected outcome: the build succeeds.
Actual outcome:
…
In file included from src/random.c:38:
../include/mbedtls/entropy.h:129:5: error: unknown type name ‘mbedtls_sha256_context’
129 | mbedtls_sha256_context accumulator;
| ^~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:97: src/random.o] Error 1
make: *** [Makefile:23: mbedtls_test] Error 2
This is admittedly an exotic configuration (there are few useful library configurations that don't include SHA-256 or SHA-512, even in builds without the entropy module, which are themselves somewhat unusual). But it does make sense if you only want symmetric cryptography with pre-generated keys. And it will become less exotic once SHA-3 is added.
The text was updated successfully, but these errors were encountered:
With Mbed TLS 2.27 or 3.0:
Expected outcome: the build succeeds.
Actual outcome:
This is admittedly an exotic configuration (there are few useful library configurations that don't include SHA-256 or SHA-512, even in builds without the entropy module, which are themselves somewhat unusual). But it does make sense if you only want symmetric cryptography with pre-generated keys. And it will become less exotic once SHA-3 is added.
The text was updated successfully, but these errors were encountered: