TF-M Reference Manual  1.2.0
TrustedFirmware-M
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
crypto_spe.h File Reference

When Mbed Crypto is built with the MBEDTLS_PSA_CRYPTO_SPM option enabled, this header is included by all .c files in Mbed Crypto that use PSA Crypto function names. This avoids duplication of symbols between TF-M and Mbed Crypto. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PSA_FUNCTION_NAME(x)   mbedcrypto__ ## x
 
#define psa_crypto_init   PSA_FUNCTION_NAME(psa_crypto_init)
 
#define psa_key_derivation_get_capacity   PSA_FUNCTION_NAME(psa_key_derivation_get_capacity)
 
#define psa_key_derivation_set_capacity   PSA_FUNCTION_NAME(psa_key_derivation_set_capacity)
 
#define psa_key_derivation_input_bytes   PSA_FUNCTION_NAME(psa_key_derivation_input_bytes)
 
#define psa_key_derivation_output_bytes   PSA_FUNCTION_NAME(psa_key_derivation_output_bytes)
 
#define psa_key_derivation_input_key   PSA_FUNCTION_NAME(psa_key_derivation_input_key)
 
#define psa_key_derivation_output_key   PSA_FUNCTION_NAME(psa_key_derivation_output_key)
 
#define psa_key_derivation_setup   PSA_FUNCTION_NAME(psa_key_derivation_setup)
 
#define psa_key_derivation_abort   PSA_FUNCTION_NAME(psa_key_derivation_abort)
 
#define psa_key_derivation_key_agreement   PSA_FUNCTION_NAME(psa_key_derivation_key_agreement)
 
#define psa_raw_key_agreement   PSA_FUNCTION_NAME(psa_raw_key_agreement)
 
#define psa_generate_random   PSA_FUNCTION_NAME(psa_generate_random)
 
#define psa_aead_encrypt   PSA_FUNCTION_NAME(psa_aead_encrypt)
 
#define psa_aead_decrypt   PSA_FUNCTION_NAME(psa_aead_decrypt)
 
#define psa_open_key   PSA_FUNCTION_NAME(psa_open_key)
 
#define psa_close_key   PSA_FUNCTION_NAME(psa_close_key)
 
#define psa_import_key   PSA_FUNCTION_NAME(psa_import_key)
 
#define psa_destroy_key   PSA_FUNCTION_NAME(psa_destroy_key)
 
#define psa_get_key_attributes   PSA_FUNCTION_NAME(psa_get_key_attributes)
 
#define psa_reset_key_attributes   PSA_FUNCTION_NAME(psa_reset_key_attributes)
 
#define psa_export_key   PSA_FUNCTION_NAME(psa_export_key)
 
#define psa_export_public_key   PSA_FUNCTION_NAME(psa_export_public_key)
 
#define psa_copy_key   PSA_FUNCTION_NAME(psa_copy_key)
 
#define psa_cipher_operation_init   PSA_FUNCTION_NAME(psa_cipher_operation_init)
 
#define psa_cipher_generate_iv   PSA_FUNCTION_NAME(psa_cipher_generate_iv)
 
#define psa_cipher_set_iv   PSA_FUNCTION_NAME(psa_cipher_set_iv)
 
#define psa_cipher_encrypt_setup   PSA_FUNCTION_NAME(psa_cipher_encrypt_setup)
 
#define psa_cipher_decrypt_setup   PSA_FUNCTION_NAME(psa_cipher_decrypt_setup)
 
#define psa_cipher_update   PSA_FUNCTION_NAME(psa_cipher_update)
 
#define psa_cipher_finish   PSA_FUNCTION_NAME(psa_cipher_finish)
 
#define psa_cipher_abort   PSA_FUNCTION_NAME(psa_cipher_abort)
 
#define psa_hash_operation_init   PSA_FUNCTION_NAME(psa_hash_operation_init)
 
#define psa_hash_setup   PSA_FUNCTION_NAME(psa_hash_setup)
 
#define psa_hash_update   PSA_FUNCTION_NAME(psa_hash_update)
 
#define psa_hash_finish   PSA_FUNCTION_NAME(psa_hash_finish)
 
#define psa_hash_verify   PSA_FUNCTION_NAME(psa_hash_verify)
 
#define psa_hash_abort   PSA_FUNCTION_NAME(psa_hash_abort)
 
#define psa_hash_clone   PSA_FUNCTION_NAME(psa_hash_clone)
 
#define psa_hash_compute   PSA_FUNCTION_NAME(psa_hash_compute)
 
#define psa_hash_compare   PSA_FUNCTION_NAME(psa_hash_compare)
 
#define psa_mac_operation_init   PSA_FUNCTION_NAME(psa_mac_operation_init)
 
#define psa_mac_sign_setup   PSA_FUNCTION_NAME(psa_mac_sign_setup)
 
#define psa_mac_verify_setup   PSA_FUNCTION_NAME(psa_mac_verify_setup)
 
#define psa_mac_update   PSA_FUNCTION_NAME(psa_mac_update)
 
#define psa_mac_sign_finish   PSA_FUNCTION_NAME(psa_mac_sign_finish)
 
#define psa_mac_verify_finish   PSA_FUNCTION_NAME(psa_mac_verify_finish)
 
#define psa_mac_abort   PSA_FUNCTION_NAME(psa_mac_abort)
 
#define psa_sign_hash   PSA_FUNCTION_NAME(psa_sign_hash)
 
#define psa_verify_hash   PSA_FUNCTION_NAME(psa_verify_hash)
 
#define psa_asymmetric_encrypt   PSA_FUNCTION_NAME(psa_asymmetric_encrypt)
 
#define psa_asymmetric_decrypt   PSA_FUNCTION_NAME(psa_asymmetric_decrypt)
 
#define psa_generate_key   PSA_FUNCTION_NAME(psa_generate_key)
 
#define psa_set_key_domain_parameters   PSA_FUNCTION_NAME(psa_set_key_domain_parameters)
 
#define psa_get_key_domain_parameters   PSA_FUNCTION_NAME(psa_get_key_domain_parameters)
 

Detailed Description

When Mbed Crypto is built with the MBEDTLS_PSA_CRYPTO_SPM option enabled, this header is included by all .c files in Mbed Crypto that use PSA Crypto function names. This avoids duplication of symbols between TF-M and Mbed Crypto.

Note
This file should be included before including any PSA Crypto headers from Mbed Crypto.

Definition in file crypto_spe.h.

Macro Definition Documentation

#define psa_aead_decrypt   PSA_FUNCTION_NAME(psa_aead_decrypt)

Definition at line 51 of file crypto_spe.h.

#define psa_aead_encrypt   PSA_FUNCTION_NAME(psa_aead_encrypt)

Definition at line 49 of file crypto_spe.h.

#define psa_asymmetric_decrypt   PSA_FUNCTION_NAME(psa_asymmetric_decrypt)

Definition at line 125 of file crypto_spe.h.

#define psa_asymmetric_encrypt   PSA_FUNCTION_NAME(psa_asymmetric_encrypt)

Definition at line 123 of file crypto_spe.h.

#define psa_cipher_abort   PSA_FUNCTION_NAME(psa_cipher_abort)

Definition at line 85 of file crypto_spe.h.

#define psa_cipher_decrypt_setup   PSA_FUNCTION_NAME(psa_cipher_decrypt_setup)

Definition at line 79 of file crypto_spe.h.

#define psa_cipher_encrypt_setup   PSA_FUNCTION_NAME(psa_cipher_encrypt_setup)

Definition at line 77 of file crypto_spe.h.

#define psa_cipher_finish   PSA_FUNCTION_NAME(psa_cipher_finish)

Definition at line 83 of file crypto_spe.h.

#define psa_cipher_generate_iv   PSA_FUNCTION_NAME(psa_cipher_generate_iv)

Definition at line 73 of file crypto_spe.h.

#define psa_cipher_operation_init   PSA_FUNCTION_NAME(psa_cipher_operation_init)

Definition at line 71 of file crypto_spe.h.

#define psa_cipher_set_iv   PSA_FUNCTION_NAME(psa_cipher_set_iv)

Definition at line 75 of file crypto_spe.h.

#define psa_cipher_update   PSA_FUNCTION_NAME(psa_cipher_update)

Definition at line 81 of file crypto_spe.h.

#define psa_close_key   PSA_FUNCTION_NAME(psa_close_key)

Definition at line 55 of file crypto_spe.h.

#define psa_copy_key   PSA_FUNCTION_NAME(psa_copy_key)

Definition at line 69 of file crypto_spe.h.

#define psa_crypto_init   PSA_FUNCTION_NAME(psa_crypto_init)

Definition at line 25 of file crypto_spe.h.

#define psa_destroy_key   PSA_FUNCTION_NAME(psa_destroy_key)

Definition at line 59 of file crypto_spe.h.

#define psa_export_key   PSA_FUNCTION_NAME(psa_export_key)

Definition at line 65 of file crypto_spe.h.

#define psa_export_public_key   PSA_FUNCTION_NAME(psa_export_public_key)

Definition at line 67 of file crypto_spe.h.

#define PSA_FUNCTION_NAME (   x)    mbedcrypto__ ## x

Definition at line 23 of file crypto_spe.h.

#define psa_generate_key   PSA_FUNCTION_NAME(psa_generate_key)

Definition at line 127 of file crypto_spe.h.

#define psa_generate_random   PSA_FUNCTION_NAME(psa_generate_random)

Definition at line 47 of file crypto_spe.h.

#define psa_get_key_attributes   PSA_FUNCTION_NAME(psa_get_key_attributes)

Definition at line 61 of file crypto_spe.h.

#define psa_get_key_domain_parameters   PSA_FUNCTION_NAME(psa_get_key_domain_parameters)

Definition at line 131 of file crypto_spe.h.

#define psa_hash_abort   PSA_FUNCTION_NAME(psa_hash_abort)

Definition at line 97 of file crypto_spe.h.

#define psa_hash_clone   PSA_FUNCTION_NAME(psa_hash_clone)

Definition at line 99 of file crypto_spe.h.

#define psa_hash_compare   PSA_FUNCTION_NAME(psa_hash_compare)

Definition at line 103 of file crypto_spe.h.

#define psa_hash_compute   PSA_FUNCTION_NAME(psa_hash_compute)

Definition at line 101 of file crypto_spe.h.

#define psa_hash_finish   PSA_FUNCTION_NAME(psa_hash_finish)

Definition at line 93 of file crypto_spe.h.

#define psa_hash_operation_init   PSA_FUNCTION_NAME(psa_hash_operation_init)

Definition at line 87 of file crypto_spe.h.

#define psa_hash_setup   PSA_FUNCTION_NAME(psa_hash_setup)

Definition at line 89 of file crypto_spe.h.

#define psa_hash_update   PSA_FUNCTION_NAME(psa_hash_update)

Definition at line 91 of file crypto_spe.h.

#define psa_hash_verify   PSA_FUNCTION_NAME(psa_hash_verify)

Definition at line 95 of file crypto_spe.h.

#define psa_import_key   PSA_FUNCTION_NAME(psa_import_key)

Definition at line 57 of file crypto_spe.h.

#define psa_key_derivation_abort   PSA_FUNCTION_NAME(psa_key_derivation_abort)

Definition at line 41 of file crypto_spe.h.

#define psa_key_derivation_get_capacity   PSA_FUNCTION_NAME(psa_key_derivation_get_capacity)

Definition at line 27 of file crypto_spe.h.

#define psa_key_derivation_input_bytes   PSA_FUNCTION_NAME(psa_key_derivation_input_bytes)

Definition at line 31 of file crypto_spe.h.

#define psa_key_derivation_input_key   PSA_FUNCTION_NAME(psa_key_derivation_input_key)

Definition at line 35 of file crypto_spe.h.

#define psa_key_derivation_key_agreement   PSA_FUNCTION_NAME(psa_key_derivation_key_agreement)

Definition at line 43 of file crypto_spe.h.

#define psa_key_derivation_output_bytes   PSA_FUNCTION_NAME(psa_key_derivation_output_bytes)

Definition at line 33 of file crypto_spe.h.

#define psa_key_derivation_output_key   PSA_FUNCTION_NAME(psa_key_derivation_output_key)

Definition at line 37 of file crypto_spe.h.

#define psa_key_derivation_set_capacity   PSA_FUNCTION_NAME(psa_key_derivation_set_capacity)

Definition at line 29 of file crypto_spe.h.

#define psa_key_derivation_setup   PSA_FUNCTION_NAME(psa_key_derivation_setup)

Definition at line 39 of file crypto_spe.h.

#define psa_mac_abort   PSA_FUNCTION_NAME(psa_mac_abort)

Definition at line 117 of file crypto_spe.h.

#define psa_mac_operation_init   PSA_FUNCTION_NAME(psa_mac_operation_init)

Definition at line 105 of file crypto_spe.h.

#define psa_mac_sign_finish   PSA_FUNCTION_NAME(psa_mac_sign_finish)

Definition at line 113 of file crypto_spe.h.

#define psa_mac_sign_setup   PSA_FUNCTION_NAME(psa_mac_sign_setup)

Definition at line 107 of file crypto_spe.h.

#define psa_mac_update   PSA_FUNCTION_NAME(psa_mac_update)

Definition at line 111 of file crypto_spe.h.

#define psa_mac_verify_finish   PSA_FUNCTION_NAME(psa_mac_verify_finish)

Definition at line 115 of file crypto_spe.h.

#define psa_mac_verify_setup   PSA_FUNCTION_NAME(psa_mac_verify_setup)

Definition at line 109 of file crypto_spe.h.

#define psa_open_key   PSA_FUNCTION_NAME(psa_open_key)

Definition at line 53 of file crypto_spe.h.

#define psa_raw_key_agreement   PSA_FUNCTION_NAME(psa_raw_key_agreement)

Definition at line 45 of file crypto_spe.h.

#define psa_reset_key_attributes   PSA_FUNCTION_NAME(psa_reset_key_attributes)

Definition at line 63 of file crypto_spe.h.

#define psa_set_key_domain_parameters   PSA_FUNCTION_NAME(psa_set_key_domain_parameters)

Definition at line 129 of file crypto_spe.h.

#define psa_sign_hash   PSA_FUNCTION_NAME(psa_sign_hash)

Definition at line 119 of file crypto_spe.h.

#define psa_verify_hash   PSA_FUNCTION_NAME(psa_verify_hash)

Definition at line 121 of file crypto_spe.h.