-
Notifications
You must be signed in to change notification settings - Fork 841
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
LMS: SHA-256/192 parameters #8014
Conversation
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.
clang-tidy
would like a word...
repro locally with ../testing/git-hooks/wolfssl-multi-test.sh --verbose-analyzers --enable-git-blame --no-result-cache --test-uncommitted quantum-safe-wolfssl-all-clang-tidy
[quantum-safe-wolfssl-all-clang-tidy] [8 of 22] [a57990b49d]
configure... real 0m26.616s user 0m11.851s sys 0m16.627s
build...a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 197) (LMS_Q_LEN + hLen + LMS_I_LEN)
./wolfssl/wolfcrypt/wc_lms.h:197:18: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
197 | (LMS_Q_LEN + hLen + LMS_I_LEN)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 200) (LMS_TYPE_LEN + LMS_TYPE_LEN + LMS_I_LEN + hLen)
./wolfssl/wolfcrypt/wc_lms.h:200:48: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
200 | (LMS_TYPE_LEN + LMS_TYPE_LEN + LMS_I_LEN + hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 204) (LMS_Q_LEN + LMS_TYPE_LEN + hLen + (p) * hLen + LMS_TYPE_LEN + (h) * hLen)
./wolfssl/wolfcrypt/wc_lms.h:204:33: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
204 | (LMS_Q_LEN + LMS_TYPE_LEN + hLen + (p) * hLen + LMS_TYPE_LEN + (h) * hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 204) (LMS_Q_LEN + LMS_TYPE_LEN + hLen + (p) * hLen + LMS_TYPE_LEN + (h) * hLen)
./wolfssl/wolfcrypt/wc_lms.h:204:46: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
204 | (LMS_Q_LEN + LMS_TYPE_LEN + hLen + (p) * hLen + LMS_TYPE_LEN + (h) * hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 204) (LMS_Q_LEN + LMS_TYPE_LEN + hLen + (p) * hLen + LMS_TYPE_LEN + (h) * hLen)
./wolfssl/wolfcrypt/wc_lms.h:204:74: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
204 | (LMS_Q_LEN + LMS_TYPE_LEN + hLen + (p) * hLen + LMS_TYPE_LEN + (h) * hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 210) (HSS_Q_LEN + HSS_PRIV_KEY_PARAM_SET_LEN + hLen + LMS_I_LEN)
./wolfssl/wolfcrypt/wc_lms.h:210:47: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
210 | (HSS_Q_LEN + HSS_PRIV_KEY_PARAM_SET_LEN + hLen + LMS_I_LEN)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 236) (((h) + 1) * hLen)
./wolfssl/wolfcrypt/wc_lms.h:236:19: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
236 | (((h) + 1) * hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 240) (((1 << (rl)) - 1) * hLen)
./wolfssl/wolfcrypt/wc_lms.h:240:26: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
240 | (((1 << (rl)) - 1) * hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 244) ((1 << (cb)) * hLen)
./wolfssl/wolfcrypt/wc_lms.h:244:20: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
244 | ((1 << (cb)) * hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 255) (((h) * hLen) + \
./wolfssl/wolfcrypt/wc_lms.h:255:13: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
255 | (((h) * hLen) + \
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 281) (hLen + (p) * hLen)
./wolfssl/wolfcrypt/wc_lms.h:281:10: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
281 | (hLen + (p) * hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 281) (hLen + (p) * hLen)
./wolfssl/wolfcrypt/wc_lms.h:281:23: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
281 | (hLen + (p) * hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 284) (((l) - 1) * (hLen + (p) * hLen))
./wolfssl/wolfcrypt/wc_lms.h:284:23: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
284 | (((l) - 1) * (hLen + (p) * hLen))
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 284) (((l) - 1) * (hLen + (p) * hLen))
./wolfssl/wolfcrypt/wc_lms.h:284:36: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
284 | (((l) - 1) * (hLen + (p) * hLen))
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 46) (8 * hLen / (w))
/tmp/tmp.4346_11739/wolfssl_test_workdir.26271/wolfssl/wolfcrypt/src/wc_lms.c:46:10: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
46 | (8 * hLen / (w))
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 75) (4 + (l) * (4 + 4 + 4 + hLen * (1 + (p) + (h))) + \
/tmp/tmp.4346_11739/wolfssl_test_workdir.26271/wolfssl/wolfcrypt/src/wc_lms.c:75:29: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
75 | (4 + (l) * (4 + 4 + 4 + hLen * (1 + (p) + (h))) + \
| ^
| ( )
Suppressed 28 warnings (28 in non-user code).
make[2]: *** [Makefile:8032: wolfcrypt/src/src_libwolfssl_la-wc_lms.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 197) (LMS_Q_LEN + hLen + LMS_I_LEN)
./wolfssl/wolfcrypt/wc_lms.h:197:18: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
197 | (LMS_Q_LEN + hLen + LMS_I_LEN)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 200) (LMS_TYPE_LEN + LMS_TYPE_LEN + LMS_I_LEN + hLen)
./wolfssl/wolfcrypt/wc_lms.h:200:48: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
200 | (LMS_TYPE_LEN + LMS_TYPE_LEN + LMS_I_LEN + hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 204) (LMS_Q_LEN + LMS_TYPE_LEN + hLen + (p) * hLen + LMS_TYPE_LEN + (h) * hLen)
./wolfssl/wolfcrypt/wc_lms.h:204:33: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
204 | (LMS_Q_LEN + LMS_TYPE_LEN + hLen + (p) * hLen + LMS_TYPE_LEN + (h) * hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 204) (LMS_Q_LEN + LMS_TYPE_LEN + hLen + (p) * hLen + LMS_TYPE_LEN + (h) * hLen)
./wolfssl/wolfcrypt/wc_lms.h:204:46: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
204 | (LMS_Q_LEN + LMS_TYPE_LEN + hLen + (p) * hLen + LMS_TYPE_LEN + (h) * hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 204) (LMS_Q_LEN + LMS_TYPE_LEN + hLen + (p) * hLen + LMS_TYPE_LEN + (h) * hLen)
./wolfssl/wolfcrypt/wc_lms.h:204:74: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
204 | (LMS_Q_LEN + LMS_TYPE_LEN + hLen + (p) * hLen + LMS_TYPE_LEN + (h) * hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 210) (HSS_Q_LEN + HSS_PRIV_KEY_PARAM_SET_LEN + hLen + LMS_I_LEN)
./wolfssl/wolfcrypt/wc_lms.h:210:47: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
210 | (HSS_Q_LEN + HSS_PRIV_KEY_PARAM_SET_LEN + hLen + LMS_I_LEN)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 236) (((h) + 1) * hLen)
./wolfssl/wolfcrypt/wc_lms.h:236:19: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
236 | (((h) + 1) * hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 240) (((1 << (rl)) - 1) * hLen)
./wolfssl/wolfcrypt/wc_lms.h:240:26: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
240 | (((1 << (rl)) - 1) * hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 244) ((1 << (cb)) * hLen)
./wolfssl/wolfcrypt/wc_lms.h:244:20: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
244 | ((1 << (cb)) * hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 255) (((h) * hLen) + \
./wolfssl/wolfcrypt/wc_lms.h:255:13: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
255 | (((h) * hLen) + \
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 281) (hLen + (p) * hLen)
./wolfssl/wolfcrypt/wc_lms.h:281:10: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
281 | (hLen + (p) * hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 281) (hLen + (p) * hLen)
./wolfssl/wolfcrypt/wc_lms.h:281:23: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
281 | (hLen + (p) * hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 284) (((l) - 1) * (hLen + (p) * hLen))
./wolfssl/wolfcrypt/wc_lms.h:284:23: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
284 | (((l) - 1) * (hLen + (p) * hLen))
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 284) (((l) - 1) * (hLen + (p) * hLen))
./wolfssl/wolfcrypt/wc_lms.h:284:36: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
284 | (((l) - 1) * (hLen + (p) * hLen))
| ^
| ( )
Suppressed 59 warnings (28 in non-user code, 31 NOLINT).
make[2]: *** [Makefile:7175: wolfcrypt/benchmark/benchmark.o] Error 1
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 197) (LMS_Q_LEN + hLen + LMS_I_LEN)
./wolfssl/wolfcrypt/wc_lms.h:197:18: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
197 | (LMS_Q_LEN + hLen + LMS_I_LEN)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 200) (LMS_TYPE_LEN + LMS_TYPE_LEN + LMS_I_LEN + hLen)
./wolfssl/wolfcrypt/wc_lms.h:200:48: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
200 | (LMS_TYPE_LEN + LMS_TYPE_LEN + LMS_I_LEN + hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 204) (LMS_Q_LEN + LMS_TYPE_LEN + hLen + (p) * hLen + LMS_TYPE_LEN + (h) * hLen)
./wolfssl/wolfcrypt/wc_lms.h:204:33: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
204 | (LMS_Q_LEN + LMS_TYPE_LEN + hLen + (p) * hLen + LMS_TYPE_LEN + (h) * hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 204) (LMS_Q_LEN + LMS_TYPE_LEN + hLen + (p) * hLen + LMS_TYPE_LEN + (h) * hLen)
./wolfssl/wolfcrypt/wc_lms.h:204:46: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
204 | (LMS_Q_LEN + LMS_TYPE_LEN + hLen + (p) * hLen + LMS_TYPE_LEN + (h) * hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 204) (LMS_Q_LEN + LMS_TYPE_LEN + hLen + (p) * hLen + LMS_TYPE_LEN + (h) * hLen)
./wolfssl/wolfcrypt/wc_lms.h:204:74: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
204 | (LMS_Q_LEN + LMS_TYPE_LEN + hLen + (p) * hLen + LMS_TYPE_LEN + (h) * hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 210) (HSS_Q_LEN + HSS_PRIV_KEY_PARAM_SET_LEN + hLen + LMS_I_LEN)
./wolfssl/wolfcrypt/wc_lms.h:210:47: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
210 | (HSS_Q_LEN + HSS_PRIV_KEY_PARAM_SET_LEN + hLen + LMS_I_LEN)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 236) (((h) + 1) * hLen)
./wolfssl/wolfcrypt/wc_lms.h:236:19: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
236 | (((h) + 1) * hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 240) (((1 << (rl)) - 1) * hLen)
./wolfssl/wolfcrypt/wc_lms.h:240:26: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
240 | (((1 << (rl)) - 1) * hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 244) ((1 << (cb)) * hLen)
./wolfssl/wolfcrypt/wc_lms.h:244:20: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
244 | ((1 << (cb)) * hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 255) (((h) * hLen) + \
./wolfssl/wolfcrypt/wc_lms.h:255:13: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
255 | (((h) * hLen) + \
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 281) (hLen + (p) * hLen)
./wolfssl/wolfcrypt/wc_lms.h:281:10: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
281 | (hLen + (p) * hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 281) (hLen + (p) * hLen)
./wolfssl/wolfcrypt/wc_lms.h:281:23: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
281 | (hLen + (p) * hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 284) (((l) - 1) * (hLen + (p) * hLen))
./wolfssl/wolfcrypt/wc_lms.h:284:23: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
284 | (((l) - 1) * (hLen + (p) * hLen))
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 284) (((l) - 1) * (hLen + (p) * hLen))
./wolfssl/wolfcrypt/wc_lms.h:284:36: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
284 | (((l) - 1) * (hLen + (p) * hLen))
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 84) (LMS_I_LEN + LMS_R_LEN + LMS_D_LEN + hLen)
/tmp/tmp.4346_11739/wolfssl_test_workdir.26271/wolfssl/wolfcrypt/src/wc_lms_impl.c:84:42: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
84 | (LMS_I_LEN + LMS_R_LEN + LMS_D_LEN + hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 89) (LMS_I_LEN + LMS_R_LEN + LMS_D_LEN + 2 * hLen)
/tmp/tmp.4346_11739/wolfssl_test_workdir.26271/wolfssl/wolfcrypt/src/wc_lms_impl.c:89:46: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
89 | (LMS_I_LEN + LMS_R_LEN + LMS_D_LEN + 2 * hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 94) (LMS_I_LEN + LMS_Q_LEN + LMS_P_LEN + LMS_W_LEN + hLen)
/tmp/tmp.4346_11739/wolfssl_test_workdir.26271/wolfssl/wolfcrypt/src/wc_lms_impl.c:94:54: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
94 | (LMS_I_LEN + LMS_Q_LEN + LMS_P_LEN + LMS_W_LEN + hLen)
| ^
| ( )
Suppressed 28 warnings (28 in non-user code).
make[2]: *** [Makefile:8039: wolfcrypt/src/src_libwolfssl_la-wc_lms_impl.lo] Error 1
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 197) (LMS_Q_LEN + hLen + LMS_I_LEN)
./wolfssl/wolfcrypt/wc_lms.h:197:18: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
197 | (LMS_Q_LEN + hLen + LMS_I_LEN)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 200) (LMS_TYPE_LEN + LMS_TYPE_LEN + LMS_I_LEN + hLen)
./wolfssl/wolfcrypt/wc_lms.h:200:48: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
200 | (LMS_TYPE_LEN + LMS_TYPE_LEN + LMS_I_LEN + hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 204) (LMS_Q_LEN + LMS_TYPE_LEN + hLen + (p) * hLen + LMS_TYPE_LEN + (h) * hLen)
./wolfssl/wolfcrypt/wc_lms.h:204:33: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
204 | (LMS_Q_LEN + LMS_TYPE_LEN + hLen + (p) * hLen + LMS_TYPE_LEN + (h) * hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 204) (LMS_Q_LEN + LMS_TYPE_LEN + hLen + (p) * hLen + LMS_TYPE_LEN + (h) * hLen)
./wolfssl/wolfcrypt/wc_lms.h:204:46: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
204 | (LMS_Q_LEN + LMS_TYPE_LEN + hLen + (p) * hLen + LMS_TYPE_LEN + (h) * hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 204) (LMS_Q_LEN + LMS_TYPE_LEN + hLen + (p) * hLen + LMS_TYPE_LEN + (h) * hLen)
./wolfssl/wolfcrypt/wc_lms.h:204:74: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
204 | (LMS_Q_LEN + LMS_TYPE_LEN + hLen + (p) * hLen + LMS_TYPE_LEN + (h) * hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 210) (HSS_Q_LEN + HSS_PRIV_KEY_PARAM_SET_LEN + hLen + LMS_I_LEN)
./wolfssl/wolfcrypt/wc_lms.h:210:47: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
210 | (HSS_Q_LEN + HSS_PRIV_KEY_PARAM_SET_LEN + hLen + LMS_I_LEN)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 236) (((h) + 1) * hLen)
./wolfssl/wolfcrypt/wc_lms.h:236:19: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
236 | (((h) + 1) * hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 240) (((1 << (rl)) - 1) * hLen)
./wolfssl/wolfcrypt/wc_lms.h:240:26: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
240 | (((1 << (rl)) - 1) * hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 244) ((1 << (cb)) * hLen)
./wolfssl/wolfcrypt/wc_lms.h:244:20: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
244 | ((1 << (cb)) * hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 255) (((h) * hLen) + \
./wolfssl/wolfcrypt/wc_lms.h:255:13: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
255 | (((h) * hLen) + \
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 281) (hLen + (p) * hLen)
./wolfssl/wolfcrypt/wc_lms.h:281:10: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
281 | (hLen + (p) * hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 281) (hLen + (p) * hLen)
./wolfssl/wolfcrypt/wc_lms.h:281:23: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
281 | (hLen + (p) * hLen)
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 284) (((l) - 1) * (hLen + (p) * hLen))
./wolfssl/wolfcrypt/wc_lms.h:284:23: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
284 | (((l) - 1) * (hLen + (p) * hLen))
| ^
| ( )
a57990b49d (<[email protected]> 2024-09-24 22:06:34 +1000 284) (((l) - 1) * (hLen + (p) * hLen))
./wolfssl/wolfcrypt/wc_lms.h:284:36: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
284 | (((l) - 1) * (hLen + (p) * hLen))
| ^
| ( )
Suppressed 38 warnings (29 in non-user code, 9 NOLINT).
80b0d1a
to
1b9d56e
Compare
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.
still some left to fix:
[quantum-safe-wolfssl-all-clang-tidy] [1 of 1] [98f1460b4a]
autogen.sh 98f1460b4a... real 0m17.554s user 0m15.562s sys 0m1.010s
configure... real 0m26.232s user 0m12.218s sys 0m15.668s
build...98f1460b4a (<[email protected]> 2024-09-24 22:06:34 +1000 197) (LMS_Q_LEN + hLen + LMS_I_LEN)
./wolfssl/wolfcrypt/wc_lms.h:197:18: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
197 | (LMS_Q_LEN + hLen + LMS_I_LEN)
| ^
| ( )
98f1460b4a (<[email protected]> 2024-09-24 22:06:34 +1000 46) (8 * hLen / (w))
/tmp/tmp.4346_11739/wolfssl_test_workdir.28346/wolfssl/wolfcrypt/src/wc_lms.c:46:10: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
46 | (8 * hLen / (w))
| ^
| ( )
98f1460b4a (<[email protected]> 2024-09-24 22:06:34 +1000 75) (4 + (l) * (4 + 4 + 4 + hLen * (1 + (p) + (h))) + \
/tmp/tmp.4346_11739/wolfssl_test_workdir.28346/wolfssl/wolfcrypt/src/wc_lms.c:75:29: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
75 | (4 + (l) * (4 + 4 + 4 + hLen * (1 + (p) + (h))) + \
| ^
| ( )
Suppressed 28 warnings (28 in non-user code).
make[2]: *** [Makefile:8032: wolfcrypt/src/src_libwolfssl_la-wc_lms.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
98f1460b4a (<[email protected]> 2024-09-24 22:06:34 +1000 197) (LMS_Q_LEN + hLen + LMS_I_LEN)
./wolfssl/wolfcrypt/wc_lms.h:197:18: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
197 | (LMS_Q_LEN + hLen + LMS_I_LEN)
| ^
| ( )
Suppressed 59 warnings (28 in non-user code, 31 NOLINT).
make[2]: *** [Makefile:7175: wolfcrypt/benchmark/benchmark.o] Error 1
98f1460b4a (<[email protected]> 2024-09-24 22:06:34 +1000 197) (LMS_Q_LEN + hLen + LMS_I_LEN)
./wolfssl/wolfcrypt/wc_lms.h:197:18: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
197 | (LMS_Q_LEN + hLen + LMS_I_LEN)
| ^
| ( )
98f1460b4a (<[email protected]> 2024-09-24 22:06:34 +1000 84) (LMS_I_LEN + LMS_R_LEN + LMS_D_LEN + hLen)
/tmp/tmp.4346_11739/wolfssl_test_workdir.28346/wolfssl/wolfcrypt/src/wc_lms_impl.c:84:42: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
84 | (LMS_I_LEN + LMS_R_LEN + LMS_D_LEN + hLen)
| ^
| ( )
98f1460b4a (<[email protected]> 2024-09-24 22:06:34 +1000 89) (LMS_I_LEN + LMS_R_LEN + LMS_D_LEN + 2 * hLen)
/tmp/tmp.4346_11739/wolfssl_test_workdir.28346/wolfssl/wolfcrypt/src/wc_lms_impl.c:89:46: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
89 | (LMS_I_LEN + LMS_R_LEN + LMS_D_LEN + 2 * hLen)
| ^
| ( )
98f1460b4a (<[email protected]> 2024-09-24 22:06:34 +1000 94) (LMS_I_LEN + LMS_Q_LEN + LMS_P_LEN + LMS_W_LEN + hLen)
/tmp/tmp.4346_11739/wolfssl_test_workdir.28346/wolfssl/wolfcrypt/src/wc_lms_impl.c:94:54: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
94 | (LMS_I_LEN + LMS_Q_LEN + LMS_P_LEN + LMS_W_LEN + hLen)
| ^
| ( )
Suppressed 28 warnings (28 in non-user code).
make[2]: *** [Makefile:8039: wolfcrypt/src/src_libwolfssl_la-wc_lms_impl.lo] Error 1
98f1460b4a (<[email protected]> 2024-09-24 22:06:34 +1000 197) (LMS_Q_LEN + hLen + LMS_I_LEN)
./wolfssl/wolfcrypt/wc_lms.h:197:18: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
197 | (LMS_Q_LEN + hLen + LMS_I_LEN)
| ^
| ( )
Suppressed 38 warnings (29 in non-user code, 9 NOLINT).
1b9d56e
to
36ce745
Compare
retest this please |
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.
[quantum-safe-wolfssl-all-clang-tidy] [1 of 1] [da732a0b1e]
autogen.sh da732a0b1e... real 0m17.137s user 0m15.101s sys 0m1.076s
configure... real 0m27.865s user 0m12.982s sys 0m16.609s
build...da732a0b1e (<[email protected]> 2024-09-24 22:06:34 +1000 46) (8 * hLen / (w))
/tmp/tmp.4346_11739/wolfssl_test_workdir.13907/wolfssl/wolfcrypt/src/wc_lms.c:46:10: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
46 | (8 * hLen / (w))
| ^
| ( )
da732a0b1e (<[email protected]> 2024-09-24 22:06:34 +1000 75) (4 + (l) * (4 + 4 + 4 + hLen * (1 + (p) + (h))) + \
/tmp/tmp.4346_11739/wolfssl_test_workdir.13907/wolfssl/wolfcrypt/src/wc_lms.c:75:29: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
75 | (4 + (l) * (4 + 4 + 4 + hLen * (1 + (p) + (h))) + \
| ^
| ( )
Suppressed 28 warnings (28 in non-user code).
make[2]: *** [Makefile:8032: wolfcrypt/src/src_libwolfssl_la-wc_lms.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
da732a0b1e (<[email protected]> 2024-09-24 22:06:34 +1000 84) (LMS_I_LEN + LMS_R_LEN + LMS_D_LEN + hLen)
/tmp/tmp.4346_11739/wolfssl_test_workdir.13907/wolfssl/wolfcrypt/src/wc_lms_impl.c:84:42: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
84 | (LMS_I_LEN + LMS_R_LEN + LMS_D_LEN + hLen)
| ^
| ( )
da732a0b1e (<[email protected]> 2024-09-24 22:06:34 +1000 89) (LMS_I_LEN + LMS_R_LEN + LMS_D_LEN + 2 * hLen)
/tmp/tmp.4346_11739/wolfssl_test_workdir.13907/wolfssl/wolfcrypt/src/wc_lms_impl.c:89:46: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
89 | (LMS_I_LEN + LMS_R_LEN + LMS_D_LEN + 2 * hLen)
| ^
| ( )
da732a0b1e (<[email protected]> 2024-09-24 22:06:34 +1000 94) (LMS_I_LEN + LMS_Q_LEN + LMS_P_LEN + LMS_W_LEN + hLen)
/tmp/tmp.4346_11739/wolfssl_test_workdir.13907/wolfssl/wolfcrypt/src/wc_lms_impl.c:94:54: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
94 | (LMS_I_LEN + LMS_Q_LEN + LMS_P_LEN + LMS_W_LEN + hLen)
| ^
| ( )
Suppressed 28 warnings (28 in non-user code).
36ce745
to
6e6e1ec
Compare
Quick points:
None of these are deal breakers. |
Hi @SparkiDev , Not sure how much work this would be, but could I request 1 more parameter set?
|
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.
[quantum-safe-wolfssl-all-clang-tidy] [1 of 1] [45b09c25c8]
autogen.sh 45b09c25c8... real 0m17.262s user 0m15.276s sys 0m1.061s
configure... real 0m27.254s user 0m12.664s sys 0m16.285s
build...45b09c25c8 (<[email protected]> 2024-09-24 22:06:34 +1000 84) (LMS_I_LEN + LMS_R_LEN + LMS_D_LEN + hLen)
/tmp/tmp.4346_11739/wolfssl_test_workdir.10083/wolfssl/wolfcrypt/src/wc_lms_impl.c:84:42: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
84 | (LMS_I_LEN + LMS_R_LEN + LMS_D_LEN + hLen)
| ^
| ( )
45b09c25c8 (<[email protected]> 2024-09-24 22:06:34 +1000 89) (LMS_I_LEN + LMS_R_LEN + LMS_D_LEN + 2 * hLen)
/tmp/tmp.4346_11739/wolfssl_test_workdir.10083/wolfssl/wolfcrypt/src/wc_lms_impl.c:89:46: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
89 | (LMS_I_LEN + LMS_R_LEN + LMS_D_LEN + 2 * hLen)
| ^
| ( )
45b09c25c8 (<[email protected]> 2024-09-24 22:06:34 +1000 94) (LMS_I_LEN + LMS_Q_LEN + LMS_P_LEN + LMS_W_LEN + hLen)
/tmp/tmp.4346_11739/wolfssl_test_workdir.10083/wolfssl/wolfcrypt/src/wc_lms_impl.c:94:54: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses]
94 | (LMS_I_LEN + LMS_Q_LEN + LMS_P_LEN + LMS_W_LEN + hLen)
| ^
| ( )
Suppressed 28 warnings (28 in non-user code).
6e6e1ec
to
ce51878
Compare
retest this please |
Note, still missing @anhu 's feature reqs -- don't merge yet. |
Add support for parameter sets with SHA-256/192.
ce51878
to
ae46f52
Compare
@anhu 's stuff to be addressed in followup PR(s). |
retest this please |
Description
Add support for parameter sets with SHA-256/192.
Testing
Regression tested LMS.
--enable-lms=sha256-192
--enable-lms=sha256-192,no-sha256-256
Checklist