/third_party/mbedtls/library/ |
H A D | pk_ecc.c | 70 status = psa_import_key(&attributes, key, key_len, &pk->priv_id); in mbedtls_pk_ecc_set_key() 115 status = psa_import_key(&key_attr, prv, prv_len, &key_id); in mbedtls_pk_ecc_set_pubkey_from_prv() 150 * functions to handle keys. However, currently psa_import_key() does not 234 if ((psa_import_key(&key_attrs, pk->pub_raw, pk->pub_raw_len, in mbedtls_pk_ecc_set_pubkey()
|
H A D | pk_wrap.c | 105 status = psa_import_key(&attributes, in rsa_verify_wrap() 203 status = psa_import_key(&attributes, in mbedtls_pk_psa_rsa_sign_ext() 316 status = psa_import_key(&attributes, in rsa_decrypt_wrap() 399 status = psa_import_key(&attributes, in rsa_encrypt_wrap() 561 status = psa_import_key(&attributes, key, key_len, &key_id); in ecdsa_verify_psa() 790 status = psa_import_key(&attributes, buf, key_len, &key_id); in ecdsa_sign_wrap() 984 status = psa_import_key(&key_attr, prv_key_buf, curve_bytes, &key_id); in eckey_check_pair_psa()
|
H A D | block_cipher.c | 136 status = psa_import_key(&key_attr, key, PSA_BITS_TO_BYTES(key_bitlen), &ctx->psa_key_id); in mbedtls_block_cipher_setkey()
|
H A D | pk.c | 604 status = psa_import_key(attributes, key_buffer, key_length, new_key_id); in export_import_into_psa() 666 ret = PSA_PK_TO_MBEDTLS_ERR(psa_import_key(attributes, in import_pair_into_psa() 682 * and if it's specified, psa_import_key() will know from the key in import_pair_into_psa() 720 ret = PSA_PK_TO_MBEDTLS_ERR(psa_import_key(attributes, in import_pair_into_psa() 780 * and if it's specified, psa_import_key() will know from the key in import_public_into_psa() 837 return PSA_PK_TO_MBEDTLS_ERR(psa_import_key(attributes, in import_public_into_psa() 847 * if we error out before calling psa_import_key(). */ in mbedtls_pk_import_into_psa() 1175 status = psa_import_key(&attributes, in mbedtls_pk_verify_ext()
|
H A D | ssl_ticket.c | 99 psa_import_key(&attributes, buf, in ssl_ticket_gen_key() 187 if ((status = psa_import_key(&attributes, k, in mbedtls_ssl_ticket_rotate()
|
H A D | ssl_tls13_keys.c | 750 status = psa_import_key(&attributes, finished_key, hash_len, &key); in ssl_tls13_calc_finished_core() 1067 if ((status = psa_import_key(&attributes, in mbedtls_ssl_tls13_populate_transform() 1072 1, "psa_import_key", PSA_TO_MBEDTLS_ERR(status)); in mbedtls_ssl_tls13_populate_transform() 1078 if ((status = psa_import_key(&attributes, in mbedtls_ssl_tls13_populate_transform() 1083 1, "psa_import_key", PSA_TO_MBEDTLS_ERR(status)); in mbedtls_ssl_tls13_populate_transform()
|
H A D | ctr_drbg.c | 45 status = psa_import_key(&key_attr, key, key_len, &psa_ctx->key_id); in ctr_drbg_setup_psa_context()
|
H A D | ssl_tls.c | 2041 status = psa_import_key(&attributes, pw, pw_len, in mbedtls_ssl_set_hs_ecjpake_password() 2284 status = psa_import_key(&key_attributes, psk, psk_len, &key); in mbedtls_ssl_set_hs_psk() 6777 status = psa_import_key(&key_attributes, secret, slen, &master_key); in tls_prf_generic() 9114 if ((status = psa_import_key(&attributes, in ssl_tls12_populate_transform() 9118 MBEDTLS_SSL_DEBUG_RET(3, "psa_import_key", (int) status); in ssl_tls12_populate_transform() 9120 MBEDTLS_SSL_DEBUG_RET(1, "psa_import_key", ret); in ssl_tls12_populate_transform() 9126 if ((status = psa_import_key(&attributes, in ssl_tls12_populate_transform() 9131 MBEDTLS_SSL_DEBUG_RET(1, "psa_import_key", ret); in ssl_tls12_populate_transform() 9190 if ((status = psa_import_key(&attributes, in ssl_tls12_populate_transform() 9211 if ((status = psa_import_key( in ssl_tls12_populate_transform() [all...] |
H A D | ssl_tls12_server.c | 2658 status = psa_import_key(&key_attributes, buf, key_len, in ssl_get_ecdh_params_from_cert() 2707 status = psa_import_key(&key_attributes, buf, key_len, in ssl_get_ecdh_params_from_cert()
|
H A D | cipher.c | 356 status = psa_import_key(&attributes, key, key_bytelen, in mbedtls_cipher_setkey()
|
H A D | psa_crypto.c | 1711 * psa_import_key() needs its own checks. */ in psa_validate_key_attributes() 2039 psa_status_t psa_import_key(const psa_key_attributes_t *attributes, in psa_import_key() function
|
/third_party/mbedtls/tests/include/spe/ |
H A D | crypto_spe.h | 68 #define psa_import_key \ macro 69 PSA_FUNCTION_NAME(psa_import_key)
|
/third_party/mbedtls/tests/src/ |
H A D | psa_crypto_stubs.c | 63 psa_status_t psa_import_key(const psa_key_attributes_t *attributes, in psa_import_key() function
|
H A D | psa_test_wrappers.c | 745 /* Wrapper for psa_import_key */ 755 psa_status_t status = (psa_import_key)(arg0_attributes, arg1_data, arg2_data_length, arg3_key); in mbedtls_test_wrap_psa_import_key()
|
/third_party/mbedtls/programs/psa/ |
H A D | hmac_demo.c | 122 status = psa_import_key(&attributes, in hmac_demo()
|
H A D | aead_demo.c | 168 PSA_CHECK(psa_import_key(&attributes, key_bytes, key_bits / 8, key)); in aead_prepare()
|
H A D | key_ladder_demo.c | 240 PSA_CHECK(psa_import_key(&attributes, key_data, key_size, master_key)); in import_key_from_file()
|
/third_party/mbedtls/tests/src/test_helpers/ |
H A D | ssl_helpers.c | 1378 CHK(psa_import_key(&attributes, in mbedtls_test_ssl_build_transforms() 1382 CHK(psa_import_key(&attributes, in mbedtls_test_ssl_build_transforms() 1395 CHK(psa_import_key(&attributes, in mbedtls_test_ssl_build_transforms() 1399 CHK(psa_import_key(&attributes, in mbedtls_test_ssl_build_transforms() 1557 status = psa_import_key(&attributes, in mbedtls_test_ssl_build_transforms() 1567 status = psa_import_key(&attributes, in mbedtls_test_ssl_build_transforms() 1579 status = psa_import_key(&attributes, in mbedtls_test_ssl_build_transforms() 1589 status = psa_import_key(&attributes, in mbedtls_test_ssl_build_transforms()
|
/third_party/mbedtls/include/psa/ |
H A D | crypto.h | 122 * psa_import_key(), psa_generate_key(), psa_generate_key_ext(), 167 * psa_import_key(), psa_generate_key(), psa_generate_key_ext(), 646 psa_status_t psa_import_key(const psa_key_attributes_t *attributes, 656 * The output of this function can be passed to psa_import_key() to 659 * If the implementation of psa_import_key() supports other formats 749 * The output of this function can be passed to psa_import_key() to 3523 * same format that psa_import_key() accepts for the 3527 * #psa_import_key(..., 3635 * and passing the resulting output to #psa_import_key. 4008 * in the same format that psa_import_key() [all...] |
/third_party/mbedtls/tests/include/test/ |
H A D | psa_test_wrappers.h | 427 #define psa_import_key(arg0_attributes, arg1_data, arg2_data_length, arg3_key) \ macro
|
/third_party/mbedtls/programs/ssl/ |
H A D | ssl_client2.c | 1993 status = psa_import_key(&key_attributes, psk, psk_len, &slot); in main() 2072 status = psa_import_key(&attributes, in main() 2077 mbedtls_printf(" failed\n ! psa_import_key returned %d\n\n", in main()
|
H A D | ssl_server2.c | 1323 status = psa_import_key(&key_attributes, psk, psk_len, slot); in psa_setup_psk_key_slot() 3406 status = psa_import_key(&attributes, in main() 3411 mbedtls_printf(" failed\n ! psa_import_key returned %d\n\n", in main()
|