Lines Matching refs:ad
139 unsigned char ad[13];
185 memset( ad, 0x10 + i, sizeof( ad ) );
199 TEST_ASSERT( 0 == mbedtls_cipher_update_ad( &ctx_dec, ad, sizeof( ad ) - i ) );
200 TEST_ASSERT( 0 == mbedtls_cipher_update_ad( &ctx_enc, ad, sizeof( ad ) - i ) );
465 unsigned char ad[200];
481 memset( ad, 0x00, sizeof( ad ) );
490 ad_len = unhexify( ad, hex_ad );
510 TEST_ASSERT( 0 == mbedtls_cipher_update_ad( &ctx, ad, ad_len ) );
546 unsigned char ad[200];
560 memset( ad, 0x00, sizeof( ad ) );
568 ad_len = unhexify( ad, hex_ad );
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,