mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-30 02:34:20 +01:00
Change AES OFB tests to memset sizeof buffer
This commit is contained in:
parent
e416bf93d2
commit
b7836e1e8c
@ -305,11 +305,11 @@ void aes_encrypt_ofb( int fragment_size, char *hex_key_string,
|
|||||||
unsigned char* src_str_next;
|
unsigned char* src_str_next;
|
||||||
int key_len;
|
int key_len;
|
||||||
|
|
||||||
memset(key_str, 0x00, 32);
|
memset( key_str, 0x00, sizeof( key_str ) );
|
||||||
memset(iv_str, 0x00, 16);
|
memset( iv_str, 0x00, sizeof( iv_str ) );
|
||||||
memset(src_str, 0x00, 64);
|
memset( src_str, 0x00, sizeof( src_str ) );
|
||||||
memset(dst_str, 0x00, 64);
|
memset( dst_str, 0x00, sizeof( dst_str ) );
|
||||||
memset(output, 0x00, 32);
|
memset( output, 0x00, sizeof( output ) );
|
||||||
mbedtls_aes_init( &ctx );
|
mbedtls_aes_init( &ctx );
|
||||||
|
|
||||||
TEST_ASSERT( strlen( hex_key_string ) <= ( 32 * 2 ) );
|
TEST_ASSERT( strlen( hex_key_string ) <= ( 32 * 2 ) );
|
||||||
|
Loading…
Reference in New Issue
Block a user