Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating and adding new support for DES and AES-128 crypto with HW acceleration #286

Merged
merged 3 commits into from
Oct 19, 2020

Conversation

maxieds
Copy link
Contributor

@maxieds maxieds commented Oct 17, 2020

@david-oswald pointed out in issue 10 in this repo that it is better to code the AES crypto support using the AVR Xmega built-in hardware acceleration (in place of the previous software implementation). In making the revisions in this pull request, I updated the existing DES/3DES/2KTDEA support added by @dev-zzo and created the new AES-128 HW accelerated functionality based on source code samples from Microchip's ASF library for Xmega.

To test these routines, enable the following new settings flags in the Makefile:

#Enable tests for DES/2KTDEA/3DES/AES128 crypto schemes:
SETTINGS  += -DENABLE_CRYPTO_TESTS

#Enable a command to run any tests added by developers, e.g., the 
#crypto scheme tests that can be enabled above:
SETTINGS  += -DENABLE_RUNTESTS_TERMINAL_COMMAND

Then after recompiling and refreshing, the following command output of the new Chameleon terminal command RUNTESTS shows that the cryptographic routine test cases all pass:

RUNTESTS                                
101:OK WITH TEXT                        
All tests passed: 4 / 4.

Note that enabling the crypto tests brings in extra memory requirements, so make sure to remove that setting by default in the Makefile.

@fptrs fptrs merged commit 0169b36 into emsec:master Oct 19, 2020
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.

None yet

2 participants