MX6ul optee CAAM driver for encryption not giving consistent results

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MX6ul optee CAAM driver for encryption not giving consistent results

ソリューションへジャンプ
1,724件の閲覧回数
asmaa
Contributor V

Hello Everyone,

I am using imx6ul optee caam driver for crypto stuff in my project.
For testing , I am sending 8 bytes of data and 8 bytes of key as input, encryption algo as DES_ECB_NOPAD.

Function sequence I am calling is :

  1. crypto_cipher_alloc_ctx -------> do_allocate(caam_cipher.c)
  2. crypto_cipher_init --------> do_init (caam_cipher.c)
  3. crypto_cipher_update -----> do_update (caam_cipher.c)
  4. crypto_cipher_free_ctx ----->do_free (caam_cipher.c)

The problem I am facing is, I dont get consistent result, i.e sometimes I get encrypted ouput (1 out of 4 run) and sometimes instead of 0's (3 out of 4).

Is there anything I have to take care for Initialisation? Or I have to wait for any signal for encryption to complete.

I appreciate any help, any kind of pointers to search for.

Regards,
Asma

ラベル(1)
タグ(2)
0 件の賞賛
返信
1 解決策
1,626件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Asma

additional document was sent via mail.

Best regards
igor

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,626件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Asma

one can try to rebuild all image from scratch, use nxp software described on

i.MX Software and Development Tools | NXP 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信
1,626件の閲覧回数
asmaa
Contributor V

Hi igorpadykov‌,

I am pretty sure my setup is done very well including optee with imx6ul, because I have wriiten trusted application and other stuffs which are working.

What I am trying to achieve is enabled CAAM in optee. I have done most of the configuration like:

setting CFG_IMX_CAAM =y

CFG_IMXCRYPT ?= y

Other than this do I need to set anything else to make CAAM cipher work correctly in Optee?

Are there any steps you can provide me to enable CAAM in optee?

Regards,

Asma

0 件の賞賛
返信
1,627件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Asma

additional document was sent via mail.

Best regards
igor

0 件の賞賛
返信