/mbedtls-latest/tests/suites/ |
D | test_suite_ccm.function | 79 void mbedtls_ccm_setkey(int cipher_id, int key_size, int result) 91 ret = mbedtls_ccm_setkey(&ctx, cipher_id, key, key_size); 189 void mbedtls_ccm_encrypt_and_tag(int cipher_id, data_t *key, 211 TEST_EQUAL(mbedtls_ccm_setkey(&ctx, cipher_id, key->x, key->len * 8), 0); 247 void mbedtls_ccm_star_no_tag(int cipher_id, int mode, data_t *key, 256 TEST_EQUAL(mbedtls_ccm_setkey(&ctx, cipher_id, key->x, key->len * 8), 0); 274 void mbedtls_ccm_auth_decrypt(int cipher_id, data_t *key, 294 TEST_EQUAL(mbedtls_ccm_setkey(&ctx, cipher_id, key->x, key->len * 8), 0); 338 void mbedtls_ccm_star_encrypt_and_tag(int cipher_id, 383 TEST_EQUAL(mbedtls_ccm_setkey(&ctx, cipher_id, [all …]
|
D | test_suite_gcm.function | 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); [all …]
|
D | test_suite_cipher.function | 98 static int cipher_reset_key(mbedtls_cipher_context_t *ctx, int cipher_id, 110 mbedtls_cipher_info_from_type(cipher_id), 116 mbedtls_cipher_info_from_type(cipher_id))); 365 void enc_dec_buf(int cipher_id, char *cipher_string, int key_len, 390 cipher_info = mbedtls_cipher_info_from_type(cipher_id); 504 void enc_fail(int cipher_id, int pad_mode, int key_len, int length_val, 528 cipher_info = mbedtls_cipher_info_from_type(cipher_id); 654 void enc_dec_buf_multipart(int cipher_id, int key_len, int first_length_val, 689 cipher_info = mbedtls_cipher_info_from_type(cipher_id); 788 void decrypt_test_vec(int cipher_id, int pad_mode, data_t *key, [all …]
|
D | test_suite_nist_kw.function | 125 void mbedtls_nist_kw_setkey(int cipher_id, int key_size, 137 ret = mbedtls_nist_kw_setkey(&ctx, cipher_id, key, key_size, is_wrap); 237 void mbedtls_nist_kw_wrap(int cipher_id, int mode, data_t *key, data_t *msg, 248 TEST_ASSERT(mbedtls_nist_kw_setkey(&ctx, cipher_id, 271 void mbedtls_nist_kw_unwrap(int cipher_id, int mode, data_t *key, data_t *msg, 282 TEST_ASSERT(mbedtls_nist_kw_setkey(&ctx, cipher_id,
|
D | test_suite_block_cipher.function | 70 mbedtls_cipher_id_t cipher_id = cipher_id_arg; 77 TEST_EQUAL(0, mbedtls_block_cipher_setup(&ctx, cipher_id));
|
/mbedtls-latest/library/ |
D | block_cipher.c | 25 static psa_key_type_t psa_key_type_from_block_cipher_id(mbedtls_block_cipher_id_t cipher_id) in psa_key_type_from_block_cipher_id() argument 27 switch (cipher_id) { in psa_key_type_from_block_cipher_id() 87 mbedtls_cipher_id_t cipher_id) in mbedtls_block_cipher_setup() argument 89 ctx->id = (cipher_id == MBEDTLS_CIPHER_ID_AES) ? MBEDTLS_BLOCK_CIPHER_ID_AES : in mbedtls_block_cipher_setup() 90 (cipher_id == MBEDTLS_CIPHER_ID_ARIA) ? MBEDTLS_BLOCK_CIPHER_ID_ARIA : in mbedtls_block_cipher_setup() 91 (cipher_id == MBEDTLS_CIPHER_ID_CAMELLIA) ? MBEDTLS_BLOCK_CIPHER_ID_CAMELLIA : in mbedtls_block_cipher_setup()
|
D | psa_crypto_cipher.c | 131 mbedtls_cipher_id_t *cipher_id) in mbedtls_cipher_values_from_psa() argument 250 if (cipher_id != NULL) { in mbedtls_cipher_values_from_psa() 251 *cipher_id = cipher_id_tmp; in mbedtls_cipher_values_from_psa() 262 mbedtls_cipher_id_t *cipher_id) in mbedtls_cipher_info_from_psa() argument 272 if (cipher_id != NULL) { in mbedtls_cipher_info_from_psa() 273 *cipher_id = cipher_id_tmp; in mbedtls_cipher_info_from_psa()
|
D | psa_crypto_cipher.h | 34 mbedtls_cipher_id_t *cipher_id); 51 mbedtls_cipher_id_t *cipher_id);
|
D | psa_crypto_aead.c | 34 mbedtls_cipher_id_t cipher_id; in psa_aead_setup() local 40 &key_bits, &mode, &cipher_id); in psa_aead_setup() 58 mbedtls_ccm_setkey(&operation->ctx.ccm, cipher_id, in psa_aead_setup() 78 mbedtls_gcm_setkey(&operation->ctx.gcm, cipher_id, in psa_aead_setup()
|
D | block_cipher_internal.h | 50 mbedtls_cipher_id_t cipher_id);
|
D | cipher.c | 118 const mbedtls_cipher_id_t cipher_id, in mbedtls_cipher_info_from_values() argument 125 if (mbedtls_cipher_get_base(def->info)->cipher == cipher_id && in mbedtls_cipher_info_from_values()
|
/mbedtls-latest/include/mbedtls/ |
D | cipher.h | 424 const mbedtls_cipher_info_t *mbedtls_cipher_info_from_values(const mbedtls_cipher_id_t cipher_id,
|
/mbedtls-latest/tests/scripts/ |
D | components-configuration-crypto.sh | 695 tests/scripts/depends.py cipher_id --unset-use-psa 726 tests/scripts/depends.py cipher_id
|
/mbedtls-latest/docs/architecture/psa-migration/ |
D | md-cipher-dispatch.md | 584 mbedtls_cipher_id_t cipher_id);
|