mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-25 15:05:45 +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)
|
||||
unsigned char prv[16];
|
||||
#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;
|
||||
#endif
|
||||
#if defined(MBEDTLS_CIPHER_MODE_CTR)
|
||||
|
Loading…
Reference in New Issue
Block a user