Implementation notes: amd64, latour, crypto_encrypt/ronald4096

Computer: latour
Architecture: amd64
CPU ID: GenuineIntel-000006fb-bfebfbff
SUPERCOP version: 20201130
Operation: crypto_encrypt
Primitive: ronald4096

Test failure

Implementation: T:openssl
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
error 111
crypto_encrypt_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:32:7: warning: implicit declaration of function 'RSA_get0_n' is invalid in C99 [-Wimplicit-function-declaration]
keypair.c: x = RSA_get0_n(r);
keypair.c: ^
keypair.c: keypair.c:32:5: warning: incompatible integer to pointer conversion assigning to 'const BIGNUM *' (aka 'const struct bignum_st *') from 'int' [-Wint-conversion]
keypair.c: x = RSA_get0_n(r);
keypair.c: ^ ~~~~~~~~~~~~~
keypair.c: keypair.c:36:7: warning: implicit declaration of function 'RSA_get0_e' is invalid in C99 [-Wimplicit-function-declaration]
keypair.c: x = RSA_get0_e(r);
keypair.c: ^
keypair.c: keypair.c:36:5: warning: incompatible integer to pointer conversion assigning to 'const BIGNUM *' (aka 'const struct bignum_st *') from 'int' [-Wint-conversion]
keypair.c: x = RSA_get0_e(r);
keypair.c: ^ ~~~~~~~~~~~~~
keypair.c: keypair.c:40:7: warning: implicit declaration of function 'RSA_get0_d' is invalid in C99 [-Wimplicit-function-declaration]
keypair.c: x = RSA_get0_d(r);
keypair.c: ^
keypair.c: keypair.c:40:5: warning: incompatible integer to pointer conversion assigning to 'const BIGNUM *' (aka 'const struct bignum_st *') from 'int' [-Wint-conversion]
keypair.c: x = RSA_get0_d(r);
keypair.c: ^ ~~~~~~~~~~~~~
keypair.c: keypair.c:44:7: warning: implicit declaration of function 'RSA_get0_p' is invalid in C99 [-Wimplicit-function-declaration]
keypair.c: x = RSA_get0_p(r);
keypair.c: ^
keypair.c: keypair.c:44:5: warning: incompatible integer to pointer conversion assigning to 'const BIGNUM *' (aka 'const struct bignum_st *') from 'int' [-Wint-conversion]
keypair.c: x = RSA_get0_p(r);
keypair.c: ^ ~~~~~~~~~~~~~
keypair.c: keypair.c:48:7: warning: implicit declaration of function 'RSA_get0_q' is invalid in C99 [-Wimplicit-function-declaration]
keypair.c: ...

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_encrypt_ronald4096_opensslnew_timingleaks_keypair':
keypair.c: keypair.c:32:7: warning: implicit declaration of function 'RSA_get0_n' [-Wimplicit-function-declaration]
keypair.c: x = RSA_get0_n(r);
keypair.c: ^
keypair.c: keypair.c:32:5: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
keypair.c: x = RSA_get0_n(r);
keypair.c: ^
keypair.c: keypair.c:36:7: warning: implicit declaration of function 'RSA_get0_e' [-Wimplicit-function-declaration]
keypair.c: x = RSA_get0_e(r);
keypair.c: ^
keypair.c: keypair.c:36:5: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
keypair.c: x = RSA_get0_e(r);
keypair.c: ^
keypair.c: keypair.c:40:7: warning: implicit declaration of function 'RSA_get0_d' [-Wimplicit-function-declaration]
keypair.c: x = RSA_get0_d(r);
keypair.c: ^
keypair.c: keypair.c:40:5: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
keypair.c: x = RSA_get0_d(r);
keypair.c: ^
keypair.c: keypair.c:44:7: warning: implicit declaration of function 'RSA_get0_p' [-Wimplicit-function-declaration]
keypair.c: x = RSA_get0_p(r);
keypair.c: ^
keypair.c: keypair.c:44:5: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
keypair.c: x = RSA_get0_p(r);
keypair.c: ^
keypair.c: ...

Number of similar (compiler,implementation) pairs: 3, namely:
CompilerImplementations
gcc -march=native -mtune=native -O2 -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

Compiler output

Implementation: T:opensslnew
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE
keypair.c: keypair.c: In function 'crypto_encrypt_ronald4096_opensslnew_timingleaks_keypair':
keypair.c: keypair.c:32:7: warning: implicit declaration of function 'RSA_get0_n' [-Wimplicit-function-declaration]
keypair.c: x = RSA_get0_n(r);
keypair.c: ^
keypair.c: keypair.c:32:5: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
keypair.c: x = RSA_get0_n(r);
keypair.c: ^
keypair.c: keypair.c:36:7: warning: implicit declaration of function 'RSA_get0_e' [-Wimplicit-function-declaration]
keypair.c: x = RSA_get0_e(r);
keypair.c: ^
keypair.c: keypair.c:36:5: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
keypair.c: x = RSA_get0_e(r);
keypair.c: ^
keypair.c: keypair.c:40:7: warning: implicit declaration of function 'RSA_get0_d' [-Wimplicit-function-declaration]
keypair.c: x = RSA_get0_d(r);
keypair.c: ^
keypair.c: keypair.c:40:5: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
keypair.c: x = RSA_get0_d(r);
keypair.c: ^
keypair.c: keypair.c:44:7: warning: implicit declaration of function 'RSA_get0_p' [-Wimplicit-function-declaration]
keypair.c: x = RSA_get0_p(r);
keypair.c: ^
keypair.c: keypair.c:44:5: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
keypair.c: x = RSA_get0_p(r);
keypair.c: ^
keypair.c: ...
shortciphertext.c: shortciphertext.c: In function 'crypto_encrypt_ronald4096_opensslnew_timingleaks_shortciphertext':
shortciphertext.c: shortciphertext.c:27:25: warning: implicit declaration of function 'RSA_set0_key' [-Wimplicit-function-declaration]
shortciphertext.c: if (result == 0) if (!RSA_set0_key(r,n,e,0)) result = -1;
shortciphertext.c: ^
shortplaintext.c: shortplaintext.c: In function 'crypto_encrypt_ronald4096_opensslnew_timingleaks_shortplaintext':
shortplaintext.c: shortplaintext.c:46:25: warning: implicit declaration of function 'RSA_set0_key' [-Wimplicit-function-declaration]
shortplaintext.c: if (result == 0) if (!RSA_set0_key(r,n,e,d)) result = -1;
shortplaintext.c: ^
shortplaintext.c: shortplaintext.c:48:25: warning: implicit declaration of function 'RSA_set0_factors' [-Wimplicit-function-declaration]
shortplaintext.c: if (result == 0) if (!RSA_set0_factors(r,p,q)) result = -1;
shortplaintext.c: ^
shortplaintext.c: shortplaintext.c:50:25: warning: implicit declaration of function 'RSA_set0_crt_params' [-Wimplicit-function-declaration]
shortplaintext.c: if (result == 0) if (!RSA_set0_crt_params(r,dmp1,dmq1,iqmp)) result = -1;
shortplaintext.c: ^
try.c: crypto_encrypt_ronald4096.a(keypair.o): In function `crypto_encrypt_ronald4096_opensslnew_timingleaks_keypair':
try.c: keypair.c:(.text+0x...): undefined reference to `RSA_get0_n'
try.c: keypair.c:(.text+0x...): undefined reference to `RSA_get0_e'
try.c: keypair.c:(.text+0x...): undefined reference to `RSA_get0_d'
try.c: keypair.c:(.text+0x...): undefined reference to `RSA_get0_p'
try.c: keypair.c:(.text+0x...): undefined reference to `RSA_get0_q'
try.c: keypair.c:(.text+0x...): undefined reference to `RSA_get0_dmp1'
try.c: keypair.c:(.text+0x...): undefined reference to `RSA_get0_dmq1'
try.c: keypair.c:(.text+0x...): undefined reference to `RSA_get0_iqmp'
try.c: crypto_encrypt_ronald4096.a(shortciphertext.o): In function `crypto_encrypt_ronald4096_opensslnew_timingleaks_shortciphertext':
try.c: shortciphertext.c:(.text+0x...): undefined reference to `RSA_set0_key'
try.c: crypto_encrypt_ronald4096.a(shortplaintext.o): In function `crypto_encrypt_ronald4096_opensslnew_timingleaks_shortplaintext':
try.c: shortplaintext.c:(.text+0x...): undefined reference to `RSA_set0_key'
try.c: shortplaintext.c:(.text+0x...): undefined reference to `RSA_set0_factors'
try.c: shortplaintext.c:(.text+0x...): undefined reference to `RSA_set0_crt_params'
try.c: collect2: error: ld returned 1 exit status

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