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:
Simon Butcher 2018-04-29 14:51:35 +01:00
parent 6873c845e8
commit dbe7fbf391

View file

@ -303,7 +303,7 @@ void aes_encrypt_ofb( int fragment_size, char *hex_key_string,
size_t iv_offset = 0;
int in_buffer_len;
unsigned char* src_str_next;
int key_len, iv_len;
int key_len;
memset(key_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 );
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 );
TEST_ASSERT( mbedtls_aes_setkey_enc( &ctx, key_str, key_len * 8 ) == 0 );