macro definition for encrypt API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

macro definition for encrypt API

Jump to solution
830 Views
ShinjiOhishi
Contributor II

About encrypt a data using the following API on LPC55S69.

  • psa_cipher_generate_iv
  • psa_cipher_update
  • psa_cipher_finish

The following macro definition is defined in the API specification. https://developer.arm.com/documentation/ihi0086/latest/

  • PSA_CIPHER_IV_LENGTH
  • PSA_CIPHER_UPDATE_OUTPUT_SIZE
  • PSA_CIPHER_UPDATE_OUTPUT_MAX_SIZE
  • PSA_CIPHER_FINISH_OUTPUT_SIZE
  • PSA_CIPHER_FINISH_OUTPUT_MAX_SIZE

encrypto_API.png

I have mbedtls enabled and tried to build the SDK, but crypto_sizes.h doesn't have these macro definitions.
Why is no define?

Labels (1)
Tags (3)
0 Kudos
Reply
1 Solution
816 Views
FelipeGarcia
NXP Employee
NXP Employee

Hi Shinji,

According to the same document you are referring those macros were added in 1.0 beta 3 version. You can see this in the C.1.2 Changes between 1.0 beta 3 and 1.0.0 section of the document.

Our latest SDK is using Platform Security Architecture APIs Version 1.0 so these new macros are still not reflected in our drivers.

Best regards,

Felipe

-------------------------------------------------------------------------------

Note:

- If this post answers your question, please click the "Mark Correct"button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored. Please open a new thread and refer to the closed one, if you have a related question at a later point in time. 

------------------------------------------------------------------------------ 

View solution in original post

0 Kudos
Reply
2 Replies
809 Views
ShinjiOhishi
Contributor II

Hi, Felipe Garcia.
Thank you for answering.

0 Kudos
Reply
817 Views
FelipeGarcia
NXP Employee
NXP Employee

Hi Shinji,

According to the same document you are referring those macros were added in 1.0 beta 3 version. You can see this in the C.1.2 Changes between 1.0 beta 3 and 1.0.0 section of the document.

Our latest SDK is using Platform Security Architecture APIs Version 1.0 so these new macros are still not reflected in our drivers.

Best regards,

Felipe

-------------------------------------------------------------------------------

Note:

- If this post answers your question, please click the "Mark Correct"button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored. Please open a new thread and refer to the closed one, if you have a related question at a later point in time. 

------------------------------------------------------------------------------ 

0 Kudos
Reply