Hi,
I am trying to Run AES using DMA.
I tried for last three days, but could not proceed further.
How I did?
1.I too sample code of DMA Memory to Memory from SDK
2.Added the AES header and Driver file in it.
3.Changed the AES configuration accordingly w.r.t DMA.
4.Then compiled and execute but code is stuck in while loop.
Please can anyone tell is this correct way of doing?
I read there are some trigger and input source for DMA request but couldn't find any example how to do it.
Can anyone share the pseudo code?
No I haven't used trigger source but yes I read about it in UM ,can you please tell me any reference in demo code for trigger source or do I have to create my own.
yes I am using AES module of LPC55s69.I am using software key for AES.
Hi Alice_Yang,
Thanks for your code suggestion.
The code which i shared is not complete.
I have completed the code now and could debug with breakpoint step by step also.
The DMA transfer is working fine but the encrypted data from the output/DIGEST register is coming incorrect.
I am having doubt in giving the user key that is userkey should be loaded after the DMA transfer or before transfer?
I am doing before DMA transfer.
please suggest if there is any other way for getting output/DIGEST register.
Note:I am just a beginner !
Hello Jgeorge,
Yes, giving user key before DMA transfer is no problem.
It seems your code disable the use key and other AES encrypt related code.
Recommend first development base on hashcypt demo under SDK, change it to your request, and confirm the AES work well , the DIGEST data is right. then add DMA request on it.
BR
Alice
Hi Alice_Yang,
Yes thanks for the information.
I have started exploring UART DMA code ,it's understandable now.
According to that only I am configuring for AES.
Sure I will share my complete code once I configure all the registers by tomorrow EOD.
Please see to it and looking forward for your feedback