Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@bigbrett
Copy link
Contributor

Adds DMA support for CMAC. Can be used via ANY of wolfCrypt's CMAC APIs that accept a devId.

Passes wolfHSM and wolfCrypt tests on both POSIX sim and TC3xx.

A bit of a noisy diff, as I ran clang-format on some bigger blocks of code.

Future work:

  • Overhaul existing non-DMA CMAC, specifically pushing state storage back to the client
  • Remove all 32/64 bit public DMA APIs and replace with 64-bit messages only

Copy link
Contributor

@billphipps billphipps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent that you were able to put this together so quickly, but I think we need to clean up the CMAC state handling by passing the necessary contents instead of the whole struct.

billphipps
billphipps previously approved these changes Mar 31, 2025
Copy link
Contributor

@billphipps billphipps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lemme know if you need to remove the dead code I noted. Ok if you want to keep it since you are adding more stuff in the future.

@billphipps billphipps merged commit 84cfccf into wolfSSL:main Mar 31, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants