/trusted-firmware-m-3.7.0/interface/src/ |
D | tfm_crypto_api.c | 69 const struct tfm_crypto_pack_iovec iov = { in TFM_CRYPTO_API() local 74 {.base = &iov, .len = sizeof(struct tfm_crypto_pack_iovec)}, in TFM_CRYPTO_API() 85 const struct tfm_crypto_pack_iovec iov = { in TFM_CRYPTO_API() local 90 {.base = &iov, .len = sizeof(struct tfm_crypto_pack_iovec)}, in TFM_CRYPTO_API() 101 struct tfm_crypto_pack_iovec iov = { in TFM_CRYPTO_API() local 105 {.base = &iov, .len = sizeof(struct tfm_crypto_pack_iovec)}, in TFM_CRYPTO_API() 118 struct tfm_crypto_pack_iovec iov = { in TFM_CRYPTO_API() local 123 {.base = &iov, .len = sizeof(struct tfm_crypto_pack_iovec)}, in TFM_CRYPTO_API() 132 struct tfm_crypto_pack_iovec iov = { in TFM_CRYPTO_API() local 137 {.base = &iov, .len = sizeof(struct tfm_crypto_pack_iovec)}, in TFM_CRYPTO_API() [all …]
|
/trusted-firmware-m-3.7.0/secure_fw/partitions/crypto/ |
D | crypto_key_derivation.c | 33 const struct tfm_crypto_pack_iovec *iov = in_vec[0].base; in tfm_crypto_key_derivation_interface() local 37 enum tfm_crypto_func_sid_t sid = iov->function_id; in tfm_crypto_key_derivation_interface() 47 return psa_raw_key_agreement(iov->alg, library_key, in tfm_crypto_key_derivation_interface() 54 *p_handle = iov->op_handle; in tfm_crypto_key_derivation_interface() 61 iov->op_handle, in tfm_crypto_key_derivation_interface() 72 status = psa_key_derivation_setup(operation, iov->alg); in tfm_crypto_key_derivation_interface() 87 return psa_key_derivation_set_capacity(operation, iov->capacity); in tfm_crypto_key_derivation_interface() 94 return psa_key_derivation_input_bytes(operation, iov->step, data, in tfm_crypto_key_derivation_interface() 99 return psa_key_derivation_input_integer(operation, iov->step, iov->value); in tfm_crypto_key_derivation_interface() 112 iov->step, library_key); in tfm_crypto_key_derivation_interface() [all …]
|
D | crypto_aead.c | 34 const struct tfm_crypto_pack_iovec *iov = in_vec[0].base; in tfm_crypto_aead_interface() local 38 enum tfm_crypto_func_sid_t sid = iov->function_id; in tfm_crypto_aead_interface() 47 &iov->aead_in; in tfm_crypto_aead_interface() 57 status = psa_aead_encrypt(library_key, iov->alg, nonce, nonce_length, in tfm_crypto_aead_interface() 73 &iov->aead_in; in tfm_crypto_aead_interface() 83 status = psa_aead_decrypt(library_key, iov->alg, nonce, nonce_length, in tfm_crypto_aead_interface() 97 *p_handle = iov->op_handle; in tfm_crypto_aead_interface() 103 iov->op_handle, in tfm_crypto_aead_interface() 116 *p_handle = iov->op_handle; in tfm_crypto_aead_interface() 138 status = psa_aead_encrypt_setup(operation, library_key, iov->alg); in tfm_crypto_aead_interface() [all …]
|
D | crypto_mac.c | 31 const struct tfm_crypto_pack_iovec *iov = in_vec[0].base; in tfm_crypto_mac_interface() local 35 enum tfm_crypto_func_sid_t sid = iov->function_id; in tfm_crypto_mac_interface() 48 status = psa_mac_compute(library_key, iov->alg, input, input_length, in tfm_crypto_mac_interface() 66 return psa_mac_verify(library_key, iov->alg, input, input_length, in tfm_crypto_mac_interface() 74 *p_handle = iov->op_handle; in tfm_crypto_mac_interface() 80 iov->op_handle, in tfm_crypto_mac_interface() 92 *p_handle = iov->op_handle; in tfm_crypto_mac_interface() 114 status = psa_mac_sign_setup(operation, library_key, iov->alg); in tfm_crypto_mac_interface() 122 status = psa_mac_verify_setup(operation, library_key, iov->alg); in tfm_crypto_mac_interface()
|
D | crypto_asymmetric.c | 31 const struct tfm_crypto_pack_iovec *iov = in_vec[0].base; in tfm_crypto_asymmetric_sign_interface() local 36 switch (iov->function_id) { in tfm_crypto_asymmetric_sign_interface() 44 status = psa_sign_message(library_key, iov->alg, input, input_length, in tfm_crypto_asymmetric_sign_interface() 58 return psa_verify_message(library_key, iov->alg, input, input_length, in tfm_crypto_asymmetric_sign_interface() 68 status = psa_sign_hash(library_key, iov->alg, hash, hash_length, in tfm_crypto_asymmetric_sign_interface() 82 return psa_verify_hash(library_key, iov->alg, hash, hash_length, in tfm_crypto_asymmetric_sign_interface() 109 const struct tfm_crypto_pack_iovec *iov = in_vec[0].base; in tfm_crypto_asymmetric_encrypt_interface() local 114 switch (iov->function_id) { in tfm_crypto_asymmetric_encrypt_interface() 124 status = psa_asymmetric_encrypt(library_key, iov->alg, in tfm_crypto_asymmetric_encrypt_interface() 143 status = psa_asymmetric_decrypt(library_key, iov->alg, in tfm_crypto_asymmetric_encrypt_interface()
|
D | crypto_cipher.c | 31 const struct tfm_crypto_pack_iovec *iov = in_vec[0].base; in tfm_crypto_cipher_interface() local 35 enum tfm_crypto_func_sid_t sid = iov->function_id; in tfm_crypto_cipher_interface() 48 status = psa_cipher_encrypt(library_key, iov->alg, input, input_length, in tfm_crypto_cipher_interface() 66 status = psa_cipher_decrypt(library_key, iov->alg, input, input_length, in tfm_crypto_cipher_interface() 78 *p_handle = iov->op_handle; in tfm_crypto_cipher_interface() 84 iov->op_handle, in tfm_crypto_cipher_interface() 95 *p_handle = iov->op_handle; in tfm_crypto_cipher_interface() 135 status = psa_cipher_encrypt_setup(operation, library_key, iov->alg); in tfm_crypto_cipher_interface() 143 status = psa_cipher_decrypt_setup(operation, library_key, iov->alg); in tfm_crypto_cipher_interface()
|
D | crypto_hash.c | 27 const struct tfm_crypto_pack_iovec *iov = in_vec[0].base; in tfm_crypto_hash_interface() local 31 enum tfm_crypto_func_sid_t sid = iov->function_id; in tfm_crypto_hash_interface() 42 status = psa_hash_compute(iov->alg, input, input_length, in tfm_crypto_hash_interface() 60 return psa_hash_compare(iov->alg, input, input_length, in tfm_crypto_hash_interface() 67 *p_handle = iov->op_handle; in tfm_crypto_hash_interface() 73 iov->op_handle, in tfm_crypto_hash_interface() 85 *p_handle = iov->op_handle; in tfm_crypto_hash_interface() 107 status = psa_hash_setup(operation, iov->alg); in tfm_crypto_hash_interface()
|
D | crypto_init.c | 196 struct tfm_crypto_pack_iovec iov = {0}; in tfm_crypto_call_srv() local 213 if (psa_read(msg->handle, 0, &iov, sizeof(iov)) != sizeof(iov)) { in tfm_crypto_call_srv() 218 in_vec[0].base = &iov; in tfm_crypto_call_srv() 339 const struct tfm_crypto_pack_iovec *iov = in_vec[0].base; in tfm_crypto_api_dispatcher() local 349 group_id = TFM_CRYPTO_GET_GROUP_ID(iov->function_id); in tfm_crypto_api_dispatcher() 362 encoded_key.key_id = iov->key_id; in tfm_crypto_api_dispatcher()
|
D | crypto_key_management.c | 31 const struct tfm_crypto_pack_iovec *iov = in_vec[0].base; in tfm_crypto_key_management_interface() local 38 switch (iov->function_id) { in tfm_crypto_key_management_interface() 49 switch (iov->function_id) { in tfm_crypto_key_management_interface()
|