Implementation notes: x86, leaf, crypto_dh/claus

Computer: leaf
Architecture: x86
CPU ID: unknown CPU ID
SUPERCOP version: 20160731
Operation: crypto_dh
Primitive: claus
TimeImplementationCompilerBenchmark dateSUPERCOP version
67608068opensslgcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072920160724
67630156opensslgcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016073020160724
67707472opensslgcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072920160724
67735716opensslgcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072920160724
176159792gmpg++ -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv2016072920160724
176691484gmpg++ -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv2016072920160724
176797364gmpg++ -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv2016072920160724
177276988gmpg++ -march=native -mtune=native -O -fomit-frame-pointer -fwrapv2016072920160724

Compiler output

Implementation: crypto_dh/claus/ntl
Compiler: g++ -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
keypair.cpp: keypair.cpp:1:20: error: NTL/ZZ.h: No such file or directory
keypair.cpp: keypair.cpp:2: error: 'NTL' is not a namespace-name
keypair.cpp: keypair.cpp:2: error: expected namespace-name before ';' token
keypair.cpp: keypair.cpp: In function 'int crypto_dh_claus_ntl_keypair(unsigned char*, unsigned char*)':
keypair.cpp: keypair.cpp:18: error: 'ZZ' was not declared in this scope
keypair.cpp: keypair.cpp:18: error: expected `;' before 'a'
keypair.cpp: keypair.cpp:19: error: expected `;' before 'p'
keypair.cpp: keypair.cpp:20: error: expected `;' before 'base'
keypair.cpp: keypair.cpp:21: error: expected `;' before 'result'
keypair.cpp: keypair.cpp:22: error: 'base' was not declared in this scope
keypair.cpp: keypair.cpp:23: error: 'a' was not declared in this scope
keypair.cpp: keypair.cpp:23: error: 'ZZFromBytes' was not declared in this scope
keypair.cpp: keypair.cpp:24: error: 'p' was not declared in this scope
keypair.cpp: keypair.cpp:24: error: 'conv' was not declared in this scope
keypair.cpp: keypair.cpp:25: error: 'result' was not declared in this scope
keypair.cpp: keypair.cpp:25: error: 'PowerMod' was not declared in this scope
keypair.cpp: keypair.cpp:26: error: 'BytesFromZZ' was not declared in this scope

Number of similar (compiler,implementation) pairs: 4, namely:
CompilerImplementations
g++ -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv ntl
g++ -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv ntl
g++ -march=native -mtune=native -O -fomit-frame-pointer -fwrapv ntl
g++ -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv ntl

Compiler output

Implementation: crypto_dh/claus/cryptopp
Compiler: g++ -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
keypair.cpp: keypair.cpp:1:25: error: cryptopp/dh.h: No such file or directory
keypair.cpp: keypair.cpp:8: error: 'CryptoPP' is not a namespace-name
keypair.cpp: keypair.cpp:8: error: expected namespace-name before ';' token
keypair.cpp: keypair.cpp: In function 'int crypto_dh_claus_cryptopp_keypair(unsigned char*, unsigned char*)':
keypair.cpp: keypair.cpp:16: error: 'Integer' does not name a type
keypair.cpp: keypair.cpp:17: error: 'Integer' does not name a type
keypair.cpp: keypair.cpp:18: error: 'Integer' was not declared in this scope
keypair.cpp: keypair.cpp:18: error: expected `;' before 'a'
keypair.cpp: keypair.cpp:19: error: expected `;' before 'result'
keypair.cpp: keypair.cpp:20: error: 'result' was not declared in this scope

Number of similar (compiler,implementation) pairs: 4, namely:
CompilerImplementations
g++ -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv cryptopp
g++ -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv cryptopp
g++ -march=native -mtune=native -O -fomit-frame-pointer -fwrapv cryptopp
g++ -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv cryptopp

Compiler output

Implementation: crypto_dh/claus/gmp
Compiler: g++ -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
try.cpp: /tmp//cckVCYc2.o: In function `alignedcalloc(unsigned long long)':
try.cpp: try-anything.cpp:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?
try.cpp: /tmp//ccY4hXLu.o: In function `alignedcalloc(unsigned long long)':
try.cpp: try-anything.cpp:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
g++ -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv gmp

Compiler output

Implementation: crypto_dh/claus/gmp
Compiler: g++ -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv
try.cpp: /tmp//ccOzb4dK.o: In function `alignedcalloc(unsigned long long)':
try.cpp: try-anything.cpp:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?
try.cpp: /tmp//ccCHjYjF.o: In function `alignedcalloc(unsigned long long)':
try.cpp: try-anything.cpp:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
g++ -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv gmp

Compiler output

Implementation: crypto_dh/claus/gmp
Compiler: g++ -march=native -mtune=native -O -fomit-frame-pointer -fwrapv
try.cpp: /tmp//cc4m7wfE.o: In function `alignedcalloc(unsigned long long)':
try.cpp: try-anything.cpp:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?
try.cpp: /tmp//ccH0pYpd.o: In function `alignedcalloc(unsigned long long)':
try.cpp: try-anything.cpp:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
g++ -march=native -mtune=native -O -fomit-frame-pointer -fwrapv gmp

Compiler output

Implementation: crypto_dh/claus/gmp
Compiler: g++ -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv
try.cpp: /tmp//cc2q7iBp.o: In function `alignedcalloc(unsigned long long)':
try.cpp: try-anything.cpp:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?
try.cpp: /tmp//ccze3XNq.o: In function `alignedcalloc(unsigned long long)':
try.cpp: try-anything.cpp:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
g++ -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv gmp

Compiler output

Implementation: crypto_dh/claus/openssl
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
try.c: /tmp//ccz0V70a.o: In function `alignedcalloc':
try.c: try-anything.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?
try.c: /tmp//ccZJvHfM.o: In function `alignedcalloc':
try.c: try-anything.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv openssl

Compiler output

Implementation: crypto_dh/claus/openssl
Compiler: gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv
try.c: /tmp//ccSFba8u.o: In function `alignedcalloc':
try.c: try-anything.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?
try.c: /tmp//cch6D53s.o: In function `alignedcalloc':
try.c: try-anything.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv openssl

Compiler output

Implementation: crypto_dh/claus/openssl
Compiler: gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv
try.c: /tmp//ccUtnZ1J.o: In function `alignedcalloc':
try.c: try-anything.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?
try.c: /tmp//ccmNXvMw.o: In function `alignedcalloc':
try.c: try-anything.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv openssl

Compiler output

Implementation: crypto_dh/claus/openssl
Compiler: gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv
try.c: /tmp//ccxJU8B2.o: In function `alignedcalloc':
try.c: try-anything.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?
try.c: /tmp//ccuT1lwY.o: In function `alignedcalloc':
try.c: try-anything.c:(.text+0x...): warning: warning: random() may return deterministic values, is that what you want?

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv openssl