Lines Matching refs:expected
425 iv_len = 13; /* For CCM, IV length is expected to be between 7 and 13 bytes.
441 int expected = (cipher_info->mode == MBEDTLS_MODE_GCM ||
445 TEST_EQUAL(expected, mbedtls_cipher_update_ad(&ctx_dec, ad, sizeof(ad) - i));
446 TEST_EQUAL(expected, mbedtls_cipher_update_ad(&ctx_enc, ad, sizeof(ad) - i));
465 TEST_EQUAL(expected, mbedtls_cipher_write_tag(&ctx_enc, tag, sizeof(tag)));
486 TEST_EQUAL(expected, mbedtls_cipher_check_tag(&ctx_dec, tag, sizeof(tag)));
542 int expected = (cipher_info->mode == MBEDTLS_MODE_GCM ||
546 TEST_EQUAL(expected, mbedtls_cipher_update_ad(&ctx, NULL, 0));
620 int expected = (cipher_info->mode == MBEDTLS_MODE_GCM ||
624 TEST_EQUAL(expected, mbedtls_cipher_update_ad(&ctx_dec, NULL, 0));
708 iv_len = 13; /* For CCM, IV length is expected to be between 7 and 13 bytes.
724 int expected = (cipher_info->mode == MBEDTLS_MODE_GCM ||
728 TEST_EQUAL(expected, mbedtls_cipher_update_ad(&ctx_dec, NULL, 0));
729 TEST_EQUAL(expected, mbedtls_cipher_update_ad(&ctx_enc, NULL, 0));
820 int expected = (ctx.cipher_info->mode == MBEDTLS_MODE_GCM ||
824 TEST_EQUAL(expected, mbedtls_cipher_update_ad(&ctx, ad->x, ad->len));
865 * this results in the expected plaintext, and that