Lines Matching refs:PSA_SUCCESS
53 if (psa_crypto_init() != PSA_SUCCESS) { in bt_mesh_crypto_init()
72 if (status != PSA_SUCCESS || output_len != 16) { in bt_mesh_encrypt()
95 if (status != PSA_SUCCESS || output_len != len + mic_size) { in bt_mesh_ccm_encrypt()
118 if (status != PSA_SUCCESS || output_len != len) { in bt_mesh_ccm_decrypt()
133 if (status != PSA_SUCCESS) { in bt_mesh_aes_cmac_mesh_key()
139 if (status != PSA_SUCCESS) { in bt_mesh_aes_cmac_mesh_key()
148 if (status != PSA_SUCCESS) { in bt_mesh_aes_cmac_mesh_key()
197 if (status != PSA_SUCCESS) { in bt_mesh_sha256_hmac_raw_key()
205 if (status != PSA_SUCCESS) { in bt_mesh_sha256_hmac_raw_key()
212 if (status != PSA_SUCCESS) { in bt_mesh_sha256_hmac_raw_key()
222 if (status != PSA_SUCCESS) { in bt_mesh_sha256_hmac_raw_key()
259 if (status != PSA_SUCCESS) { in bt_mesh_pub_key_gen()
266 if (status != PSA_SUCCESS) { in bt_mesh_pub_key_gen()
315 if (status != PSA_SUCCESS) { in bt_mesh_dhkey_gen()
337 if (status != PSA_SUCCESS) { in bt_mesh_dhkey_gen()
454 err = status == PSA_SUCCESS ? 0 : in bt_mesh_key_import()
470 if (psa_export_key(in->key, out, 16, &data_length) != PSA_SUCCESS) { in bt_mesh_key_export()
491 if (psa_destroy_key(key->key) != PSA_SUCCESS) { in bt_mesh_key_destroy()
521 return psa_generate_random(buf, len) == PSA_SUCCESS ? 0 : -EIO; in bt_rand()