Lines Matching refs:iv
101 unsigned char iv[32];
107 memset( iv, 0, sizeof( iv ) );
116 TEST_ASSERT( mbedtls_cipher_set_iv( &ctx, iv, MBEDTLS_MAX_IV_LENGTH + 1 )
120 TEST_ASSERT( mbedtls_cipher_set_iv( &ctx, iv, 0 )
138 unsigned char iv[16];
184 memset( iv , 0x00 + i, sizeof( iv ) );
192 TEST_ASSERT( 0 == mbedtls_cipher_set_iv( &ctx_dec, iv, sizeof( iv ) ) );
193 TEST_ASSERT( 0 == mbedtls_cipher_set_iv( &ctx_enc, iv, sizeof( iv ) ) );
263 unsigned char iv[16];
274 memset( iv , 0, 16 );
293 TEST_ASSERT( 0 == mbedtls_cipher_set_iv( &ctx, iv, 16 ) );
313 unsigned char iv[16];
324 memset( iv , 0, 16 );
339 TEST_ASSERT( 0 == mbedtls_cipher_set_iv( &ctx_dec, iv, 16 ) );
368 unsigned char iv[16];
382 memset( iv , 0, 16 );
401 TEST_ASSERT( 0 == mbedtls_cipher_set_iv( &ctx_dec, iv, 16 ) );
402 TEST_ASSERT( 0 == mbedtls_cipher_set_iv( &ctx_enc, iv, 16 ) );
462 unsigned char iv[50];
478 memset( iv, 0x00, sizeof( iv ) );
486 iv_len = unhexify( iv, hex_iv );
507 TEST_ASSERT( 0 == mbedtls_cipher_set_iv( &ctx, iv, iv_len ) );
543 unsigned char iv[50];
557 memset( iv, 0x00, sizeof( iv ) );
566 iv_len = unhexify( iv, hex_iv );
577 ret = mbedtls_cipher_auth_decrypt( &ctx, iv, iv_len, ad, ad_len,
603 ret = mbedtls_cipher_auth_encrypt( &ctx, iv, iv_len, ad, ad_len,