-
Notifications
You must be signed in to change notification settings - Fork 104
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
Add wolfcrypt xmss and lms support. #429
Conversation
b2bd8ab
to
aa6707f
Compare
@philljj wolfSSL/wolfssl#7500 was merged, please update submodule |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wolfSSL/wolfssl#7500 is now merged in, please update submodule + add tests for SIGN=LMS/XMSS accordingly.
@@ -20,6 +20,9 @@ quit_renode() { | |||
|
|||
rm -f $RENODE_UART | |||
|
|||
# | |||
# LMS and ext_LMS | |||
# | |||
if (echo $TEST_OPTIONS | grep "LMS" &>/dev/null); then | |||
# Need git. | |||
apt install -y git |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now useless, we just want to follow the "latest merged" version in this test so all the test results having the same codebase.
Please remove
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's cleaned up now. Only does minimal steps to add & prep the external libs.
22308c9
to
711ce0d
Compare
711ce0d
to
2b6cd4d
Compare
Well done! Thanks @philljj |
Description
Adds wolfcrypt xmss (wc_xmss) and lms (wc_lms) support to wolfboot. This uses the more performant implementations in
wolfcrypt/src/wc_xmss.c
,wolfcrypt/src/wc_xmss_impl.c
,wolfcrypt/src/wc_lms.c
, andwolfcrypt/src/wc_lms_impl.c
.The previous sign methods
XMSS
,LMS
were renamed toext_XMSS
,ext_LMS
to signify external 3rd party xmss, lms integration.Going forward,
XMSS
andLMS
will indicate the wolfcrypt implementations for XMSS and LMS.The ext_xmss/ext_lms support will be kept for now, for backwards compatibility and interop testing.
Testing
Updated our renode github workflow to test LMS, XMSS, ext_LMS, ext_XMSS.
Updated our stm32 lms test to use LMS (not ext_LMS), and cleaned up some unnecessary hash-sigs steps.
Tested these combinations with sim-config:
Also tested nrf52 renode with wc_xmss, ext_xmss, wc_lms, and ext_lms.
Docs
Updated the docs/PQ.md and docs/Signing.md.
Notes
Requires these PRs to work: