Implementation notes: amd64, latour, crypto_dh/claus

Computer: latour
Architecture: amd64
CPU ID: GenuineIntel-000006fb-bfebfbff
SUPERCOP version: 20201130
Operation: crypto_dh
Primitive: claus
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
101970902212 16 0225788 928 1640T:gmpg++_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020083020200826
102028052922 16 0222829 1024 1576T:gmpclang++_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020083020200826
102044882254 16 0223660 928 1640T:gmpg++_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020083020200826
102098702640 16 0223636 1016 1576T:gmpclang++_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020083020200826
102131372640 16 0224540 1016 1576T:gmpclang++_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020083020200826
102288602372 16 0221903 928 1640T:gmpg++_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020083020200826
102419552640 16 0223636 1016 1576T:gmpclang++_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020083020200826
102586322207 16 0223218 936 1640T:gmpg++_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020083020200826
102618364022 336 2424102 2368 4096T:ntlg++_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020083020200826
102670744552 336 2422471 2456 4000T:ntlclang++_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020083020200826
102720244074 336 2422111 2368 4096T:ntlg++_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020083020200826
102721954048 336 2421000 2448 4000T:ntlclang++_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020083020200826
102747874020 336 2421470 2368 4096T:ntlg++_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020083020200826
102869014552 336 2423375 2456 4000T:ntlclang++_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020083020200826
103111202971 336 2420184 2392 4000T:ntlg++_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020083020200826
105169774552 336 2422471 2456 4000T:ntlclang++_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020083020200826
112698722799 16 1841253404 149015 11224T:cryptoppg++_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020083020200826
112717712639 16 1681253746 149055 11160T:cryptoppclang++_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020083020200826
112871882873 16 1841256096 149015 11224T:cryptoppg++_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020083020200826
113151962873 16 1841254040 149015 11224T:cryptoppg++_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020083020200826
113231072639 16 1681253746 149055 11160T:cryptoppclang++_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020083020200826
113514212062 16 1841251600 149007 11224T:cryptoppg++_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2020083020200826
113708702639 16 1681254650 149055 11160T:cryptoppclang++_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020083020200826
113877362448 16 1681252408 149047 11160T:cryptoppclang++_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2020083020200826

Test failure

Implementation: T:openssl
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
error 111
crypto_dh_keypair returns nonzero

Number of similar (compiler,implementation) pairs: 9, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:openssl
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:openssl
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:openssl
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:openssl
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:openssl
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:openssl
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:openssl
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE T:openssl
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE T:openssl

Compiler output

Implementation: T:opensslnew
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
keypair.c: keypair.c:34:8: warning: implicit declaration of function 'DH_set0_pqg' is invalid in C99 [-Wimplicit-function-declaration]
keypair.c: if (!DH_set0_pqg(dh,p,0,g)) goto error;
keypair.c: ^
keypair.c: keypair.c:39:7: warning: implicit declaration of function 'DH_get0_pub_key' is invalid in C99 [-Wimplicit-function-declaration]
keypair.c: z = DH_get0_pub_key(dh);
keypair.c: ^
keypair.c: keypair.c:39:5: warning: incompatible integer to pointer conversion assigning to 'const BIGNUM *' (aka 'const struct bignum_st *') from 'int' [-Wint-conversion]
keypair.c: z = DH_get0_pub_key(dh);
keypair.c: ^ ~~~~~~~~~~~~~~~~~~~
keypair.c: keypair.c:46:7: warning: implicit declaration of function 'DH_get0_priv_key' is invalid in C99 [-Wimplicit-function-declaration]
keypair.c: z = DH_get0_priv_key(dh);
keypair.c: ^
keypair.c: keypair.c:46:5: warning: incompatible integer to pointer conversion assigning to 'const BIGNUM *' (aka 'const struct bignum_st *') from 'int' [-Wint-conversion]
keypair.c: z = DH_get0_priv_key(dh);
keypair.c: ^ ~~~~~~~~~~~~~~~~~~~~
keypair.c: 5 warnings generated.
sharedsecret.c: sharedsecret.c:35:8: warning: implicit declaration of function 'DH_set0_pqg' is invalid in C99 [-Wimplicit-function-declaration]
sharedsecret.c: if (!DH_set0_pqg(alice,p,0,g)) goto error;
sharedsecret.c: ^
sharedsecret.c: sharedsecret.c:44:8: warning: implicit declaration of function 'DH_set0_key' is invalid in C99 [-Wimplicit-function-declaration]
sharedsecret.c: if (!DH_set0_key(alice,pub_key,priv_key)) goto error;
sharedsecret.c: ^
sharedsecret.c: 2 warnings generated.
try.c: crypto_dh_claus.a(keypair.o): In function `crypto_dh_claus_opensslnew_timingleaks_keypair':
try.c: keypair.c:(.text+0x...): undefined reference to `DH_set0_pqg'
try.c: keypair.c:(.text+0x...): undefined reference to `DH_get0_pub_key'
try.c: keypair.c:(.text+0x...): undefined reference to `DH_get0_priv_key'
try.c: crypto_dh_claus.a(sharedsecret.o): In function `crypto_dh_claus_opensslnew_timingleaks':
try.c: sharedsecret.c:(.text+0x...): undefined reference to `DH_set0_pqg'
try.c: sharedsecret.c:(.text+0x...): undefined reference to `DH_set0_key'
try.c: clang: error: linker command failed with exit code 1 (use -v to see invocation)

Number of similar (compiler,implementation) pairs: 5, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:opensslnew
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:opensslnew
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:opensslnew
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:opensslnew
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:opensslnew

Compiler output

Implementation: T:opensslnew
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
keypair.c: keypair.c: In function 'crypto_dh_claus_opensslnew_timingleaks_keypair':
keypair.c: keypair.c:34:8: warning: implicit declaration of function 'DH_set0_pqg' [-Wimplicit-function-declaration]
keypair.c: if (!DH_set0_pqg(dh,p,0,g)) goto error;
keypair.c: ^
keypair.c: keypair.c:39:7: warning: implicit declaration of function 'DH_get0_pub_key' [-Wimplicit-function-declaration]
keypair.c: z = DH_get0_pub_key(dh);
keypair.c: ^
keypair.c: keypair.c:39:5: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
keypair.c: z = DH_get0_pub_key(dh);
keypair.c: ^
keypair.c: keypair.c:46:7: warning: implicit declaration of function 'DH_get0_priv_key' [-Wimplicit-function-declaration]
keypair.c: z = DH_get0_priv_key(dh);
keypair.c: ^
keypair.c: keypair.c:46:5: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
keypair.c: z = DH_get0_priv_key(dh);
keypair.c: ^
sharedsecret.c: sharedsecret.c: In function 'crypto_dh_claus_opensslnew_timingleaks':
sharedsecret.c: sharedsecret.c:35:8: warning: implicit declaration of function 'DH_set0_pqg' [-Wimplicit-function-declaration]
sharedsecret.c: if (!DH_set0_pqg(alice,p,0,g)) goto error;
sharedsecret.c: ^
sharedsecret.c: sharedsecret.c:44:8: warning: implicit declaration of function 'DH_set0_key' [-Wimplicit-function-declaration]
sharedsecret.c: if (!DH_set0_key(alice,pub_key,priv_key)) goto error;
sharedsecret.c: ^
try.c: crypto_dh_claus.a(keypair.o): In function `crypto_dh_claus_opensslnew_timingleaks_keypair':
try.c: keypair.c:(.text+0x...): undefined reference to `DH_set0_pqg'
try.c: keypair.c:(.text+0x...): undefined reference to `DH_get0_pub_key'
try.c: keypair.c:(.text+0x...): undefined reference to `DH_get0_priv_key'
try.c: crypto_dh_claus.a(sharedsecret.o): In function `crypto_dh_claus_opensslnew_timingleaks':
try.c: sharedsecret.c:(.text+0x...): undefined reference to `DH_set0_pqg'
try.c: sharedsecret.c:(.text+0x...): undefined reference to `DH_set0_key'
try.c: collect2: error: ld returned 1 exit status

Number of similar (compiler,implementation) pairs: 4, namely:
CompilerImplementations
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:opensslnew
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:opensslnew
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE T:opensslnew
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE T:opensslnew