Hello everyone,

 

I need to extend PSA Crypto API by adding a platform specific encryption algorithm/key attribute.  For example a vendor specific algorithm named ABC must be added. So, I need that following macro must be included when psa/crypto.h is included.

 

#define PSA_ALG_ABC                                 ((psa_algorithm_t) 0x08000123)

 

TF-M provides PSA Crypto interface through includes located in interface/include/psa/crypto*.h. It means that we need to extend TF-M by allowing platform to provide some platform specific crypto header that will be installed in interface folder and included by psa/crypto.h.

 

  1. Is there any activity related to this problem?
  2. I’m considering to create a new crypto_config.h that must be generated during build process and which can optionally provide a macro TFM_PLATFORM_CRYPTO_EXTRA. These macro will be used in psa/crypto.h to conditionally include crypto_platform.h – header provided by platform.

 

Thanks,

Roman.