liboqs icon indicating copy to clipboard operation
liboqs copied to clipboard

Many LMS variants disabled with -DOQS_ENABLE_SIG_STFL_LMS=ON

Open elGoonie opened this issue 9 months ago • 1 comments

Describe the bug I am trying to benchmark statefull hash-based signature schemes with the existing speed_sig_stfl benchmark. However, a lot of LMS-variants are disabled - even when using CMake options as described.

Expected behavior speed_sig_stfl should support all implemented LMS versions

Screenshots ./speed_sig_stfl --algs XMSS-SHA2_10_256 XMSS-SHA2_16_256 XMSS-SHA2_20_256 XMSS-SHAKE_10_256 XMSS-SHAKE_16_256 XMSS-SHAKE_20_256 XMSS-SHA2_10_512 XMSS-SHA2_16_512 XMSS-SHA2_20_512 XMSS-SHAKE_10_512 XMSS-SHAKE_16_512 XMSS-SHAKE_20_512 XMSS-SHA2_10_192 XMSS-SHA2_16_192 XMSS-SHA2_20_192 XMSS-SHAKE256_10_192 XMSS-SHAKE256_16_192 XMSS-SHAKE256_20_192 XMSS-SHAKE256_10_256 XMSS-SHAKE256_16_256 XMSS-SHAKE256_20_256 XMSSMT-SHA2_20/2_256 XMSSMT-SHA2_20/4_256 XMSSMT-SHA2_40/2_256 XMSSMT-SHA2_40/4_256 XMSSMT-SHA2_40/8_256 XMSSMT-SHA2_60/3_256 XMSSMT-SHA2_60/6_256 XMSSMT-SHA2_60/12_256 XMSSMT-SHAKE_20/2_256 XMSSMT-SHAKE_20/4_256 XMSSMT-SHAKE_40/2_256 XMSSMT-SHAKE_40/4_256 XMSSMT-SHAKE_40/8_256 XMSSMT-SHAKE_60/3_256 XMSSMT-SHAKE_60/6_256 XMSSMT-SHAKE_60/12_256 LMS_SHA256_H5_W1 LMS_SHA256_H5_W2 LMS_SHA256_H5_W4 LMS_SHA256_H5_W8 LMS_SHA256_H10_W1 LMS_SHA256_H10_W2 LMS_SHA256_H10_W4 LMS_SHA256_H10_W8 LMS_SHA256_H15_W1 LMS_SHA256_H15_W2 LMS_SHA256_H15_W4 LMS_SHA256_H15_W8 (disabled) LMS_SHA256_H20_W1 (disabled) LMS_SHA256_H20_W2 (disabled) LMS_SHA256_H20_W4 (disabled) LMS_SHA256_H20_W8 (disabled) LMS_SHA256_H25_W1 (disabled) LMS_SHA256_H25_W2 (disabled) LMS_SHA256_H25_W4 (disabled) LMS_SHA256_H25_W8 (disabled) LMS_SHA256_H5_W8_H5_W8 LMS_SHA256_H10_W4_H5_W8 LMS_SHA256_H10_W8_H5_W8 (disabled) LMS_SHA256_H10_W2_H10_W2 (disabled) LMS_SHA256_H10_W4_H10_W4 (disabled) LMS_SHA256_H10_W8_H10_W8 (disabled) LMS_SHA256_H15_W8_H5_W8 (disabled) LMS_SHA256_H15_W8_H10_W8 (disabled) LMS_SHA256_H15_W8_H15_W8 (disabled) LMS_SHA256_H20_W8_H5_W8 (disabled) LMS_SHA256_H20_W8_H10_W8 (disabled) LMS_SHA256_H20_W8_H15_W8 (disabled) LMS_SHA256_H20_W8_H20_W8 (disabled)

Environment (please complete the following information):

  • OS: Ubuntu Server 24.04.2 LTS
  • OpenSSL version: 3.0.13
  • Compiler version used: cc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
  • Build variables used: -GNinja -DOQS_ENABLE_SIG_STFL_XMSS=ON -DOQS_ENABLE_SIG_STFL_LMS=ON -DOQS_HAZARDOUS_EXPERIMENTAL_ENABLE_SIG_STFL_KEY_SIG_GEN=ON
  • liboqs version: main

Additional context

elGoonie avatar Apr 08 '25 16:04 elGoonie

Thanks for the report! Tagging @ashman-p and @cothan to see if this is expected behaviour.

SWilson4 avatar Apr 21 '25 13:04 SWilson4

@cothan can I ask whether this is still on your ToDo list or whether this issue should rather be tagged "Help Wanted"?

baentsch avatar Oct 29 '25 09:10 baentsch

@elGoonie Apologies for the long time it took us to respond to your report with a possible fix! Would you have time & interest to check that #2310 fixes the problem for you? Thanks to @ashman-p for making this available!

baentsch avatar Oct 30 '25 06:10 baentsch