Lines Matching refs:cipher_id
179 void gcm_bad_parameters(int cipher_id, int direction,
195 TEST_ASSERT(mbedtls_gcm_setkey(&ctx, cipher_id, key_str->x, key_str->len * 8) == 0);
207 void gcm_encrypt_and_tag(int cipher_id, data_t *key_str,
227 TEST_ASSERT(mbedtls_gcm_setkey(&ctx, cipher_id, key_str->x, key_str->len * 8) == init_result);
256 void gcm_decrypt_and_verify(int cipher_id, data_t *key_str,
275 TEST_ASSERT(mbedtls_gcm_setkey(&ctx, cipher_id, key_str->x, key_str->len * 8) == init_result);
315 void gcm_decrypt_and_verify_empty_cipher(int cipher_id,
327 TEST_ASSERT(mbedtls_gcm_setkey(&ctx, cipher_id, key_str->x, key_str->len * 8) == 0);
338 void gcm_decrypt_and_verify_empty_ad(int cipher_id,
351 TEST_ASSERT(mbedtls_gcm_setkey(&ctx, cipher_id, key_str->x, key_str->len * 8) == 0);
362 void gcm_decrypt_and_verify_no_ad_no_cipher(int cipher_id,
372 TEST_ASSERT(mbedtls_gcm_setkey(&ctx, cipher_id, key_str->x, key_str->len * 8) == 0);
382 void gcm_encrypt_and_tag_empty_cipher(int cipher_id,
394 TEST_ASSERT(mbedtls_gcm_setkey(&ctx, cipher_id, key_str->x, key_str->len * 8) == 0);
406 void gcm_encrypt_and_tag_empty_ad(int cipher_id,
419 TEST_ASSERT(mbedtls_gcm_setkey(&ctx, cipher_id, key_str->x, key_str->len * 8) == 0);
431 void gcm_encrypt_and_verify_no_ad_no_cipher(int cipher_id,
441 TEST_ASSERT(mbedtls_gcm_setkey(&ctx, cipher_id, key_str->x, key_str->len * 8) == 0);
471 void gcm_update_output_buffer_too_small(int cipher_id, int mode,
482 TEST_EQUAL(mbedtls_gcm_setkey(&ctx, cipher_id, key_str->x, key_str->len * 8), 0);