mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-09 16:15:29 +00:00
Remove unused variable in AES OFB test suite
Remove iv_len, an unused variable, in AES OFB test suite function, to fix gcc compiler warning.
This commit is contained in:
parent
f684c0e2e0
commit
df67d3a575
|
@ -303,7 +303,7 @@ void aes_encrypt_ofb( int fragment_size, char *hex_key_string,
|
||||||
size_t iv_offset = 0;
|
size_t iv_offset = 0;
|
||||||
int in_buffer_len;
|
int in_buffer_len;
|
||||||
unsigned char* src_str_next;
|
unsigned char* src_str_next;
|
||||||
int key_len, iv_len;
|
int key_len;
|
||||||
|
|
||||||
memset(key_str, 0x00, 100);
|
memset(key_str, 0x00, 100);
|
||||||
memset(iv_str, 0x00, 100);
|
memset(iv_str, 0x00, 100);
|
||||||
|
@ -313,7 +313,7 @@ void aes_encrypt_ofb( int fragment_size, char *hex_key_string,
|
||||||
mbedtls_aes_init( &ctx );
|
mbedtls_aes_init( &ctx );
|
||||||
|
|
||||||
key_len = unhexify( key_str, hex_key_string );
|
key_len = unhexify( key_str, hex_key_string );
|
||||||
iv_len = unhexify( iv_str, hex_iv_string );
|
unhexify( iv_str, hex_iv_string );
|
||||||
in_buffer_len = unhexify( src_str, hex_src_string );
|
in_buffer_len = unhexify( src_str, hex_src_string );
|
||||||
|
|
||||||
TEST_ASSERT( mbedtls_aes_setkey_enc( &ctx, key_str, key_len * 8 ) == 0 );
|
TEST_ASSERT( mbedtls_aes_setkey_enc( &ctx, key_str, key_len * 8 ) == 0 );
|
||||||
|
|
Loading…
Reference in a new issue