From 1088bd6d0a5f1ee092916df87c0cff394b8a1ebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20=C5=A0imko?= Date: Sun, 14 Apr 2024 08:42:55 +0000 Subject: [PATCH] update readme --- OpenSSL_liboqs_oqsprovider/README.md | 30 ++++++++++++++++++---------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/OpenSSL_liboqs_oqsprovider/README.md b/OpenSSL_liboqs_oqsprovider/README.md index cc2880b..3b35417 100644 --- a/OpenSSL_liboqs_oqsprovider/README.md +++ b/OpenSSL_liboqs_oqsprovider/README.md @@ -13,7 +13,8 @@ Inštalované a testované na: Verzie testovaných knižníc: | OpenSSL | liboqs | oqs-provider | |:-----------------:|:---------------------------:|:------------------------------------------------:| -| 3.3.0 | 0.10.0 | 0.5.3 | +| 3.3.0 | 0.10.0 | 0.6.0* | +* experimentálne testované na Windows platforme, na Linuxe sa nám to nepodarilo otestovať (posledná funkčná verzia 0.5.4-dev) ### :exclamation: **OpenSSL 3.2 je minimálna verzia OpenSSL, ktorá umožňuje využívať PQ algoritmy pri komunikácii** :exclamation: @@ -23,8 +24,8 @@ Verzie testovaných knižníc: sudo apt install build-essential checkinstall -y wget https://github.com/openssl/openssl/releases/download/openssl-3.3.0/openssl-3.3.0.tar.gz -tar -xvf openssl-3.2.0.tar.gz -cd openssl-3.2.0 +tar -xvf openssl-3.3.0.tar.gz +cd openssl-3.3.0 ./Configure make sudo make install @@ -33,22 +34,25 @@ export PATH="/usr/local:$PATH" export LD_LIBRARY_PATH="/usr/local/lib64:$PATH" cd /etc/ld.so.conf.d/ -sudo touch openssl-3.2.0.conf -echo "/usr/local/lib64" | sudo tee -a openssl-3.2.0.conf +sudo touch openssl-3.3.0.conf +echo "/usr/local/lib64" | sudo tee -a openssl-3.3.0.conf sudo ldconfig -v sudo apt install --reinstall ca-certificates sudo update-ca-certificates -f +nano ~/.wgetrc +ca_certificate=/etc/ssl/certs/ca-certificates.crt ``` #### LIBOQS ``` sudo apt install astyle cmake ninja-build libssl-dev python3-pytest python3-pytest-xdist unzip xsltproc doxygen graphviz python3-yaml valgrind -y -git clone https://github.com/open-quantum-safe/liboqs.git -cd liboqs/ +wget https://github.com/open-quantum-safe/liboqs/archive/refs/tags/0.10.0.tar.gz +tar -xvf 0.10.0.tar.gz +cd cd liboqs-0.10.0 mkdir build && cd build -cmake -GNinja .. -DBUILD_SHARED_LIBS=ON -DOPENSSL_ROOT_DIR=/usr/local/lib64 -DOQS_ALGS_ENABLED=ALL +cmake -GNinja .. -DOPENSSL_ROOT_DIR=/usr/local/lib64 -DOQS_ALGS_ENABLED=ALL ninja sudo ninja install @@ -60,8 +64,10 @@ sudo ldconfig -v #### OQS PROVIDER ``` -git clone https://github.com/open-quantum-safe/oqs-provider.git -cd oqs-provider +wget https://github.com/open-quantum-safe/oqs-provider/archive/refs/tags/0.6.0.tar.gz +tar -xvf 0.6.0.tar.gz + +cd oqs-provider-0.6.0 cmake -S . -B _build -DOPENSSL_ROOT_DIR=/usr/local/lib64 -Dliboqs_DIR=/usr/local -DBUILD_SHARED_LIBS=ON cmake --build _build sudo cmake --install _build @@ -105,6 +111,8 @@ Providers: - nastaviť cestu k prekladaču môžeme aj úpravou premennej v príkazovom riadku príkazom `SET PATH=\path\;%PATH%`, napríklad `SET PATH=C:\mingw64\bin\;%PATH%` - v priečinku /bin/ sa nachádza aplikácia *mingw32-make.exe*, z ktorej si urobíme kópiu a premenujeme ju na *make.exe* +#### CMake +- ak z nejakého dôvodu nemôžeme použiť cmake priamo z WinLibs knižnice, tak ho môžeme stiahnuť z oficiálnej stránky - https://cmake.org/download/ #### OpenSSL (FireDaemon OpenSSL) - v našom prípade sme využívali predkompilovanú verziu OpenSSL zo stránky [FireDaemon OpenSSL](https://kb.firedaemon.com/support/solutions/articles/4000121705) @@ -168,7 +176,7 @@ Providers: status: active oqsprovider name: OpenSSL OQS Provider - version: 0.5.4-dev + version: 0.6.0 status: active ```