You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We no longer support the Dilithium AES variants (see #1417). While there are apparently still macros for DILITHIUM_USE_AES in the upstream code that we use to implement Dilithium, it is an unsupported build option for liboqs.
Getting error when trying to build liboqs for dilithium5 with -DDILITHIUM_USE_AES enabled.
To Reproduce
Steps to reproduce the behavior:
1. Modify src/sig/dilithium/CMakeLists.txt file to enable DILITHIUM_USE_AES
cmake -DCMAKE_INSTALL_PREFIX=$INSTALLDIR -S . -B _build -DBUILD_SHARED_LIBS=ON -DOPENSSL_ROOT_DIR=$OPENSSLINSTALL -DCMAKE_BUILD_TYPE=Debug
Error:
Scanning dependencies of target oqs
[ 94%] Building C object src/CMakeFiles/oqs.dir/kem/kem.c.o
[ 94%] Building C object src/CMakeFiles/oqs.dir/sig/sig.c.o
[ 95%] Linking C shared library ../lib/liboqs.so
[ 95%] Built target oqs
Scanning dependencies of target speed_sig
[ 95%] Building C object tests/CMakeFiles/speed_sig.dir/speed_sig.c.o
[ 96%] Linking C executable speed_sig
/usr/bin/ld: ../lib/liboqs.so.0.8.0-dev: undefined reference to
pqcrystals_dilithium5_ref_verify' /usr/bin/ld: ../lib/liboqs.so.0.8.0-dev: undefined reference to
pqcrystals_dilithium5_ref_keypair'/usr/bin/ld: ../lib/liboqs.so.0.8.0-dev: undefined reference to
pqcrystals_dilithium5aes_ref_dilithium_aes256ctr_init' /usr/bin/ld: ../lib/liboqs.so.0.8.0-dev: undefined reference to
pqcrystals_dilithium5_ref_signature'collect2: error: ld returned 1 exit status
make[2]: *** [tests/CMakeFiles/speed_sig.dir/build.make:85: tests/speed_sig] Error 1
make[1]: *** [CMakeFiles/Makefile2:1665: tests/CMakeFiles/speed_sig.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
liboqs - master-dev
openssl - 3.2-dev
Could you please help if I am doing it the right way, or am i missing something?
Thanks,
Kamlesh
The text was updated successfully, but these errors were encountered: