-
Notifications
You must be signed in to change notification settings - Fork 91
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
oqs-provider with openssl speed command - unknown algorithm #385
Comments
This is close to impossible: Please ascertain that you have configured
|
UPDT: I tried the same procedure on Debian, and got the same error with unknown algorithm. Am I really doing the right thing? |
I think you do (the right thing). The only idea I have left is that you should try running a more recent openssl version: 3.0.2 has many problems wrt Providers... |
Yep, you're right. Upgrade to OpenSSL 3.2.1 helped. Thank you for effort :) |
Describe the bug
Cannot use the openssl speed command for postquantum algorithms supported via liboqs with oqs-provider.
To Reproduce
Steps to reproduce the behavior:
Have a fresh Ubuntu 22.04.3 LTS
liboqs
$ sudo apt install astyle cmake gcc ninja-build libssl-dev python3-pytest python3-pytest-xdist unzip xsltproc doxygen graphviz
python3-yaml valgrind
$ git clone -b main https://github.com/open-quantum-safe/liboqs.git
$ cd liboqs
$ mkdir build && cd build
$ cmake -GNinja ..
$ ninja
$ ninja install
oqs-provider
download and unzip latest version 0.5.3
$ cd into_oqs-provider_folder
$ scripts/fullbuild.sh
$ scripts/runtests.sh
$ cmake --install _build
edit the openssl.cnf file (https://github.com/open-quantum-safe/oqs-provider/blob/main/USAGE.md#activation, section
Configuration file)
$ openssl speed kyber512
Expected behavior
This set of commands should led to the benchmark of postquantum algorithms via openssl speed command.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
openssl version
OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)
openssl list -providers
providers:
default
name: OpenSSL Default Provider
version: 3.0.2
status: active
oqsprovider
name: OpenSSL OQS Provider
version: 0.5.3
status: active
the runtest.sh script output this:
Test setup:
LD_LIBRARY_PATH=/home/student/oqs-provider-0.5.3/.local/lib
OPENSSL_APP=openssl
OPENSSL_CONF=/home/student/oqs-provider-0.5.3/scripts/openssl-ca.cnf
OPENSSL_MODULES=/home/student/oqs-provider-0.5.3/_build/lib
Version information:
OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)
Providers:
default
name: OpenSSL Default Provider
version: 3.0.2
status: active
build info: 3.0.2
gettable provider parameters:
name: pointer to a UTF8 encoded string (arbitrary size)
version: pointer to a UTF8 encoded string (arbitrary size)
buildinfo: pointer to a UTF8 encoded string (arbitrary size)
status: integer (arbitrary size)
oqsprovider
name: OpenSSL OQS Provider
version: 0.5.3
status: active
build info: OQS Provider v.0.5.3 () based on liboqs v.0.10.1-dev
gettable provider parameters:
name: pointer to a UTF8 encoded string (arbitrary size)
version: pointer to a UTF8 encoded string (arbitrary size)
buildinfo: pointer to a UTF8 encoded string (arbitrary size)
status: integer (arbitrary size)
Cert gen/verify, CMS sign/verify, CA tests for all enabled OQS signature algorithms commencing:
.......................
External interop tests commencing
Cloudflare:
kex=X25519Kyber768Draft00
kex=X25519Kyber512Draft00
Test project /home/student/oqs-provider-0.5.3/_build
Start 1: oqs_signatures
1/5 Test #1: oqs_signatures ................... Passed 10.81 sec
Start 2: oqs_kems
2/5 Test #2: oqs_kems ......................... Passed 0.73 sec
Start 3: oqs_groups
3/5 Test #3: oqs_groups ....................... Passed 1.06 sec
Start 4: oqs_tlssig
4/5 Test #4: oqs_tlssig ....................... Passed 0.01 sec
Start 5: oqs_endecode
5/5 Test #5: oqs_endecode ..................... Passed 28.83 sec
100% tests passed, 0 tests failed out of 5
Total Test time (real) = 41.44 sec
All oqsprovider tests passed.
The text was updated successfully, but these errors were encountered: