mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-25 22:35:43 +01:00
Fix missing preprocessor condition in AES self-test
The AES OFB self-test made use of a variable `offset` but failed to have a preprocessor condition around it, so unless CTR and CBC were enabled, the variable would be undeclared.
This commit is contained in:
parent
4ed3880a10
commit
2ff0e52087
@ -1397,7 +1397,8 @@ int mbedtls_aes_self_test( int verbose )
|
|||||||
#if defined(MBEDTLS_CIPHER_MODE_CBC)
|
#if defined(MBEDTLS_CIPHER_MODE_CBC)
|
||||||
unsigned char prv[16];
|
unsigned char prv[16];
|
||||||
#endif
|
#endif
|
||||||
#if defined(MBEDTLS_CIPHER_MODE_CTR) || defined(MBEDTLS_CIPHER_MODE_CFB)
|
#if defined(MBEDTLS_CIPHER_MODE_CTR) || defined(MBEDTLS_CIPHER_MODE_CFB) || \
|
||||||
|
defined(MBEDTLS_CIPHER_MODE_OFB)
|
||||||
size_t offset;
|
size_t offset;
|
||||||
#endif
|
#endif
|
||||||
#if defined(MBEDTLS_CIPHER_MODE_CTR)
|
#if defined(MBEDTLS_CIPHER_MODE_CTR)
|
||||||
|
Loading…
Reference in New Issue
Block a user