update
This commit is contained in:
commit
9fe010bce5
26
.gitignore
vendored
Normal file
26
.gitignore
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
_minted*
|
||||
|
||||
*.acn
|
||||
*.acr
|
||||
*.alg
|
||||
*.aux
|
||||
*.bbl
|
||||
*.bcf
|
||||
*.blg
|
||||
*.fdb_latexmk
|
||||
*.fls
|
||||
*.glsdefs
|
||||
*.ist
|
||||
*.lof
|
||||
*.log
|
||||
*.lol
|
||||
*.lot
|
||||
*.out
|
||||
*.run.xml
|
||||
*.synctex.gz
|
||||
*.toc
|
||||
*.glg
|
||||
*.glo
|
||||
*.gls
|
||||
|
||||
|
21
README.md
Normal file
21
README.md
Normal file
@ -0,0 +1,21 @@
|
||||
# About
|
||||
|
||||
Šablóna bola prebraná od _KPI FEI TUKE_.
|
||||
|
||||
Pozor! Kódovanie všetkých dokumentov je nastavené na _UTF-8_! Nezabudnite si preto nastaviť aj svoje prostredie, v ktorom budete záverečnú prácu písať tak, aby toto kódovanie používalo!
|
||||
|
||||
|
||||
|
||||
## Compilation
|
||||
|
||||
Dokument vytvoríte napísaním nasledovného príkazu z príkazového riadku:
|
||||
|
||||
```bash
|
||||
compile_template.bat
|
||||
```
|
||||
|
||||
Spustením tohto príkazu dôjde k vytvoreniu výsledného dokumentu vo formáte _PDF_.
|
||||
|
||||
Projekt si samozrejme môžete otvoriť v ktoromkoľvek _LaTeX_ editore alebo IDE, ako je napr. _TeX Studio_
|
||||
|
||||
|
66
acronyms.tex
Normal file
66
acronyms.tex
Normal file
@ -0,0 +1,66 @@
|
||||
% Acronyms
|
||||
% ========
|
||||
%
|
||||
% An acronym is a word formed from the initial letters in a phrase.
|
||||
%
|
||||
% Acronym Definition Exapmle:
|
||||
% ---------------------------
|
||||
% \newacronym{gcd}{GCD}{Greatest Common Divisor}
|
||||
% \newacronym{dry}{DRY}{Don't Repeat Yourself}
|
||||
%
|
||||
% Usage:
|
||||
% ------
|
||||
% You can use these three options:
|
||||
%
|
||||
% \acrlong{}
|
||||
% Displays the phrase which the acronyms stands for. Put the label of the acronym inside the braces. In the example, \acrlong{gcd} prints Greatest Common Divisor.
|
||||
%
|
||||
% \acrshort{}
|
||||
% Prints the acronym whose label is passed as parameter. For instance, \acrshort{gcd} renders as GCD.
|
||||
%
|
||||
% \acrfull{ }
|
||||
% Prints both, the acronym and its definition. In the example the output of \acrfull{dry} is Don't Repeat Yourself (DRY).
|
||||
%
|
||||
% For more information see:
|
||||
% -------------------------
|
||||
% * https://www.sharelatex.com/learn/Glossaries
|
||||
% * https://en.wikibooks.org/wiki/LaTeX/Glossary
|
||||
%
|
||||
|
||||
|
||||
\newacronym{gcd}{GCD}{Greatest Common Divisor}
|
||||
\newacronym{lcm}{LCM}{Least Common Multiple}
|
||||
\newacronym{gcc}{GCC}{GNU Compiler Collection}
|
||||
\newacronym{sha}{SHA}{Secure Hash Algorithm}
|
||||
\newacronym{os}{OS}{Operating System}
|
||||
\newacronym{vm}{VM}{Virtual Machine}
|
||||
\newacronym{qpc}{QPC}{Query Performance Counter}
|
||||
\newacronym{qpf}{QPF}{Query Performance Frequency}
|
||||
\newacronym{anc}{ANC}{Average Number of Cycles}
|
||||
\newacronym{sts}{STS}{Statistical Test Suite}
|
||||
\newacronym{nist}{NIST}{National Institute of Standards and Technology}
|
||||
\newacronym{cpu}{CPU}{Central Processing Unit}
|
||||
\newacronym{tsc}{TSC}{Time Stamp Count}
|
||||
\newacronym{tpm}{TPM}{Trusted Platform Module}
|
||||
\newacronym{uefi}{UEFI}{Unified Extensible Firmware Interface}
|
||||
\newacronym{api}{API}{Application Programming Interface}
|
||||
\newacronym{cng}{CNG}{Cryptography API: Next Generation}
|
||||
\newacronym{csp}{CSP}{Cryptographic Service Provider}
|
||||
\newacronym{capi}{CAPI}{Cryptographic Application Programming Interface}
|
||||
\newacronym{cryptoapi}{CryptoAPI}{Cryptographic Application Programming Interface}
|
||||
\newacronym{rc}{RC}{Rivest Cipher}
|
||||
\newacronym{cv}{CV}{Critical Value}
|
||||
\newacronym{lfsr}{LFSR}{Linear-Feadback Shift Register}
|
||||
\newacronym{aes}{AES}{Advanced Encrytion Standard}
|
||||
\newacronym{dsa}{DSA}{Digital Signature Algorithm}
|
||||
\newacronym{tls}{TLS}{Transport Layer Security}
|
||||
\newacronym{rbg}{RBG}{Random Bit Generator}
|
||||
\newacronym{rng}{RNG}{Random Number Generator}
|
||||
\newacronym{drng}{DRNG}{Deterministic Random Number Generator}
|
||||
\newacronym{prng}{PRNG}{Pseudo-Random Number Generator}
|
||||
\newacronym{hrng}{HRNG}{Hardware Random Number Generator}
|
||||
\newacronym{trng}{TRNG}{True Random Number Generator}
|
||||
\newacronym{qrng}{QRNG}{Quantum Random Number Generator}
|
||||
\newacronym{bbs}{BBS}{Blum Blum Shub generator}
|
||||
\newacronym{csprng}{CSPRNG}{Crypographically Secure Random Number Generator}
|
||||
\newacronym{ndrng}{n-DRNG}{non-Deterministic Random Number Generator}
|
5
appendixes/BC_ZK/.gitignore
vendored
Normal file
5
appendixes/BC_ZK/.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
### VS Code ###
|
||||
.vscode/
|
||||
.vs/
|
||||
.*bin/
|
||||
.*exe/
|
200
appendixes/BC_ZK/README.md
Normal file
200
appendixes/BC_ZK/README.md
Normal file
@ -0,0 +1,200 @@
|
||||
# INFORMATIONS
|
||||
Organization: Technical University of Kosice (TUKE),
|
||||
|
||||
Department: Department of Electronics and Multimedia Telecommunications (DEMT/KEMT),
|
||||
|
||||
Faculties: Faculty of Electrical Engineering and Informatics (FEI),
|
||||
|
||||
Feld of study: Informatics,
|
||||
|
||||
Study program: Computer Networks,
|
||||
|
||||
School year: 3., Bachelor study, 2020/2021,
|
||||
|
||||
Author: Marek Rohac -- MR,
|
||||
|
||||
Compiler: Winlibs GCC -- MinGW-W64 x86_64-posix-seh, built by Brecht Sanders, v. 10.2.0,
|
||||
-- works also with v.11.1.0
|
||||
|
||||
Version: 1.3, 20.05.2021.
|
||||
# COMPILING
|
||||
## VIA MAKEFILE
|
||||
|
||||
For compiling all source codes i prepare makefile, so just use command:
|
||||
|
||||
```bash
|
||||
make all
|
||||
```
|
||||
That will create .exe files. For more details see makefile.
|
||||
|
||||
## SELECTIVE COMPILING
|
||||
|
||||
winAPIprng:
|
||||
```bash
|
||||
gcc winAPIprng.c -o winAPIprng -Wall -Wextra -Werror -g -std=c11 -lbcrypt
|
||||
```
|
||||
amdSPRNG:
|
||||
```bash
|
||||
gcc ./amdINC/secrng.c amdSPRNG.c -Wall -Wextra -Werror -g -I./amdINC -mrdrnd -mrdseed -o amdSPRNG -std=c11
|
||||
```
|
||||
opessl_rng:
|
||||
```bash
|
||||
gcc -o openssl_rng openssl_rng.c -Wall -Wextra -g -I./openssl/include -L./openssl/lib -llibcrypto
|
||||
```
|
||||
|
||||
## REMOVAL
|
||||
|
||||
For removing all executables and files which was generated by executions these programs use command:
|
||||
|
||||
```bash
|
||||
make clean
|
||||
```
|
||||
That remove all file with .exe , .bin and .txt suffixes
|
||||
|
||||
# USAGE
|
||||
NO INPUT PARAMATERS IN EACH CASE
|
||||
|
||||
## WINDOWS API PRNG - winAPIprng.c
|
||||
```c
|
||||
39 #define RNG_PER_CYKLE_BITS 268435456 //per API call output size
|
||||
41 #define RNG_CYCLES 1024 //total count of calls
|
||||
```
|
||||
|
||||
In macro RNG_PER_CYKLE_BITS define how much output in bits you want from one call of API and in RNG_CYCLES number of api calls.
|
||||
|
||||
Program generate output according APIs and save values to .bin files with name by current API.
|
||||
|
||||
If you want to generate with specific API, just comment all other functions im main().
|
||||
|
||||
### MEASURMENT
|
||||
For measurment of API i use function cpucyclesS() and cpucyclesE(). They returns numbers of cycles of current API.
|
||||
Speed or time of execution we then can calculate via formula:
|
||||
|
||||
Total_cpycycles_of_API * (1/Processor_ghz_during_execution_API) * 10^-9 = Time_of_executions s
|
||||
|
||||
On modern processors its hard to determine how much GHz was used during executions(power plans,turbo modes,...).
|
||||
Therefore i also implemented timer of execution, but keep in mind, it counts also with storing of random data.
|
||||
Results are store in Results.txt file.
|
||||
|
||||
### NOTE FOR MEASURMENT
|
||||
If you want better precision of Total execution time, don't save random data (comment function store_Data()).
|
||||
Also for absolutely same conditions for every api, you should wait certain time before calling next api.
|
||||
Reason is to give system time to retrieve respectively gain more data
|
||||
into entropy pool from system entropy sources. (1 hours to full regen).
|
||||
Also random data have much better quality after giving a time to regen entropy.
|
||||
|
||||
### TIME OF EXECUTIONS
|
||||
Time of executions of program strongly depend on your procesor and output size.
|
||||
If you don't want spend to much time lover RNG_OUTPUT_BITS (do it correctly).
|
||||
|
||||
WIN API for measurment is used via macros.
|
||||
Experimental time results on my computer (see SPEC),if you run all api
|
||||
in program with storing random data:
|
||||
|
||||
1,875GB output size --> CryptGenRandom --> EXECUTED in 1.752000 s
|
||||
BCryptGenRandom --> EXECUTED in 21.232000 s
|
||||
RtlGenRandom --> EXECUTED in 23.052000 s
|
||||
|
||||
SPEED OF EXECUTION IS ALSO INFLUENCED BY WRITING SPEED OF YOUR STORAGE DEVICE
|
||||
(In case store_Data() is enable)
|
||||
### NOTE FOR OUTPUT SIZE
|
||||
To count output size in GB use formula:
|
||||
|
||||
--> RNG_OUTPUT_BITS/RNG_PER_CYKLE_BITS/8/1000/1000 = output_size_in_GB
|
||||
|
||||
For faster execution downsize macros
|
||||
|
||||
## AMD SECURE PRNG - amdSPRNG.c
|
||||
Program use 4 AMD APIs (defined in secrng.h, realized in secrng.c)
|
||||
to generate random bytes:
|
||||
|
||||
```c
|
||||
is_RDRAND_supported();
|
||||
is_RDSEED_supported();
|
||||
get_rdseed_bytes_arr(unsigned char *rng_arr, unsigned int N, unsigned int retry_count)
|
||||
get_rdrand_bytes_arr(unsigned char *rng_arr, unsigned int N, unsigned int retry_count)
|
||||
```
|
||||
|
||||
Version of AMD libraries: 3.0 -- March, 2021
|
||||
|
||||
### DESCRIPTION
|
||||
In source code, amdSPRNG.c, macros
|
||||
|
||||
```c
|
||||
29 #define CYCLES 1000 // calls count
|
||||
31 #define N 625000 //per API call output size
|
||||
36 #define NT 10 //retry times
|
||||
```
|
||||
|
||||
N define how much random bytes you want per one generating of certain API.
|
||||
CYCLES defined how much times you want to repeat generating process of that API.
|
||||
|
||||
Program then generate output according APIs and save values
|
||||
to .bin files with name by current RD name.
|
||||
|
||||
IN CASE OF PRINTING FAILURE TO STDOUT, RAISE NT macro.
|
||||
Maximum of retry attempts is set in secrng.c,
|
||||
under MAX_RETRY_COUNT on 51 line. (equal 20, default 10).
|
||||
|
||||
For informations about file output size check NOTE FOR OUTPUT SIZE
|
||||
|
||||
### MEASURMENT
|
||||
Look on MEASURMENT in WINDOWS API PRNG.
|
||||
Results are store in RDResults.txt file.
|
||||
For better precision comment checking confition and storing data.
|
||||
NOTICE: NO REGEN TIME NEEDED FOR REGAINING ENTROPY CAUSE OF USING TRNG.
|
||||
|
||||
### TIME OF EXECUTIONS
|
||||
Look on TIME OF EXECUTION in WINDOWS API PRNG. Same principle.
|
||||
Note that these will take longer time to execute program.
|
||||
It depend on NT times, your processor and writing speed of storage device.
|
||||
|
||||
Experimental time results (same hardware & software like above):
|
||||
|
||||
0,625GB output size --> RDSEED --> EXECUTED in 319.976000 s
|
||||
RDRAND --> EXECUTED in 71.733000 s
|
||||
|
||||
### NOTE FOR OUTPUT SIZE
|
||||
To count output size in GB use formula:
|
||||
|
||||
--> N*CYCLES/1024/1024/1024 = output_size_in_GB
|
||||
|
||||
## OPENSSL RNG APIs 64-bit libraries used
|
||||
We implement 2 API --> RAND_bytes and RAND_priv_bytes. To right function don't remove libcrypto dll.
|
||||
|
||||
Metods implemented in winAPIprng are use there also.
|
||||
|
||||
Time of executions is litle bit longer than win api.
|
||||
|
||||
Results are available in Ossl_rng.txt
|
||||
|
||||
## !!ALWAYS CHECK OUTPUT IN TERMINAL!!
|
||||
## REFERENCIES
|
||||
AMD RNG API Libraries + examples
|
||||
|
||||
--> https://developer.amd.com/amd-aocl/rng-library/
|
||||
|
||||
WIN API Documentations:
|
||||
|
||||
Deprecated
|
||||
|
||||
CryptGenRandom() --> https://docs.microsoft.com/en-us/windows/win32/api/wincrypt/nf-wincrypt-cryptgenrandom
|
||||
RtlGenRandom() --> https://docs.microsoft.com/en-us/windows/win32/api/ntsecapi/nf-ntsecapi-rtlgenrandom
|
||||
|
||||
Currently supported:
|
||||
|
||||
BCryptGenRandom() --> https://docs.microsoft.com/en-us/windows/win32/api/bcrypt/nf-bcrypt-bcryptgenrandom
|
||||
rand_s() --> https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/rand-s?view=msvc-160
|
||||
|
||||
MEASURMENT FUNCTIONS:
|
||||
|
||||
--> https://github.com/newhopecrypto/newhope/tree/master/ref
|
||||
|
||||
WINLIBS GCC
|
||||
|
||||
--> http://winlibs.com/
|
||||
|
||||
OPENSSL LIBRARIES
|
||||
--> https://curl.se/windows/
|
||||
|
||||
(See specification--> OpenSSL )
|
@ -0,0 +1,5 @@
|
||||
BCRYPTGENRANDOM:
|
||||
TOTAL: 351728929362042
|
||||
MEDIAN: 14152 cpucycles
|
||||
AVERAGE: 15376 cpucycles
|
||||
EXECUTED in 0.005560 s
|
@ -0,0 +1,5 @@
|
||||
BCRYPTGENRANDOM:
|
||||
TOTAL: 15908646
|
||||
MEDIAN: 14413 cpucycles
|
||||
AVERAGE: 15535 cpucycles
|
||||
EXECUTED in 0.020745 s
|
@ -0,0 +1,5 @@
|
||||
BCRYPTGENRANDOM:
|
||||
TOTAL: 353413686857956
|
||||
MEDIAN: 16841895 cpucycles
|
||||
AVERAGE: 16905128 cpucycles
|
||||
EXECUTED in 5.981131 s
|
@ -0,0 +1,5 @@
|
||||
BCRYPTGENRANDOM:
|
||||
TOTAL: 17207170011
|
||||
MEDIAN: 16770294 cpucycles
|
||||
AVERAGE: 16803876 cpucycles
|
||||
EXECUTED in 236.919392 s
|
@ -0,0 +1,5 @@
|
||||
BCRYPTGENRANDOM:
|
||||
TOTAL: 353465842735148
|
||||
MEDIAN: 33795962 cpucycles
|
||||
AVERAGE: 33805640 cpucycles
|
||||
EXECUTED in 11.960016 s
|
@ -0,0 +1,5 @@
|
||||
BCRYPTGENRANDOM:
|
||||
TOTAL: 35903676270
|
||||
MEDIAN: 34962849 cpucycles
|
||||
AVERAGE: 35062183 cpucycles
|
||||
EXECUTED in 506.876314 s
|
@ -0,0 +1,5 @@
|
||||
BCRYPTGENRANDOM:
|
||||
TOTAL: 354194263018339
|
||||
MEDIAN: 4384924511 cpucycles
|
||||
AVERAGE: 4538998240 cpucycles
|
||||
EXECUTED in 12.544902 s
|
@ -0,0 +1,5 @@
|
||||
BCRYPTGENRANDOM:
|
||||
TOTAL: 36428953351
|
||||
MEDIAN: 4413695503 cpucycles
|
||||
AVERAGE: 4553619168 cpucycles
|
||||
EXECUTED in 568.900696 s
|
@ -0,0 +1,8 @@
|
||||
Program executed in: 0.005768 sec
|
||||
Program executed in: 568.923684 sec
|
||||
Program executed in: 5.981596 sec
|
||||
Program executed in: 11.960327 sec
|
||||
Program executed in: 237.135507 sec
|
||||
Program executed in: 12.545258 sec
|
||||
Program executed in: 0.021124 sec
|
||||
Program executed in: 506.884947 sec
|
@ -0,0 +1,5 @@
|
||||
CRYPTGENRANDOM:
|
||||
TOTAL: 427920212646658
|
||||
MEDIAN: 14123 cpucycles
|
||||
AVERAGE: 14242 cpucycles
|
||||
EXECUTED in 0.006430 s
|
@ -0,0 +1,5 @@
|
||||
CRYPTGENRANDOM:
|
||||
TOTAL: 14668142
|
||||
MEDIAN: 14297 cpucycles
|
||||
AVERAGE: 14324 cpucycles
|
||||
EXECUTED in 0.022011 s
|
@ -0,0 +1,5 @@
|
||||
CRYPTGENRANDOM:
|
||||
TOTAL: 429269681686586
|
||||
MEDIAN: 16846549 cpucycles
|
||||
AVERAGE: 16991496 cpucycles
|
||||
EXECUTED in 6.013020 s
|
@ -0,0 +1,5 @@
|
||||
CRYPTGENRANDOM:
|
||||
TOTAL: 17222880818
|
||||
MEDIAN: 16802078 cpucycles
|
||||
AVERAGE: 16819219 cpucycles
|
||||
EXECUTED in 143.722924 s
|
@ -0,0 +1,5 @@
|
||||
CRYPTGENRANDOM:
|
||||
TOTAL: 429321731814388
|
||||
MEDIAN: 33844145 cpucycles
|
||||
AVERAGE: 33795736 cpucycles
|
||||
EXECUTED in 11.957515 s
|
@ -0,0 +1,5 @@
|
||||
CRYPTGENRANDOM:
|
||||
TOTAL: 36006492460
|
||||
MEDIAN: 35043658 cpucycles
|
||||
AVERAGE: 35162590 cpucycles
|
||||
EXECUTED in 480.253462 s
|
@ -0,0 +1,5 @@
|
||||
CRYPTGENRANDOM:
|
||||
TOTAL: 532414047430171 cycles
|
||||
MEDIAN: 4387419019 cpucycles
|
||||
AVERAGE: 4525421725 cpucycles
|
||||
EXECUTED in 12.508601 s
|
@ -0,0 +1,15 @@
|
||||
CRYPTGENRANDOM:
|
||||
TOTAL: 36406937890
|
||||
MEDIAN: 4419715541 cpucycles
|
||||
AVERAGE: 4550867236 cpucycles
|
||||
EXECUTED in 452.834846 s
|
||||
CRYPTGENRANDOM:
|
||||
TOTAL: 429784731726421
|
||||
MEDIAN: 4399300884 cpucycles
|
||||
AVERAGE: 4549465733 cpucycles
|
||||
EXECUTED in 12.575383 s
|
||||
CRYPTGENRANDOM:
|
||||
TOTAL: 530824715197856
|
||||
MEDIAN: 4387175410 cpucycles
|
||||
AVERAGE: 4522845937 cpucycles
|
||||
EXECUTED in 12.503155 s
|
@ -0,0 +1,8 @@
|
||||
Program executed in: 0.006782 sec
|
||||
Program executed in: 452.847620 sec
|
||||
Program executed in: 6.013517 sec
|
||||
Program executed in: 11.957856 sec
|
||||
Program executed in: 143.925411 sec
|
||||
Program executed in: 12.575853 sec
|
||||
Program executed in: 0.022446 sec
|
||||
Program executed in: 480.273555 sec
|
@ -0,0 +1,12 @@
|
||||
Program executed in: 0.006494 sec
|
||||
Program executed in: 4.395181 sec
|
||||
Program executed in: 9.017962 sec
|
||||
Program executed in: 81.275666 sec
|
||||
Program executed in: 0.025332 sec
|
||||
Program executed in: 509.713512 sec
|
||||
Program executed in: 0.006442 sec
|
||||
Program executed in: 4.373279 sec
|
||||
Program executed in: 8.726330 sec
|
||||
Program executed in: 256.127341 sec
|
||||
Program executed in: 0.006070 sec
|
||||
Program executed in: 650.864632 sec
|
@ -0,0 +1,5 @@
|
||||
RAND_bytes:
|
||||
TOTAL: 533556892464975 cycles
|
||||
MEDIAN: 11107 cpucycles
|
||||
AVERAGE: 17119 cpucycles
|
||||
EXECUTED in 0.006175 s
|
@ -0,0 +1,5 @@
|
||||
RAND_bytes:
|
||||
TOTAL: 17589399 cycles
|
||||
MEDIAN: 11571 cpucycles
|
||||
AVERAGE: 17177 cpucycles
|
||||
EXECUTED in 0.024983 s
|
@ -0,0 +1,5 @@
|
||||
RAND_bytes:
|
||||
TOTAL: 533591169164094 cycles
|
||||
MEDIAN: 12318649 cpucycles
|
||||
AVERAGE: 12421245 cpucycles
|
||||
EXECUTED in 4.394644 s
|
@ -0,0 +1,5 @@
|
||||
RAND_bytes:
|
||||
TOTAL: 12674845014 cycles
|
||||
MEDIAN: 12288851 cpucycles
|
||||
AVERAGE: 12377778 cpucycles
|
||||
EXECUTED in 81.043775 s
|
@ -0,0 +1,5 @@
|
||||
RAND_bytes:
|
||||
TOTAL: 533630737853827 cycles
|
||||
MEDIAN: 24968652 cpucycles
|
||||
AVERAGE: 25489293 cpucycles
|
||||
EXECUTED in 9.017616 s
|
@ -0,0 +1,5 @@
|
||||
RAND_bytes:
|
||||
TOTAL: 26733995192 cycles
|
||||
MEDIAN: 26025687 cpucycles
|
||||
AVERAGE: 26107417 cpucycles
|
||||
EXECUTED in 509.700471 s
|
@ -0,0 +1,5 @@
|
||||
RAND_priv_bytes:
|
||||
TOTAL: 535336441547866 cycles
|
||||
MEDIAN: 11107 cpucycles
|
||||
AVERAGE: 16877 cpucycles
|
||||
EXECUTED in 0.006082 s
|
@ -0,0 +1,5 @@
|
||||
RAND_priv_bytes:
|
||||
TOTAL: 536162825812604 cycles
|
||||
MEDIAN: 11107 cpucycles
|
||||
AVERAGE: 16365 cpucycles
|
||||
EXECUTED in 0.005921 s
|
@ -0,0 +1,5 @@
|
||||
RAND_priv_bytes:
|
||||
TOTAL: 535373132863834 cycles
|
||||
MEDIAN: 12291606 cpucycles
|
||||
AVERAGE: 12359089 cpucycles
|
||||
EXECUTED in 4.372758 s
|
@ -0,0 +1,5 @@
|
||||
RAND_priv_bytes:
|
||||
TOTAL: 12556974422 cycles
|
||||
MEDIAN: 12201054 cpucycles
|
||||
AVERAGE: 12262670 cpucycles
|
||||
EXECUTED in 255.915867 s
|
@ -0,0 +1,5 @@
|
||||
RAND_priv_bytes:
|
||||
TOTAL: 535411073623108 cycles
|
||||
MEDIAN: 24637095 cpucycles
|
||||
AVERAGE: 24664863 cpucycles
|
||||
EXECUTED in 8.726003 s
|
@ -0,0 +1,5 @@
|
||||
RAND_priv_bytes:
|
||||
TOTAL: 26721164855 cycles
|
||||
MEDIAN: 25900103 cpucycles
|
||||
AVERAGE: 26094887 cpucycles
|
||||
EXECUTED in 650.850067 s
|
@ -0,0 +1,5 @@
|
||||
RAND_bytes:
|
||||
TOTAL: 122634872582479 cycles
|
||||
MEDIAN: 1614998095 cpucycles
|
||||
AVERAGE: 1662721364 cpucycles
|
||||
EXECUTED in 9.190874 s
|
@ -0,0 +1,5 @@
|
||||
RAND_bytes:
|
||||
TOTAL: 27392170737 cycles
|
||||
MEDIAN: 1667299740 cpucycles
|
||||
AVERAGE: 1712010671 cpucycles
|
||||
EXECUTED in 814.555646 s
|
@ -0,0 +1,5 @@
|
||||
RAND_priv_bytes:
|
||||
TOTAL: 170167276734682 cycles
|
||||
MEDIAN: 1232047875 cpucycles
|
||||
AVERAGE: 1261401535 cpucycles
|
||||
EXECUTED in 6.972535 s
|
@ -0,0 +1,5 @@
|
||||
RAND_priv_bytes:
|
||||
TOTAL: 26519671463 cycles
|
||||
MEDIAN: 1625535583 cpucycles
|
||||
AVERAGE: 1657479466 cpucycles
|
||||
EXECUTED in 436.126318 s
|
@ -0,0 +1,16 @@
|
||||
PROGRAM COMPLETE!
|
||||
PROGRAM COMPLETE!
|
||||
PROGRAM COMPLETE!
|
||||
PROGRAM COMPLETE!
|
||||
PROGRAM COMPLETE!
|
||||
PROGRAM COMPLETE!
|
||||
PROGRAM COMPLETE!
|
||||
PROGRAM COMPLETE!
|
||||
PROGRAM COMPLETE!
|
||||
PROGRAM COMPLETE!
|
||||
PROGRAM COMPLETE!
|
||||
PROGRAM COMPLETE!
|
||||
PROGRAM COMPLETE!
|
||||
PROGRAM COMPLETE!
|
||||
PROGRAM COMPLETE!
|
||||
^C
|
@ -0,0 +1,5 @@
|
||||
RDRAND:
|
||||
TOTAL: 538063325713659
|
||||
MEDIAN: 5560793 cpucycles
|
||||
AVERAGE: 5628973 cpucycles
|
||||
EXECUTED in 1.991472 s
|
@ -0,0 +1,5 @@
|
||||
RDRAND:
|
||||
TOTAL: 5600359128
|
||||
MEDIAN: 5532460 cpucycles
|
||||
AVERAGE: 5469100 cpucycles
|
||||
EXECUTED in 1.953684 s
|
@ -0,0 +1,5 @@
|
||||
RDRAND:
|
||||
TOTAL: 561587526613529
|
||||
MEDIAN: 5667651018 cpucycles
|
||||
AVERAGE: 5676879262 cpucycles
|
||||
EXECUTED in 2008.291504 s
|
@ -0,0 +1,5 @@
|
||||
RDRAND:
|
||||
TOTAL: 5813589943043
|
||||
MEDIAN: 5677152027 cpucycles
|
||||
AVERAGE: 5677333928 cpucycles
|
||||
EXECUTED in 2015.468384 s
|
@ -0,0 +1,5 @@
|
||||
RDRAND:
|
||||
TOTAL: 579201563714122
|
||||
MEDIAN: 11334789098 cpucycles
|
||||
AVERAGE: 11354590480 cpucycles
|
||||
EXECUTED in 4016.876709 s
|
@ -0,0 +1,5 @@
|
||||
RDRAND:
|
||||
TOTAL: 11628702252462
|
||||
MEDIAN: 11338193419 cpucycles
|
||||
AVERAGE: 11356154543 cpucycles
|
||||
EXECUTED in 4050.146973 s
|
@ -0,0 +1,5 @@
|
||||
RDRAND:
|
||||
TOTAL: 597008232682375
|
||||
MEDIAN: 1453100776511 cpucycles
|
||||
AVERAGE: 1453162191677 cpucycles
|
||||
EXECUTED in 4016.253662 s
|
@ -0,0 +1,5 @@
|
||||
RDRAND:
|
||||
TOTAL: 11624143444952
|
||||
MEDIAN: 1453214970891 cpucycles
|
||||
AVERAGE: 1453017930619 cpucycles
|
||||
EXECUTED in 4051.736572 s
|
@ -0,0 +1,5 @@
|
||||
RDSEED:
|
||||
TOTAL: 597599068794305
|
||||
MEDIAN: 24978077 cpucycles
|
||||
AVERAGE: 24876680 cpucycles
|
||||
EXECUTED in 8.800674 s
|
@ -0,0 +1,5 @@
|
||||
RDSEED:
|
||||
TOTAL: 25030163609
|
||||
MEDIAN: 24932895 cpucycles
|
||||
AVERAGE: 24443519 cpucycles
|
||||
EXECUTED in 8.673107 s
|
@ -0,0 +1,5 @@
|
||||
RDSEED:
|
||||
TOTAL: 702744641385458
|
||||
MEDIAN: 25578548704 cpucycles
|
||||
AVERAGE: 25529272494 cpucycles
|
||||
EXECUTED in 9031.408203 s
|
@ -0,0 +1,5 @@
|
||||
RDSEED:
|
||||
TOTAL: 25749194836413
|
||||
MEDIAN: 25143332470 cpucycles
|
||||
AVERAGE: 25145698082 cpucycles
|
||||
EXECUTED in 8902.758789 s
|
@ -0,0 +1,5 @@
|
||||
RDSEED:
|
||||
TOTAL: 781146353469333
|
||||
MEDIAN: 50983245170 cpucycles
|
||||
AVERAGE: 50962566174 cpucycles
|
||||
EXECUTED in 17528.861328 s
|
@ -0,0 +1,5 @@
|
||||
RDSEED:
|
||||
TOTAL: 50940272544723
|
||||
MEDIAN: 49709113465 cpucycles
|
||||
AVERAGE: 49746359906 cpucycles
|
||||
EXECUTED in 17621.734375 s
|
@ -0,0 +1,5 @@
|
||||
RDSEED:
|
||||
TOTAL: 857073038477887
|
||||
MEDIAN: 6373773598997 cpucycles
|
||||
AVERAGE: 6374627781381 cpucycles
|
||||
EXECUTED in 17618.212891 s
|
@ -0,0 +1,5 @@
|
||||
RDSEED:
|
||||
TOTAL: 52335170689619
|
||||
MEDIAN: 6544077414344 cpucycles
|
||||
AVERAGE: 6541896336202 cpucycles
|
||||
EXECUTED in 18180.208984 s
|
@ -0,0 +1,8 @@
|
||||
Program executed in: 0.005813 sec
|
||||
Program executed in: 500.818177 sec
|
||||
Program executed in: 5.982494 sec
|
||||
Program executed in: 11.922500 sec
|
||||
Program executed in: 166.437404 sec
|
||||
Program executed in: 12.407403 sec
|
||||
Program executed in: 0.021152 sec
|
||||
Program executed in: 524.288716 sec
|
@ -0,0 +1,5 @@
|
||||
RTLGENRANDOM:
|
||||
TOTAL: 435124916665087
|
||||
MEDIAN: 14036 cpucycles
|
||||
AVERAGE: 15074 cpucycles
|
||||
EXECUTED in 0.005451 s
|
@ -0,0 +1,5 @@
|
||||
RTLGENRANDOM:
|
||||
TOTAL: 15623576
|
||||
MEDIAN: 14239 cpucycles
|
||||
AVERAGE: 15257 cpucycles
|
||||
EXECUTED in 0.020702 s
|
@ -0,0 +1,5 @@
|
||||
RTLGENRANDOM:
|
||||
TOTAL: 436612939304116
|
||||
MEDIAN: 16831150 cpucycles
|
||||
AVERAGE: 16907537 cpucycles
|
||||
EXECUTED in 5.982000 s
|
@ -0,0 +1,5 @@
|
||||
RTLGENRANDOM:
|
||||
TOTAL: 17207328712
|
||||
MEDIAN: 16795727 cpucycles
|
||||
AVERAGE: 16804031 cpucycles
|
||||
EXECUTED in 166.227746 s
|
@ -0,0 +1,5 @@
|
||||
RTLGENRANDOM:
|
||||
TOTAL: 436665069606195
|
||||
MEDIAN: 33701465 cpucycles
|
||||
AVERAGE: 33698517 cpucycles
|
||||
EXECUTED in 11.922174 s
|
@ -0,0 +1,5 @@
|
||||
RTLGENRANDOM:
|
||||
TOTAL: 36010264078
|
||||
MEDIAN: 35032101 cpucycles
|
||||
AVERAGE: 35166273 cpucycles
|
||||
EXECUTED in 524.159006 s
|
@ -0,0 +1,5 @@
|
||||
RTLGENRANDOM:
|
||||
TOTAL: 437190611889319
|
||||
MEDIAN: 4362288300 cpucycles
|
||||
AVERAGE: 4489111941 cpucycles
|
||||
EXECUTED in 12.407025 s
|
@ -0,0 +1,5 @@
|
||||
RTLGENRANDOM:
|
||||
TOTAL: 36194214943
|
||||
MEDIAN: 4400486408 cpucycles
|
||||
AVERAGE: 4524276867 cpucycles
|
||||
EXECUTED in 500.792203 s
|
@ -0,0 +1,5 @@
|
||||
BCRYPTGENRANDOM:
|
||||
TOTAL: 91326460342929
|
||||
MEDIAN: 10009 cpucycles
|
||||
AVERAGE: 11011 cpucycles
|
||||
EXECUTED in 0.007250 s
|
@ -0,0 +1,5 @@
|
||||
BCRYPTGENRANDOM:
|
||||
TOTAL: 12425124
|
||||
MEDIAN: 10527 cpucycles
|
||||
AVERAGE: 12133 cpucycles
|
||||
EXECUTED in 0.066015 s
|
@ -0,0 +1,5 @@
|
||||
BCRYPTGENRANDOM:
|
||||
TOTAL: 91811403073499
|
||||
MEDIAN: 14184683 cpucycles
|
||||
AVERAGE: 14093652 cpucycles
|
||||
EXECUTED in 8.018871 s
|
@ -0,0 +1,5 @@
|
||||
BCRYPTGENRANDOM:
|
||||
TOTAL: 13416758446
|
||||
MEDIAN: 13042541 cpucycles
|
||||
AVERAGE: 13102303 cpucycles
|
||||
EXECUTED in 117.026229 s
|
@ -0,0 +1,5 @@
|
||||
BCRYPTGENRANDOM:
|
||||
TOTAL: 91857322016153
|
||||
MEDIAN: 29867384 cpucycles
|
||||
AVERAGE: 29396766 cpucycles
|
||||
EXECUTED in 16.724702 s
|
@ -0,0 +1,5 @@
|
||||
BCRYPTGENRANDOM:
|
||||
TOTAL: 31265760108
|
||||
MEDIAN: 31008571 cpucycles
|
||||
AVERAGE: 30532968 cpucycles
|
||||
EXECUTED in 845.170274 s
|
@ -0,0 +1,5 @@
|
||||
BCRYPTGENRANDOM:
|
||||
TOTAL: 92103057631946
|
||||
MEDIAN: 3843219494 cpucycles
|
||||
AVERAGE: 3951000676 cpucycles
|
||||
EXECUTED in 17.560018 s
|
@ -0,0 +1,5 @@
|
||||
BCRYPTGENRANDOM:
|
||||
TOTAL: 31362476370
|
||||
MEDIAN: 3838446117 cpucycles
|
||||
AVERAGE: 3920309546 cpucycles
|
||||
EXECUTED in 252.854179 s
|
@ -0,0 +1,8 @@
|
||||
Program executed in: 0.292747 sec
|
||||
Program executed in: 252.856813 sec
|
||||
Program executed in: 8.019229 sec
|
||||
Program executed in: 16.724988 sec
|
||||
Program executed in: 117.233351 sec
|
||||
Program executed in: 17.560428 sec
|
||||
Program executed in: 0.066405 sec
|
||||
Program executed in: 845.219639 sec
|
@ -0,0 +1,5 @@
|
||||
CRYPTGENRANDOM:
|
||||
TOTAL: 93595236363839
|
||||
MEDIAN: 10076 cpucycles
|
||||
AVERAGE: 10545 cpucycles
|
||||
EXECUTED in 0.008252 s
|
@ -0,0 +1,5 @@
|
||||
CRYPTGENRANDOM:
|
||||
TOTAL: 11204033
|
||||
MEDIAN: 10572 cpucycles
|
||||
AVERAGE: 10941 cpucycles
|
||||
EXECUTED in 0.021986 s
|
@ -0,0 +1,5 @@
|
||||
CRYPTGENRANDOM:
|
||||
TOTAL: 94136706550297
|
||||
MEDIAN: 14229874 cpucycles
|
||||
AVERAGE: 14174624 cpucycles
|
||||
EXECUTED in 8.066505 s
|
@ -0,0 +1,5 @@
|
||||
CRYPTGENRANDOM:
|
||||
TOTAL: 13461473001
|
||||
MEDIAN: 13071325 cpucycles
|
||||
AVERAGE: 13145969 cpucycles
|
||||
EXECUTED in 120.477247 s
|
@ -0,0 +1,5 @@
|
||||
CRYPTGENRANDOM:
|
||||
TOTAL: 94182624805010
|
||||
MEDIAN: 29834241 cpucycles
|
||||
AVERAGE: 29485483 cpucycles
|
||||
EXECUTED in 16.776389 s
|
@ -0,0 +1,5 @@
|
||||
CRYPTGENRANDOM:
|
||||
TOTAL: 31197709904
|
||||
MEDIAN: 30959319 cpucycles
|
||||
AVERAGE: 30466513 cpucycles
|
||||
EXECUTED in 982.773749 s
|
@ -0,0 +1,5 @@
|
||||
CRYPTGENRANDOM:
|
||||
TOTAL: 94434730620881
|
||||
MEDIAN: 3890579059 cpucycles
|
||||
AVERAGE: 3969183958 cpucycles
|
||||
EXECUTED in 17.642095 s
|
@ -0,0 +1,7 @@
|
||||
CRYPTGENRANDOM:
|
||||
TOTAL: 31705118965
|
||||
MEDIAN: 3881173706 cpucycles
|
||||
AVERAGE: 3963139870 cpucycles
|
||||
EXECUTED in 283.746065 s
|
||||
|
||||
|
@ -0,0 +1,8 @@
|
||||
Program executed in: 0.008539 sec
|
||||
Program executed in: 283.747361 sec
|
||||
Program executed in: 8.066826 sec
|
||||
Program executed in: 16.776671 sec
|
||||
Program executed in: 120.687506 sec
|
||||
Program executed in: 17.642329 sec
|
||||
Program executed in: 0.022363 sec
|
||||
Program executed in: 983.581094 sec
|
@ -0,0 +1,12 @@
|
||||
Program executed in: 0.008386 sec
|
||||
Program executed in: 7.040517 sec
|
||||
Program executed in: 13.304605 sec
|
||||
Program executed in: 115.475073 sec
|
||||
Program executed in: 0.023148 sec
|
||||
Program executed in: 807.570173 sec
|
||||
Program executed in: 0.008196 sec
|
||||
Program executed in: 7.097543 sec
|
||||
Program executed in: 13.203143 sec
|
||||
Program executed in: 116.649249 sec
|
||||
Program executed in: 0.009082 sec
|
||||
Program executed in: 1006.670251 sec
|
@ -0,0 +1,5 @@
|
||||
RAND_bytes:
|
||||
TOTAL: 166810340377153 cycles
|
||||
MEDIAN: 9432 cpucycles
|
||||
AVERAGE: 12700 cpucycles
|
||||
EXECUTED in 0.008139 s
|
@ -0,0 +1,5 @@
|
||||
RAND_bytes:
|
||||
TOTAL: 14667215 cycles
|
||||
MEDIAN: 10080 cpucycles
|
||||
AVERAGE: 14323 cpucycles
|
||||
EXECUTED in 0.022769 s
|
@ -0,0 +1,5 @@
|
||||
RAND_bytes:
|
||||
TOTAL: 166841729473945 cycles
|
||||
MEDIAN: 12725827 cpucycles
|
||||
AVERAGE: 12371900 cpucycles
|
||||
EXECUTED in 7.039314 s
|
@ -0,0 +1,5 @@
|
||||
RAND_bytes:
|
||||
TOTAL: 12008784785 cycles
|
||||
MEDIAN: 11698511 cpucycles
|
||||
AVERAGE: 11727328 cpucycles
|
||||
EXECUTED in 114.814303 s
|
@ -0,0 +1,5 @@
|
||||
RAND_bytes:
|
||||
TOTAL: 166877068262968 cycles
|
||||
MEDIAN: 23283921 cpucycles
|
||||
AVERAGE: 23384922 cpucycles
|
||||
EXECUTED in 13.304316 s
|
@ -0,0 +1,5 @@
|
||||
RAND_bytes:
|
||||
TOTAL: 27919280386 cycles
|
||||
MEDIAN: 27649302 cpucycles
|
||||
AVERAGE: 27264922 cpucycles
|
||||
EXECUTED in 806.312717 s
|
@ -0,0 +1,5 @@
|
||||
RAND_priv_bytes:
|
||||
TOTAL: 168530403729679 cycles
|
||||
MEDIAN: 9434 cpucycles
|
||||
AVERAGE: 12676 cpucycles
|
||||
EXECUTED in 0.007968 s
|
@ -0,0 +1,5 @@
|
||||
RAND_priv_bytes:
|
||||
TOTAL: 168790871545463 cycles
|
||||
MEDIAN: 10250 cpucycles
|
||||
AVERAGE: 13721 cpucycles
|
||||
EXECUTED in 0.008675 s
|
@ -0,0 +1,5 @@
|
||||
RAND_priv_bytes:
|
||||
TOTAL: 168562899754011 cycles
|
||||
MEDIAN: 12791747 cpucycles
|
||||
AVERAGE: 12450851 cpucycles
|
||||
EXECUTED in 7.084268 s
|
@ -0,0 +1,5 @@
|
||||
RAND_priv_bytes:
|
||||
TOTAL: 11973446357 cycles
|
||||
MEDIAN: 11656093 cpucycles
|
||||
AVERAGE: 11692818 cpucycles
|
||||
EXECUTED in 116.442791 s
|
@ -0,0 +1,5 @@
|
||||
RAND_priv_bytes:
|
||||
TOTAL: 168597735383070 cycles
|
||||
MEDIAN: 23141446 cpucycles
|
||||
AVERAGE: 23206632 cpucycles
|
||||
EXECUTED in 13.202893 s
|
@ -0,0 +1,5 @@
|
||||
RAND_priv_bytes:
|
||||
TOTAL: 27895131940 cycles
|
||||
MEDIAN: 27704028 cpucycles
|
||||
AVERAGE: 27241339 cpucycles
|
||||
EXECUTED in 1006.623945 s
|
@ -0,0 +1,5 @@
|
||||
RAND_priv_bytes:
|
||||
TOTAL: 599871170438697 cycles
|
||||
MEDIAN: 1538127906 cpucycles
|
||||
AVERAGE: 1566820326 cpucycles
|
||||
EXECUTED in 13.927308 s
|
@ -0,0 +1,5 @@
|
||||
RAND_priv_bytes:
|
||||
TOTAL: 25638223233 cycles
|
||||
MEDIAN: 1562734535 cpucycles
|
||||
AVERAGE: 1602388952 cpucycles
|
||||
EXECUTED in 279.844212 s
|
@ -0,0 +1,5 @@
|
||||
RAND_bytes:
|
||||
TOTAL: 454959216367404 cycles
|
||||
MEDIAN: 2051661354 cpucycles
|
||||
AVERAGE: 2079574215 cpucycles
|
||||
EXECUTED in 18.485125 s
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user