update rust server win
This commit is contained in:
parent
728cd3e1d4
commit
e0081979ab
58
README.md
58
README.md
@ -132,9 +132,10 @@ Výsledok je rovnaký
|
|||||||
|
|
||||||
## Building
|
## Building
|
||||||
### LINUX
|
### LINUX
|
||||||
Systémové špecifikácie:</br>
|
Systémové a softvérové špecifikácie:</br>
|
||||||
- Ubuntu 20.04.5
|
- Ubuntu 20.04.6 LTS (GNU/Linux 5.4.72-microsoft-standard-WSL2 x86_64)
|
||||||
- gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.2)
|
- gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.2)
|
||||||
|
- GNU Make 4.2.1 built for x86_64-pc-linux-gnu
|
||||||
- Rust version 1.72.1 (d5c2e9c34 2023-09-13) [update na 1.73.0 (cc66ad468 2023-10-03)]
|
- Rust version 1.72.1 (d5c2e9c34 2023-09-13) [update na 1.73.0 (cc66ad468 2023-10-03)]
|
||||||
- MIRACL core v4.1
|
- MIRACL core v4.1
|
||||||
- Python 3.8.10
|
- Python 3.8.10
|
||||||
@ -201,7 +202,8 @@ cp /core/cpp/core.a sal/miracl
|
|||||||
cp /core/cpp/*.h sal/miracl/includes
|
cp /core/cpp/*.h sal/miracl/includes
|
||||||
```
|
```
|
||||||
|
|
||||||
```cmake -DSAL=MIRACL_SODIUM -D CMAKE_CXX_COMPILER=/usr/bin/gcc
|
```
|
||||||
|
cmake -DSAL=MIRACL_SODIUM -D CMAKE_CXX_COMPILER=/usr/bin/gcc
|
||||||
cd CMakeFiles/client.dir
|
cd CMakeFiles/client.dir
|
||||||
nano link.txt
|
nano link.txt
|
||||||
```
|
```
|
||||||
@ -216,16 +218,60 @@ TODO:</br>
|
|||||||
:white_square_button: doplniť popis funkcií podporovaných klientom
|
:white_square_button: doplniť popis funkcií podporovaných klientom
|
||||||
|
|
||||||
### WINDOWS
|
### WINDOWS
|
||||||
Systémové špecifikácie:</br>
|
Systémové a softvérové špecifikácie:</br>
|
||||||
- Microsoft Windows 10 Home, build 10.0.19045
|
- Microsoft Windows 10 Home, build 10.0.19045
|
||||||
- gcc version 13.2.0 (MinGW-W64 x86_64-ucrt-posix-seh, built by Brecht Sanders)
|
- gcc version 13.2.0 (MinGW-W64 x86_64-ucrt-posix-seh, built by Brecht Sanders)
|
||||||
- Rust version 1.73.0
|
- Rust version 1.73.0
|
||||||
|
- Python 3.10.8
|
||||||
|
|
||||||
## Server
|
## Server
|
||||||
- tbd
|
https://www.python.org/downloads/windows/
|
||||||
|
- stiahnutie a inštalácia pythonu pre Windows - PATH je možné nastaviť priamo pri inštalácii (inak je nutné nastaviť ju manuálne)
|
||||||
|
- Python3 je tiež možné záskať z Microsoft Storu
|
||||||
|
|
||||||
|
https://github.com/miracl/core/archive/refs/heads/master.zip
|
||||||
|
- stiahnutie MIRACL knižnice (identická s verziou pre Linux, vrátane konfigurácie)
|
||||||
|
|
||||||
|
https://win.rustup.rs/
|
||||||
|
- stiahnutie .exe súboru na rýchlu inštaláciu Rustu a ďalších nástrojov
|
||||||
|
|
||||||
|
```
|
||||||
|
cd core/rust
|
||||||
|
python config64.py test
|
||||||
|
cd ../..
|
||||||
|
```
|
||||||
|
- auto-build MIRACL knižnice prostredníctvom python scriptu
|
||||||
|
|
||||||
|
```
|
||||||
|
cd .\TLS1.3\rust\server\
|
||||||
|
notepad.exe .\Cargo.toml
|
||||||
|
```
|
||||||
|
- v súbore Cargo.toml je nutné správne nalinkovať cestu k zložke *mcore*, ktorá vznikla auto-buildom MIRACL knižnice v predošlom kroku
|
||||||
|
|
||||||
|
```
|
||||||
|
cargo build
|
||||||
|
cargo run
|
||||||
|
```
|
||||||
|
- príkazy na kompiláciu serveru a jeho následné spustenie
|
||||||
|
- správne spustenie serveru môžeme overiť na adrese https://127.0.0.1:4433
|
||||||
|
|
||||||
|
## Client
|
||||||
|
|
||||||
|
```
|
||||||
|
cd core\cpp
|
||||||
|
python config64.py test
|
||||||
|
cd ../..
|
||||||
|
```
|
||||||
|
|
||||||
## References
|
## References
|
||||||
[Open quantum safe OpenSSL 1.1.1t](https://github.com/Crypto-TII/TLS1.3)
|
[Open quantum safe OpenSSL 1.1.1t](https://github.com/Crypto-TII/TLS1.3)
|
||||||
|
|
||||||
[MIRACL core](https://github.com/miracl/core)
|
[MIRACL core](https://github.com/miracl/core)
|
||||||
|
|
||||||
[libsodium](https://github.com/jedisct1/libsodium)
|
[libsodium](https://github.com/jedisct1/libsodium)
|
||||||
[WinLibs](https://winlibs.com/)
|
|
||||||
|
[WinLibs](https://winlibs.com/)
|
||||||
|
|
||||||
|
[Rust Cargo](https://doc.rust-lang.org/cargo/index.html)
|
||||||
|
|
||||||
|
[Python](https://www.python.org/)
|
Loading…
Reference in New Issue
Block a user