- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
could someone help me and describe how to initialize/use PSoC6 hardware crypto unit in AES GCM mode?
We would like to have encrypted file on external flash memory. The file will be read to RAM in chunks (around 256B).
Thank you
Ondrej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The Crypto driver provides support for only the following four AES encryption algorithms (ECB, CBC, CFB and CTR). You could use the CBC mode instead which is almost similar to GCM.
Please refer to the PDL documentation for the implementation details.
Regards,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for reply. But I would like to get an answer if it is possible to somehow use AES GCM with the PSoC6 (partly hw partly sw solution). We can use software crypto library if necessary.
Now we are using AES-GCM and we would like to reuse all the tooling we have.
Yes, AES CBC is very similar but still, we would like to use only one AES method, not two.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, it would not be possible because the source files for the Crypto block aren't exposed for modification. They are part of the Peripheral Driver Library. So you wouldn't be able to add your software crypto library to interact with the Crypto hardware block to make it work.
Regards,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was thinking to use HW AES CTR to decrypt and SW AES GMAC to verify whole image authenticity.
We are writing our DFU application and we are open to combine parts from PDL and register access.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We have forwarded your query to our product development team, who will evaluate your query. Thank you for your interest in Cypress products.
Regards,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you Dheeraj, I am looking forward to hearing from Cypress product development team.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Dheeraj,
How is evaluation going? I was wondering if a sniped of code is ready to try.
Regards
Ondrej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Ondrej,
This request will be made available with future releases of ModusToolbox. I will update the thread when the algorithm is supported.
Regards,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Dheeraj,
it is good news. Is there a possibility to get code sooner or contact on a person who is responsible (before ModusToolbox release)?
We can help with testing and evaluation. If no code will be available in a month we have to write AES GCM ourself.
Regards
Ondrej