From d34c6a829738fbad23a36904fdc379e897bdf9f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20=C5=A0imko?= Date: Tue, 9 May 2023 17:59:42 +0200 Subject: [PATCH] update readme --- README.md | 46 ++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 44 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fc90bec..14dbc52 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,49 @@ cd ./openssl/apps ### WINDOWS - testované na Windows 10.0.19043 -- tbd + +**1. Príprava prostredia + +Perl - stiahnutie Perl-u strawberry-perl-5.32.1.1-64bit zo stránky https://strawberryperl.com/ + +Cmake - stihnutie CMake-u cmake-3.26.3-windows-x86_64 zo stránky https://cmake.org/download/ + +Pridanie premenných prostredia: +``` +D:\Strawberry\perl\bin +D:\Program Files\CMake\bin +``` +pozn. v našom prípade premenná nepomohla a bolo nutné je nekonfigurovať manuálne v Powershelli príkazom +``` +$env:path += ";D:\Program Files\cmake\bin" +``` + +**2. Stiahnutie OpenSSL, Open Quantum Safe OpenSSL repozitáru a liboqs** +OpenSSL - stiahnutie OpenSSL 1.1.1t zo stránky - https://www.openssl.org/source/ +Stiahnutý súbor sme extrahovali do priečinka ProgramFiles a premenovali sme ho na openssl + +OpenSSL OQS - stiahnutie OQS OpenSSL repozitáru z GITu - https://github.com/open-quantum-safe/openssl/tree/OQS-OpenSSL_1_1_1-stable +Presun stiahnutých súborov do openssl priečinku + +Liboqs - stiahnutie súborov z GITu - https://github.com/open-quantum-safe/liboqs + +**3. Príprava liboqs +- prípade chyby prístupu pri príkaze cmake alebo ninja je potrebné spustiť PowerShell ako administrátor +``` +cd liboqs +mkdir build +cd build +cmake -GNinja -DCMAKE_INSTALL_PREFIX='D:\Program Files\openssl\openssl-OQS-OpenSSL_1_1_1-stable\oqs' .. +ninja +ninja install +``` + +**4. Build QS OpenSSL fork** +``` +cd ./openssl +perl Configure VC-WIN64A no-shared +!!!nmake +``` ## References -[Open quantum safe OpenSSL 1.1.1t](https://github.com/open-quantum-safe/openssl) \ No newline at end of file +[Open quantum safe OpenSSL 1.1.1t](https://github.com/open-quantum-safe/openssl)