cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
pinkesh25gar
Visitor
Visitor
339 Views
Registered: ‎07-15-2021

Unable to encrypt decrypt data with XilSecure library

Hello,  

Currently We are trying to execute  xilsecure_simple_aes_example.c example from the link as given below : 

https://github.com/Xilinx/embeddedsw/blob/master/lib/sw_services/xilsecure/examples/xilsecure_simple_aes_example.c

Custom board is based on ZynqMp Ultrascale+ MPSoC architecture.

However, I am getting only zero values after encryption and decryption process.

I have used XSECURE_CSU_AES_KEY_SRC_KUP argument as key source.

pinkesh25gar_0-1626356805257.png

Does anybody know what could be the reason why I am getting these values.

0 Kudos
2 Replies
savula
Moderator
Moderator
214 Views
Registered: ‎10-30-2017

Hi @pinkesh25gar ,

which version of tools you are using to validate the AES example?

also check with this example once: https://github.com/Xilinx/embeddedsw/blob/master/lib/sw_services/xilsecure/examples/xilsecure_aes_example.c

Best Regards,

Srikanth

0 Kudos
pinkesh25gar
Visitor
Visitor
183 Views
Registered: ‎07-15-2021

Hello, We have integrated xilsecure_v4_0 library to run this example and using Xilinx SDK 2019.1.

Is there any specific memory requirement to run this example.

If buffer/string stored into TCM memory location, then AES engine will work or not ?

Because when we are running xilsecure simple aes example as standalone project, example is working as expected and EncData and DecData location is DDR memory.

But with our project workspace, these buffers are stored into TCM memory and it is not working.

0 Kudos