Lines Matching refs:iv
301 unsigned char iv[32];
309 memset( iv, 0, sizeof( iv ) );
318 TEST_ASSERT( mbedtls_cipher_set_iv( &ctx, iv, MBEDTLS_MAX_IV_LENGTH + 1 )
322 TEST_ASSERT( mbedtls_cipher_set_iv( &ctx, iv, 0 )
348 unsigned char iv[16];
396 memset( iv , 0x00 + i, sizeof( iv ) );
408 iv_len = sizeof(iv);
410 TEST_ASSERT( 0 == mbedtls_cipher_set_iv( &ctx_dec, iv, iv_len ) );
411 TEST_ASSERT( 0 == mbedtls_cipher_set_iv( &ctx_enc, iv, iv_len ) );
481 unsigned char iv[16];
492 memset( iv , 0, 16 );
511 TEST_ASSERT( 0 == mbedtls_cipher_set_iv( &ctx, iv, 16 ) );
533 unsigned char iv[16];
544 memset( iv , 0, 16 );
562 TEST_ASSERT( 0 == mbedtls_cipher_set_iv( &ctx_dec, iv, 16 ) );
608 unsigned char iv[16];
622 memset( iv , 0, 16 );
655 iv_len = sizeof(iv);
657 TEST_ASSERT( 0 == mbedtls_cipher_set_iv( &ctx_dec, iv, iv_len ) );
658 TEST_ASSERT( 0 == mbedtls_cipher_set_iv( &ctx_enc, iv, iv_len ) );
719 data_t * iv, data_t * cipher,
746 TEST_ASSERT( 0 == mbedtls_cipher_set_iv( &ctx, iv->x, iv->len ) );
776 void auth_crypt_tv( int cipher_id, data_t * key, data_t * iv,
803 if( iv->len == 0 )
804 iv->x = NULL;
864 ret = mbedtls_cipher_auth_decrypt_ext( &ctx, iv->x, iv->len,
879 ret = mbedtls_cipher_auth_decrypt_ext( &ctx, iv->x, iv->len,
927 ret = mbedtls_cipher_auth_encrypt_ext( &ctx, iv->x, iv->len,
941 ret = mbedtls_cipher_auth_encrypt_ext( &ctx, iv->x, iv->len,
1009 data_t *iv, data_t *input, data_t *result,
1039 TEST_ASSERT( finish_result == mbedtls_cipher_crypt( &ctx, iv->len ? iv->x : NULL,
1040 iv->len, input->x, input->len,