Home
last modified time | relevance | path

Searched defs:key (Results 1 – 25 of 61) sorted by relevance

123

/mbedtls-3.5.0/tests/src/
Dpsa_exercise_key.c43 static int check_key_attributes_sanity(mbedtls_svc_key_id_t key) in check_key_attributes_sanity()
113 static int exercise_mac_key(mbedtls_svc_key_id_t key, in exercise_mac_key()
155 static int exercise_cipher_key(mbedtls_svc_key_id_t key, in exercise_cipher_key()
230 static int exercise_aead_key(mbedtls_svc_key_id_t key, in exercise_aead_key()
294 static int exercise_signature_key(mbedtls_svc_key_id_t key, in exercise_signature_key()
372 static int exercise_asymmetric_encryption_key(mbedtls_svc_key_id_t key, in exercise_asymmetric_encryption_key()
410 mbedtls_svc_key_id_t key, in mbedtls_test_psa_setup_key_derivation_wrap()
454 static int exercise_key_derivation_key(mbedtls_svc_key_id_t key, in exercise_key_derivation_key()
490 mbedtls_svc_key_id_t key) in mbedtls_test_psa_key_agreement_with_self()
530 mbedtls_svc_key_id_t key) in mbedtls_test_psa_raw_key_agreement_with_self()
[all …]
/mbedtls-3.5.0/library/
Dcipher_wrap.c185 static int aes_setkey_dec_wrap(void *ctx, const unsigned char *key, in aes_setkey_dec_wrap()
191 static int aes_setkey_enc_wrap(void *ctx, const unsigned char *key, in aes_setkey_enc_wrap()
417 static int xts_aes_setkey_enc_wrap(void *ctx, const unsigned char *key, in xts_aes_setkey_enc_wrap()
424 static int xts_aes_setkey_dec_wrap(void *ctx, const unsigned char *key, in xts_aes_setkey_dec_wrap()
505 static int gcm_aes_setkey_wrap(void *ctx, const unsigned char *key, in gcm_aes_setkey_wrap()
574 static int ccm_aes_setkey_wrap(void *ctx, const unsigned char *key, in ccm_aes_setkey_wrap()
716 static int camellia_setkey_dec_wrap(void *ctx, const unsigned char *key, in camellia_setkey_dec_wrap()
722 static int camellia_setkey_enc_wrap(void *ctx, const unsigned char *key, in camellia_setkey_enc_wrap()
914 static int gcm_camellia_setkey_wrap(void *ctx, const unsigned char *key, in gcm_camellia_setkey_wrap()
983 static int ccm_camellia_setkey_wrap(void *ctx, const unsigned char *key, in ccm_camellia_setkey_wrap()
[all …]
Dpsa_crypto_storage.c52 static psa_storage_uid_t psa_its_identifier_of_slot(mbedtls_svc_key_id_t key) in psa_its_identifier_of_slot()
89 const mbedtls_svc_key_id_t key, uint8_t *data, size_t data_size) in psa_crypto_storage_load()
109 int psa_is_key_present_in_storage(const mbedtls_svc_key_id_t key) in psa_is_key_present_in_storage()
140 static psa_status_t psa_crypto_storage_store(const mbedtls_svc_key_id_t key, in psa_crypto_storage_store()
178 psa_status_t psa_destroy_persistent_key(const mbedtls_svc_key_id_t key) in psa_destroy_persistent_key()
214 const mbedtls_svc_key_id_t key, in psa_crypto_storage_get_data_length()
378 mbedtls_svc_key_id_t key = attr->id; in psa_load_persistent_key() local
Dpsa_crypto_slot_management.c48 int psa_is_valid_key_id(mbedtls_svc_key_id_t key, int vendor_ok) in psa_is_valid_key_id()
98 mbedtls_svc_key_id_t key, psa_key_slot_t **p_slot) in psa_get_and_lock_key_slot_in_memory()
341 psa_status_t psa_get_and_lock_key_slot(mbedtls_svc_key_id_t key, in psa_get_and_lock_key_slot()
474 psa_status_t psa_open_key(mbedtls_svc_key_id_t key, psa_key_handle_t *handle) in psa_open_key()
526 psa_status_t psa_purge_key(mbedtls_svc_key_id_t key) in psa_purge_key()
Dpkwrite.c173 const mbedtls_pk_context *key) in mbedtls_pk_write_pubkey()
212 int mbedtls_pk_write_pubkey_der(const mbedtls_pk_context *key, unsigned char *buf, size_t size) in mbedtls_pk_write_pubkey_der()
309 int mbedtls_pk_write_key_der(const mbedtls_pk_context *key, unsigned char *buf, size_t size) in mbedtls_pk_write_key_der()
483 int mbedtls_pk_write_pubkey_pem(const mbedtls_pk_context *key, unsigned char *buf, size_t size) in mbedtls_pk_write_pubkey_pem()
503 int mbedtls_pk_write_key_pem(const mbedtls_pk_context *key, unsigned char *buf, size_t size) in mbedtls_pk_write_key_pem()
Daesni.c256 const unsigned char *key) in aesni_setkey_enc_128()
313 const unsigned char *key) in aesni_setkey_enc_192()
371 const unsigned char *key) in aesni_setkey_enc_256()
610 const unsigned char *key) in aesni_setkey_enc_128()
660 const unsigned char *key) in aesni_setkey_enc_192()
717 const unsigned char *key) in aesni_setkey_enc_256()
785 const unsigned char *key, in mbedtls_aesni_setkey_enc()
Dssl_ticket.c75 mbedtls_ssl_ticket_key *key = ctx->keys + index; in ssl_ticket_gen_key() local
161 mbedtls_ssl_ticket_key * const key = ctx->keys + idx; in mbedtls_ssl_ticket_rotate() local
307 mbedtls_ssl_ticket_key *key; in mbedtls_ssl_ticket_write() local
424 mbedtls_ssl_ticket_key *key; in mbedtls_ssl_ticket_parse() local
Dpkparse.c498 mbedtls_ecp_keypair *key) in pk_get_ecpubkey()
715 const unsigned char *key, in pk_parse_key_pkcs1_der()
876 const unsigned char *key, size_t keylen, in pk_parse_key_sec1_der()
1009 const unsigned char *key, size_t keylen, in pk_parse_key_pkcs8_unencrypted_der()
1111 unsigned char *key, size_t keylen, in pk_parse_key_pkcs8_encrypted_der()
1212 const unsigned char *key, size_t keylen, in mbedtls_pk_parse_key()
1422 const unsigned char *key, size_t keylen) in mbedtls_pk_parse_public_key()
Dpsa_crypto.c948 mbedtls_svc_key_id_t key, in psa_get_and_lock_key_slot_with_policy()
1008 mbedtls_svc_key_id_t key, in psa_get_and_lock_transparent_key_slot_with_policy()
1078 psa_status_t psa_destroy_key(mbedtls_svc_key_id_t key) in psa_destroy_key()
1242 psa_status_t psa_get_key_attributes(mbedtls_svc_key_id_t key, in psa_get_key_attributes()
1361 psa_status_t psa_export_key(mbedtls_svc_key_id_t key, in psa_export_key()
1460 psa_status_t psa_export_public_key(mbedtls_svc_key_id_t key, in psa_export_public_key()
1559 mbedtls_svc_key_id_t key = psa_get_key_id(attributes); local
1768 mbedtls_svc_key_id_t *key)
1951 mbedtls_svc_key_id_t *key)
2041 mbedtls_svc_key_id_t key = MBEDTLS_SVC_KEY_ID_INIT; local
[all …]
Dcmac.c174 const unsigned char *key, size_t keybits) in mbedtls_cipher_cmac_starts()
360 const unsigned char *key, size_t keylen, in mbedtls_cipher_cmac()
399 int mbedtls_aes_cmac_prf_128(const unsigned char *key, size_t key_length, in mbedtls_aes_cmac_prf_128()
739 const unsigned char *key, in cmac_test_subkeys()
833 const unsigned char *key, in cmac_test_wth_cipher()
Dpk.c157 const mbedtls_svc_key_id_t key) in mbedtls_pk_setup_opaque()
199 int mbedtls_pk_setup_rsa_alt(mbedtls_pk_context *ctx, void *key, in mbedtls_pk_setup_rsa_alt()
318 const mbedtls_svc_key_id_t *key = (const mbedtls_svc_key_id_t *) ctx->pk_ctx; in mbedtls_pk_can_do_ext() local
704 const mbedtls_svc_key_id_t *key = (const mbedtls_svc_key_id_t *) ctx->pk_ctx; in mbedtls_pk_sign_ext() local
860 mbedtls_svc_key_id_t *key, in mbedtls_pk_wrap_as_opaque()
Dcamellia.c304 const unsigned char *key, in mbedtls_camellia_setkey_enc()
415 const unsigned char *key, in mbedtls_camellia_setkey_dec()
875 unsigned char key[32]; in mbedtls_camellia_self_test() local
Dpkcs12.c96 unsigned char *key, size_t keylen, in pkcs12_pbe_derive_key_iv()
147 unsigned char key[32]; in mbedtls_pkcs12_pbe() local
Dpkcs5.c131 unsigned char key[32], iv[32]; in mbedtls_pkcs5_pbes2() local
532 unsigned char key[64]; in mbedtls_pkcs5_self_test() local
/mbedtls-3.5.0/tests/src/drivers/
Dtest_driver_cipher.c141 const uint8_t *key, size_t key_length, in mbedtls_test_transparent_cipher_encrypt_setup()
173 const uint8_t *key, size_t key_length, in mbedtls_test_transparent_cipher_decrypt_setup()
322 const uint8_t *key, size_t key_length, in mbedtls_test_opaque_cipher_encrypt()
344 const uint8_t *key, size_t key_length, in mbedtls_test_opaque_cipher_decrypt()
364 const uint8_t *key, size_t key_length, in mbedtls_test_opaque_cipher_encrypt_setup()
378 const uint8_t *key, size_t key_length, in mbedtls_test_opaque_cipher_decrypt_setup()
Dtest_driver_key_management.c139 const uint8_t *key, in mbedtls_test_opaque_wrap_key()
203 uint8_t *key, size_t key_size, size_t *key_length) in mbedtls_test_transparent_generate_key()
251 uint8_t *key, size_t key_size, size_t *key_length) in mbedtls_test_opaque_generate_key()
427 const uint8_t *key, size_t key_length, in mbedtls_test_opaque_export_key()
574 const uint8_t *key, size_t key_length, in mbedtls_test_opaque_export_public_key()
Dtest_driver_signature.c246 const uint8_t *key, in mbedtls_test_opaque_signature_sign_message()
313 const uint8_t *key, in mbedtls_test_opaque_signature_verify_message()
363 const uint8_t *key, size_t key_length, in mbedtls_test_opaque_signature_sign_hash()
401 const uint8_t *key, size_t key_length, in mbedtls_test_opaque_signature_verify_hash()
Dtest_driver_asymmetric_encryption.c124 const psa_key_attributes_t *attributes, const uint8_t *key, in mbedtls_test_opaque_asymmetric_encrypt()
144 const psa_key_attributes_t *attributes, const uint8_t *key, in mbedtls_test_opaque_asymmetric_decrypt()
/mbedtls-3.5.0/programs/psa/
Daead_demo.c131 psa_key_id_t *key, in aead_prepare()
180 static void aead_info(psa_key_id_t key, psa_algorithm_t alg) in aead_info()
203 static int aead_encrypt(psa_key_id_t key, psa_algorithm_t alg, in aead_encrypt()
245 psa_key_id_t key; in aead_demo() local
Dcrypto_examples.c96 static psa_status_t cipher_encrypt(psa_key_id_t key, in cipher_encrypt()
127 static psa_status_t cipher_decrypt(psa_key_id_t key, in cipher_decrypt()
169 psa_key_id_t key = 0; in cipher_example_encrypt_decrypt_aes_cbc_nopad_1_block() local
219 psa_key_id_t key = 0; in cipher_example_encrypt_decrypt_aes_cbc_pkcs7_multi() local
266 psa_key_id_t key = 0; in cipher_example_encrypt_decrypt_aes_ctr_multi() local
Dkey_ladder_demo.c167 static psa_status_t save_key(psa_key_id_t key, in save_key()
200 psa_key_id_t key = 0; in generate() local
275 psa_key_id_t *key) in derive_key_ladder()
Dhmac_demo.c114 psa_key_id_t key = 0; in hmac_demo() local
/mbedtls-3.5.0/programs/pkey/
Dkey_app_writer.c107 static int write_public_key(mbedtls_pk_context *key, const char *output_file) in write_public_key()
149 static int write_private_key(mbedtls_pk_context *key, const char *output_file) in write_private_key()
205 mbedtls_pk_context key; in main() local
Dgen_key.c137 static int write_private_key(mbedtls_pk_context *key, const char *output_file) in write_private_key()
179 mbedtls_pk_context key; in main() local
/mbedtls-3.5.0/tests/include/test/
Drandom.h49 uint32_t key[16]; member

123