Home
last modified time | relevance | path

Searched refs:alg (Results 1 – 11 of 11) sorted by relevance

/Zephyr-latest/subsys/jwt/
Djwt_psa.c24 psa_algorithm_t alg; in jwt_sign_impl() local
30 alg = PSA_ALG_ECDSA(PSA_ALG_SHA_256); in jwt_sign_impl()
34 alg = PSA_ALG_RSA_PKCS1V15_SIGN(PSA_ALG_SHA_256); in jwt_sign_impl()
43 status = psa_sign_message(key_id, alg, in jwt_sign_impl()
/Zephyr-latest/subsys/secure_storage/src/its/transform/
Daead.c20 psa_algorithm_t alg; in psa_aead_crypt() local
22 size_t key_size, psa_algorithm_t alg, const uint8_t *nonce, in psa_aead_crypt()
27 secure_storage_its_transform_aead_get_scheme(&key_type, &alg); in psa_aead_crypt()
32 psa_set_key_algorithm(&key_attributes, alg); in psa_aead_crypt()
48 ret = aead_crypt(&key_attributes, key, sizeof(key), alg, nonce, in psa_aead_crypt()
Daead_get.c22 void secure_storage_its_transform_aead_get_scheme(psa_key_type_t *key_type, psa_algorithm_t *alg) in secure_storage_its_transform_aead_get_scheme() argument
25 *alg = PSA_ALG; in secure_storage_its_transform_aead_get_scheme()
/Zephyr-latest/tests/net/lib/wifi_credentials_backend_psa/src/
Dnormalized_crypto.h20 uint32_t alg; member
39 void psa_set_key_algorithm(psa_key_attributes_t *attributes, psa_algorithm_t alg);
Dmain.c99 void custom_psa_set_key_algorithm(psa_key_attributes_t *attributes, psa_algorithm_t alg) in custom_psa_set_key_algorithm() argument
101 zassert_equal(PSA_ALG_NONE, alg, "Key algorithm mismatch"); in custom_psa_set_key_algorithm()
/Zephyr-latest/subsys/bluetooth/mesh/
Dcrypto_psa.c86 psa_algorithm_t alg = PSA_ALG_AEAD_WITH_SHORTENED_TAG(PSA_ALG_CCM, mic_size); in bt_mesh_ccm_encrypt() local
88 status = psa_aead_encrypt(key->key, alg, in bt_mesh_ccm_encrypt()
109 psa_algorithm_t alg = PSA_ALG_AEAD_WITH_SHORTENED_TAG(PSA_ALG_CCM, mic_size); in bt_mesh_ccm_decrypt() local
111 status = psa_aead_decrypt(key->key, alg, in bt_mesh_ccm_decrypt()
129 psa_algorithm_t alg = PSA_ALG_CMAC; in bt_mesh_aes_cmac_mesh_key() local
132 status = psa_mac_sign_setup(&operation, key->key, alg); in bt_mesh_aes_cmac_mesh_key()
181 psa_algorithm_t alg = PSA_ALG_HMAC(PSA_ALG_SHA_256); in bt_mesh_sha256_hmac_raw_key() local
204 status = psa_mac_sign_setup(&operation, key_id, alg); in bt_mesh_sha256_hmac_raw_key()
/Zephyr-latest/subsys/secure_storage/include/internal/zephyr/secure_storage/its/transform/
Daead_get.h23 void secure_storage_its_transform_aead_get_scheme(psa_key_type_t *key_type, psa_algorithm_t *alg);
/Zephyr-latest/tests/lib/cmsis_dsp/support/src/
Df32.c179 arm_sort_alg alg, arm_sort_dir dir) in test_arm_sort_out() argument
189 arm_sort_init_f32(&inst, alg, dir); in test_arm_sort_out()
268 arm_sort_alg alg, arm_sort_dir dir) in test_arm_sort_in() argument
281 arm_sort_init_f32(&inst, alg, dir); in test_arm_sort_in()
321 arm_sort_alg alg, arm_sort_dir dir) in test_arm_sort_const() argument
331 arm_sort_init_f32(&inst, alg, dir); in test_arm_sort_const()
/Zephyr-latest/samples/tfm_integration/psa_crypto/src/
Dpsa_crypto.c118 psa_algorithm_t alg = PSA_ALG_ECDSA(PSA_ALG_SHA_256); in crp_imp_key_secp256r1() local
132 psa_set_key_algorithm(&key_attributes, alg); in crp_imp_key_secp256r1()
230 psa_algorithm_t alg = PSA_ALG_ECDSA(PSA_ALG_SHA_256); in crp_gen_key_secp256r1() local
243 psa_set_key_algorithm(&key_attributes, alg); in crp_gen_key_secp256r1()
545 psa_algorithm_t alg = PSA_ALG_SHA_256; in crp_hash_payload() local
554 status = al_psa_status(psa_hash_setup(&hash_handle, alg), in crp_hash_payload()
/Zephyr-latest/drivers/wifi/nrf_wifi/inc/
Dwpa_supp_if.h55 enum wpa_alg alg,
/Zephyr-latest/drivers/wifi/nrf_wifi/src/
Dwpa_supp_if.c52 static unsigned int wpa_alg_to_cipher_suite(enum wpa_alg alg, size_t key_len) in wpa_alg_to_cipher_suite() argument
54 switch (alg) { in wpa_alg_to_cipher_suite()
83 LOG_ERR("%s: Unexpected encryption algorithm %d", __func__, alg); in wpa_alg_to_cipher_suite()
87 LOG_ERR("%s: Unsupported encryption algorithm %d", __func__, alg); in wpa_alg_to_cipher_suite()
722 int nrf_wifi_wpa_supp_add_key(struct nrf_wifi_umac_key_info *key_info, enum wpa_alg alg, in nrf_wifi_wpa_supp_add_key() argument
729 suite = wpa_alg_to_cipher_suite(alg, key_len); in nrf_wifi_wpa_supp_add_key()
735 if (defkey && alg == WPA_ALG_BIP_CMAC_128) { in nrf_wifi_wpa_supp_add_key()
948 int nrf_wifi_wpa_supp_set_key(void *if_priv, const unsigned char *ifname, enum wpa_alg alg, in nrf_wifi_wpa_supp_set_key() argument
989 if (alg != WPA_ALG_NONE) { in nrf_wifi_wpa_supp_set_key()
990 suite = wpa_alg_to_cipher_suite(alg, key_len); in nrf_wifi_wpa_supp_set_key()
[all …]