macro definition for encrypt API

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

macro definition for encrypt API

跳至解决方案
799 次查看
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?

标签 (1)
标记 (3)
0 项奖励
回复
1 解答
785 次查看
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 项奖励
回复
2 回复数
778 次查看
ShinjiOhishi
Contributor II

Hi, Felipe Garcia.
Thank you for answering.

0 项奖励
回复
786 次查看
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 项奖励
回复