Home
last modified time | relevance | path

Searched refs:key_attr (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/subsys/bluetooth/crypto/
Dbt_crypto_psa.c22 psa_key_attributes_t key_attr = PSA_KEY_ATTRIBUTES_INIT; in bt_crypto_aes_cmac() local
26 psa_set_key_type(&key_attr, PSA_KEY_TYPE_AES); in bt_crypto_aes_cmac()
27 psa_set_key_bits(&key_attr, 128); in bt_crypto_aes_cmac()
28 psa_set_key_usage_flags(&key_attr, PSA_KEY_USAGE_SIGN_MESSAGE | in bt_crypto_aes_cmac()
30 psa_set_key_algorithm(&key_attr, PSA_ALG_CMAC); in bt_crypto_aes_cmac()
32 status = psa_import_key(&key_attr, key, 16, &key_id); in bt_crypto_aes_cmac()
/Zephyr-latest/tests/crypto/secp256r1/src/
Dmain.c53 psa_key_attributes_t key_attr = PSA_KEY_ATTRIBUTES_INIT; in ZTEST_USER() local
61 psa_set_key_type(&key_attr, PSA_KEY_TYPE_ECC_KEY_PAIR(PSA_ECC_FAMILY_SECP_R1)); in ZTEST_USER()
62 psa_set_key_bits(&key_attr, 256); in ZTEST_USER()
63 psa_set_key_usage_flags(&key_attr, PSA_KEY_USAGE_EXPORT | PSA_KEY_USAGE_DERIVE); in ZTEST_USER()
64 psa_set_key_algorithm(&key_attr, PSA_ALG_ECDH); in ZTEST_USER()
66 status = psa_generate_key(&key_attr, &key_id_1); in ZTEST_USER()
69 status = psa_generate_key(&key_attr, &key_id_2); in ZTEST_USER()
/Zephyr-latest/subsys/bluetooth/host/
Dgatt.c705 psa_key_attributes_t key_attr = PSA_KEY_ATTRIBUTES_INIT; in db_hash_setup() local
707 psa_set_key_type(&key_attr, PSA_KEY_TYPE_AES); in db_hash_setup()
708 psa_set_key_bits(&key_attr, 128); in db_hash_setup()
709 psa_set_key_usage_flags(&key_attr, PSA_KEY_USAGE_SIGN_MESSAGE); in db_hash_setup()
710 psa_set_key_algorithm(&key_attr, PSA_ALG_CMAC); in db_hash_setup()
712 if (psa_import_key(&key_attr, key, 16, &(state->key)) != PSA_SUCCESS) { in db_hash_setup()