Implementation notes: amd64, gcc14, crypto_encrypt/ronald1024

Computer: gcc14
Architecture: amd64
CPU ID: GenuineIntel-00010676-bfebfbff
SUPERCOP version: 20220506
Operation: crypto_encrypt
Primitive: ronald1024

Compiler output

Implementation: T:openssl
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
keypair.c: keypair.c:15:7: warning: 'RSA_generate_key' is deprecated [-Wdeprecated-declarations]
keypair.c: r = RSA_generate_key(MODULUS_BYTES * 8,3,0,0);
keypair.c: ^
keypair.c: /usr/include/openssl/rsa.h:193:25: note: 'RSA_generate_key' has been explicitly marked deprecated here
keypair.c: DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void
keypair.c: ^
keypair.c: keypair.c:20:23: error: incomplete definition of type 'struct rsa_st'
keypair.c: len = BN_num_bytes(r->n); if (len > MODULUS_BYTES) goto error;
keypair.c: ~^
keypair.c: /usr/include/openssl/bn.h:193:40: note: expanded from macro 'BN_num_bytes'
keypair.c: # define BN_num_bytes(a) ((BN_num_bits(a)+7)/8)
keypair.c: ^
keypair.c: /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st'
keypair.c: typedef struct rsa_st RSA;
keypair.c: ^
keypair.c: keypair.c:21:36: error: incomplete definition of type 'struct rsa_st'
keypair.c: out += MODULUS_BYTES; BN_bn2bin(r->n,out - len);
keypair.c: ~^
keypair.c: /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'struct rsa_st'
keypair.c: typedef struct rsa_st RSA;
keypair.c: ^
keypair.c: keypair.c:23:23: error: incomplete definition of type 'struct rsa_st'
keypair.c: len = BN_num_bytes(r->e); if (len > MODULUS_BYTES) goto error;
keypair.c: ~^
keypair.c: /usr/include/openssl/bn.h:193:40: note: expanded from macro 'BN_num_bytes'
keypair.c: ...

Number of similar (compiler,implementation) pairs: 5, 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

Compiler output

Implementation: T:openssl
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
keypair.c: keypair.c: In function 'crypto_encrypt_ronald1024_openssl_timingleaks_keypair':
keypair.c: keypair.c:15:3: warning: 'RSA_generate_key' is deprecated [-Wdeprecated-declarations]
keypair.c: r = RSA_generate_key(MODULUS_BYTES * 8,3,0,0);
keypair.c: ^
keypair.c: In file included from /usr/include/openssl/rsa.h:13:0,
keypair.c: from keypair.c:2:
keypair.c: /usr/include/openssl/rsa.h:193:1: note: declared here
keypair.c: DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void
keypair.c: ^
keypair.c: In file included from /usr/include/openssl/asn1.h:24:0,
keypair.c: from /usr/include/openssl/rsa.h:16,
keypair.c: from keypair.c:2:
keypair.c: keypair.c:20:23: error: dereferencing pointer to incomplete type 'RSA {aka struct rsa_st}'
keypair.c: len = BN_num_bytes(r->n); if (len > MODULUS_BYTES) goto error;
keypair.c: ^

Number of similar (compiler,implementation) pairs: 4, namely:
CompilerImplementations
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_ronald1024_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: 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