Implementation notes: amd64, speed2supercop, crypto_encrypt/ronald3072
Computer: speed2supercop
Microarchitecture: amd64; Haswell+AES (306c3)
Architecture: amd64
CPU ID: GenuineIntel-000306c3-1fc9cbf5
SUPERCOP version: 20240808
Operation: crypto_encrypt
Primitive: ronald3072
Time | Object size | Test size | Implementation | Compiler | Benchmark date | SUPERCOP version |
13073696 | 3312 0 0 | 31156 968 1640 | T:opensslnew | gcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall | 20240713 | 20240625 |
13086460 | 3298 0 0 | 30782 992 1576 | T:opensslnew | clang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall | 20240713 | 20240625 |
13086596 | 3471 0 0 | 31564 968 1640 | T:opensslnew | gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall | 20240713 | 20240625 |
13092424 | 2745 0 0 | 29396 960 1608 | T:opensslnew | gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall | 20240713 | 20240625 |
13100116 | 3151 0 0 | 34750 992 1608 | T:opensslnew | clang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall | 20240713 | 20240625 |
13106556 | 3471 0 0 | 33572 968 1640 | T:opensslnew | gcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall | 20240713 | 20240625 |
13118064 | 3136 0 0 | 34526 992 1608 | T:opensslnew | clang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall | 20240713 | 20240625 |
13138324 | 3035 0 0 | 31359 984 1640 | T:opensslnew | clang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall | 20240713 | 20240625 |
13246576 | 3232 0 0 | 33374 992 1576 | T:opensslnew | clang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall | 20240713 | 20240625 |
Compiler output
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:264:1: note: 'RSA_generate_key' has been explicitly marked deprecated here
keypair.c: OSSL_DEPRECATEDIN_0_9_8 RSA *RSA_generate_key(int bits, unsigned long e, void
keypair.c: ^
keypair.c: /usr/include/openssl/macros.h:260:49: note: expanded from macro 'OSSL_DEPRECATEDIN_0_9_8'
keypair.c: # define OSSL_DEPRECATEDIN_0_9_8 OSSL_DEPRECATED(0.9.8)
keypair.c: ^
keypair.c: /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
keypair.c: # define OSSL_DEPRECATED(since) __attribute__((deprecated))
keypair.c: ^
keypair.c: keypair.c:18:7: warning: 'RSA_size' is deprecated [-Wdeprecated-declarations]
keypair.c: if (RSA_size(r) != MODULUS_BYTES) goto error;
keypair.c: ^
keypair.c: /usr/include/openssl/rsa.h:215:1: note: 'RSA_size' has been explicitly marked deprecated here
keypair.c: OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa);
keypair.c: ^
keypair.c: /usr/include/openssl/macros.h:194:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
keypair.c: # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0)
keypair.c: ^
keypair.c: /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
keypair.c: # define OSSL_DEPRECATED(since) __attribute__((deprecated))
keypair.c: ^
keypair.c: keypair.c:20:23: error: incomplete definition of type 'struct rsa_st'
keypair.c: ...
Number of similar (implementation,compiler) pairs: 5, namely:
Implementation | Compiler |
T:openssl | clang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_16.0.6_(27+b1)) |
T:openssl | clang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_16.0.6_(27+b1)) |
T:openssl | clang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_16.0.6_(27+b1)) |
T:openssl | clang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_16.0.6_(27+b1)) |
T:openssl | clang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_16.0.6_(27+b1)) |
Compiler output
keypair.c: keypair.c: In function 'crypto_encrypt_ronald3072_openssl_timingleaks_keypair':
keypair.c: keypair.c:15:3: warning: 'RSA_generate_key' is deprecated: Since OpenSSL 0.9.8 [-Wdeprecated-declarations]
keypair.c: 15 | r = RSA_generate_key(MODULUS_BYTES * 8,3,0,0);
keypair.c: | ^
keypair.c: In file included from keypair.c:2:
keypair.c: /usr/include/openssl/rsa.h:264:30: note: declared here
keypair.c: 264 | OSSL_DEPRECATEDIN_0_9_8 RSA *RSA_generate_key(int bits, unsigned long e, void
keypair.c: | ^~~~~~~~~~~~~~~~
keypair.c: keypair.c:18:3: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
keypair.c: 18 | if (RSA_size(r) != MODULUS_BYTES) goto error;
keypair.c: | ^~
keypair.c: /usr/include/openssl/rsa.h:215:27: note: declared here
keypair.c: 215 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa);
keypair.c: | ^~~~~~~~
keypair.c: In file included from /usr/include/openssl/asn1.h:36,
keypair.c: from /usr/include/openssl/rsa.h:21:
keypair.c: keypair.c:20:23: error: invalid use of incomplete typedef 'RSA' {aka 'struct rsa_st'}
keypair.c: 20 | len = BN_num_bytes(r->n); if (len > MODULUS_BYTES) goto error;
keypair.c: | ^~
keypair.c: keypair.c:21:36: error: invalid use of incomplete typedef 'RSA' {aka 'struct rsa_st'}
keypair.c: 21 | out += MODULUS_BYTES; BN_bn2bin(r->n,out - len);
keypair.c: | ^~
keypair.c: keypair.c:23:23: error: invalid use of incomplete typedef 'RSA' {aka 'struct rsa_st'}
keypair.c: 23 | len = BN_num_bytes(r->e); if (len > MODULUS_BYTES) goto error;
keypair.c: | ^~
keypair.c: ...
Number of similar (implementation,compiler) pairs: 4, namely:
Implementation | Compiler |
T:openssl | gcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.3.0) |
T:openssl | gcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.3.0) |
T:openssl | gcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.3.0) |
T:openssl | gcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.3.0) |
Compiler output
keypair.c: keypair.c:18:7: warning: 'RSA_new' is deprecated [-Wdeprecated-declarations]
keypair.c: r = RSA_new();
keypair.c: ^
keypair.c: /usr/include/openssl/rsa.h:212:1: note: 'RSA_new' has been explicitly marked deprecated here
keypair.c: OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void);
keypair.c: ^
keypair.c: /usr/include/openssl/macros.h:194:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
keypair.c: # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0)
keypair.c: ^
keypair.c: /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
keypair.c: # define OSSL_DEPRECATED(since) __attribute__((deprecated))
keypair.c: ^
keypair.c: keypair.c:26:8: warning: 'RSA_generate_key_ex' is deprecated [-Wdeprecated-declarations]
keypair.c: if (!RSA_generate_key_ex(r,MODULUS_BYTES*8,b,0)) { BN_free(b); goto error; }
keypair.c: ^
keypair.c: /usr/include/openssl/rsa.h:271:1: note: 'RSA_generate_key_ex' has been explicitly marked deprecated here
keypair.c: OSSL_DEPRECATEDIN_3_0 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e,
keypair.c: ^
keypair.c: /usr/include/openssl/macros.h:194:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
keypair.c: # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0)
keypair.c: ^
keypair.c: /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
keypair.c: # define OSSL_DEPRECATED(since) __attribute__((deprecated))
keypair.c: ^
keypair.c: keypair.c:30:7: warning: 'RSA_size' is deprecated [-Wdeprecated-declarations]
keypair.c: ...
shortciphertext.c: shortciphertext.c:19:12: warning: 'RSA_new' is deprecated [-Wdeprecated-declarations]
shortciphertext.c: RSA *r = RSA_new();
shortciphertext.c: ^
shortciphertext.c: /usr/include/openssl/rsa.h:212:1: note: 'RSA_new' has been explicitly marked deprecated here
shortciphertext.c: OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void);
shortciphertext.c: ^
shortciphertext.c: /usr/include/openssl/macros.h:194:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
shortciphertext.c: # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0)
shortciphertext.c: ^
shortciphertext.c: /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
shortciphertext.c: # define OSSL_DEPRECATED(since) __attribute__((deprecated))
shortciphertext.c: ^
shortciphertext.c: shortciphertext.c:27:25: warning: 'RSA_set0_key' is deprecated [-Wdeprecated-declarations]
shortciphertext.c: if (result == 0) if (!RSA_set0_key(r,n,e,0)) result = -1;
shortciphertext.c: ^
shortciphertext.c: /usr/include/openssl/rsa.h:218:1: note: 'RSA_set0_key' has been explicitly marked deprecated here
shortciphertext.c: OSSL_DEPRECATEDIN_3_0 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
shortciphertext.c: ^
shortciphertext.c: /usr/include/openssl/macros.h:194:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
shortciphertext.c: # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0)
shortciphertext.c: ^
shortciphertext.c: /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
shortciphertext.c: # define OSSL_DEPRECATED(since) __attribute__((deprecated))
shortciphertext.c: ^
shortciphertext.c: shortciphertext.c:29:24: warning: 'RSA_size' is deprecated [-Wdeprecated-declarations]
shortciphertext.c: ...
shortplaintext.c: shortplaintext.c:24:12: warning: 'RSA_new' is deprecated [-Wdeprecated-declarations]
shortplaintext.c: RSA *r = RSA_new();
shortplaintext.c: ^
shortplaintext.c: /usr/include/openssl/rsa.h:212:1: note: 'RSA_new' has been explicitly marked deprecated here
shortplaintext.c: OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void);
shortplaintext.c: ^
shortplaintext.c: /usr/include/openssl/macros.h:194:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
shortplaintext.c: # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0)
shortplaintext.c: ^
shortplaintext.c: /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
shortplaintext.c: # define OSSL_DEPRECATED(since) __attribute__((deprecated))
shortplaintext.c: ^
shortplaintext.c: shortplaintext.c:46:25: warning: 'RSA_set0_key' is deprecated [-Wdeprecated-declarations]
shortplaintext.c: if (result == 0) if (!RSA_set0_key(r,n,e,d)) result = -1;
shortplaintext.c: ^
shortplaintext.c: /usr/include/openssl/rsa.h:218:1: note: 'RSA_set0_key' has been explicitly marked deprecated here
shortplaintext.c: OSSL_DEPRECATEDIN_3_0 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
shortplaintext.c: ^
shortplaintext.c: /usr/include/openssl/macros.h:194:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
shortplaintext.c: # define OSSL_DEPRECATEDIN_3_0 OSSL_DEPRECATED(3.0)
shortplaintext.c: ^
shortplaintext.c: /usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
shortplaintext.c: # define OSSL_DEPRECATED(since) __attribute__((deprecated))
shortplaintext.c: ^
shortplaintext.c: shortplaintext.c:48:25: warning: 'RSA_set0_factors' is deprecated [-Wdeprecated-declarations]
shortplaintext.c: ...
Number of similar (implementation,compiler) pairs: 5, namely:
Implementation | Compiler |
T:opensslnew | clang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_16.0.6_(27+b1)) |
T:opensslnew | clang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_16.0.6_(27+b1)) |
T:opensslnew | clang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_16.0.6_(27+b1)) |
T:opensslnew | clang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_16.0.6_(27+b1)) |
T:opensslnew | clang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_16.0.6_(27+b1)) |
Compiler output
keypair.c: keypair.c: In function 'crypto_encrypt_ronald3072_opensslnew_timingleaks_keypair':
keypair.c: keypair.c:18:3: warning: 'RSA_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
keypair.c: 18 | r = RSA_new();
keypair.c: | ^
keypair.c: In file included from keypair.c:3:
keypair.c: /usr/include/openssl/rsa.h:212:28: note: declared here
keypair.c: 212 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void);
keypair.c: | ^~~~~~~
keypair.c: keypair.c:26:3: warning: 'RSA_generate_key_ex' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
keypair.c: 26 | if (!RSA_generate_key_ex(r,MODULUS_BYTES*8,b,0)) { BN_free(b); goto error; }
keypair.c: | ^~
keypair.c: /usr/include/openssl/rsa.h:271:27: note: declared here
keypair.c: 271 | OSSL_DEPRECATEDIN_3_0 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e,
keypair.c: | ^~~~~~~~~~~~~~~~~~~
keypair.c: keypair.c:30:3: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
keypair.c: 30 | if (RSA_size(r) != MODULUS_BYTES) goto error;
keypair.c: | ^~
keypair.c: /usr/include/openssl/rsa.h:215:27: note: declared here
keypair.c: 215 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa);
keypair.c: | ^~~~~~~~
keypair.c: keypair.c:32:3: warning: 'RSA_get0_n' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
keypair.c: 32 | x = RSA_get0_n(r);
keypair.c: | ^
keypair.c: /usr/include/openssl/rsa.h:243:37: note: declared here
keypair.c: 243 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *RSA_get0_n(const RSA *d);
keypair.c: ...
shortciphertext.c: shortciphertext.c:11:17: warning: argument 1 of type 'unsigned char[384]' with mismatched bound [-Warray-parameter=]
shortciphertext.c: 11 | unsigned char c[ENCRYPTION_BYTES],unsigned long long *clen,
shortciphertext.c: | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
shortciphertext.c: In file included from shortciphertext.c:8:
shortciphertext.c: short.h:9:28: note: previously declared as 'unsigned char *'
shortciphertext.c: 9 | extern int shortciphertext(unsigned char *,unsigned long long *,
shortciphertext.c: | ^~~~~~~~~~~~~~~
shortciphertext.c: shortciphertext.c:12:23: warning: argument 3 of type 'const unsigned char[373]' with mismatched bound [-Warray-parameter=]
shortciphertext.c: 12 | const unsigned char m[SHORTPLAINTEXT_BYTES],const unsigned long long mlen,
shortciphertext.c: | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
shortciphertext.c: short.h:10:3: note: previously declared as 'const unsigned char *'
shortciphertext.c: 10 | const unsigned char *,unsigned long long,const unsigned char *,unsigned long long);
shortciphertext.c: | ^~~~~~~~~~~~~~~~~~~~~
shortciphertext.c: shortciphertext.c:13:23: warning: argument 5 of type 'const unsigned char[384]' with mismatched bound [-Warray-parameter=]
shortciphertext.c: 13 | const unsigned char pk[PUBLICKEY_BYTES],const unsigned long long pklen
shortciphertext.c: | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
shortciphertext.c: short.h:10:44: note: previously declared as 'const unsigned char *'
shortciphertext.c: 10 | const unsigned char *,unsigned long long,const unsigned char *,unsigned long long);
shortciphertext.c: | ^~~~~~~~~~~~~~~~~~~~~
shortciphertext.c: shortciphertext.c: In function 'crypto_encrypt_ronald3072_opensslnew_timingleaks_shortciphertext':
shortciphertext.c: shortciphertext.c:19:3: warning: 'RSA_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
shortciphertext.c: 19 | RSA *r = RSA_new();
shortciphertext.c: | ^~~
shortciphertext.c: In file included from shortciphertext.c:4:
shortciphertext.c: /usr/include/openssl/rsa.h:212:28: note: declared here
shortciphertext.c: ...
shortplaintext.c: shortplaintext.c:10:17: warning: argument 1 of type 'unsigned char[373]' with mismatched bound [-Warray-parameter=]
shortplaintext.c: 10 | unsigned char m[SHORTPLAINTEXT_BYTES],unsigned long long *mlen,
shortplaintext.c: | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
shortplaintext.c: In file included from shortplaintext.c:7:
shortplaintext.c: short.h:7:27: note: previously declared as 'unsigned char *'
shortplaintext.c: 7 | extern int shortplaintext(unsigned char *,unsigned long long *,
shortplaintext.c: | ^~~~~~~~~~~~~~~
shortplaintext.c: shortplaintext.c:11:23: warning: argument 3 of type 'const unsigned char[384]' with mismatched bound [-Warray-parameter=]
shortplaintext.c: 11 | const unsigned char c[ENCRYPTION_BYTES],const unsigned long long clen,
shortplaintext.c: | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
shortplaintext.c: short.h:8:3: note: previously declared as 'const unsigned char *'
shortplaintext.c: 8 | const unsigned char *,unsigned long long,const unsigned char *,unsigned long long);
shortplaintext.c: | ^~~~~~~~~~~~~~~~~~~~~
shortplaintext.c: shortplaintext.c:12:23: warning: argument 5 of type 'const unsigned char[3072]' with mismatched bound [-Warray-parameter=]
shortplaintext.c: 12 | const unsigned char sk[SECRETKEY_BYTES],const unsigned long long sklen
shortplaintext.c: | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
shortplaintext.c: short.h:8:44: note: previously declared as 'const unsigned char *'
shortplaintext.c: 8 | const unsigned char *,unsigned long long,const unsigned char *,unsigned long long);
shortplaintext.c: | ^~~~~~~~~~~~~~~~~~~~~
shortplaintext.c: shortplaintext.c: In function 'crypto_encrypt_ronald3072_opensslnew_timingleaks_shortplaintext':
shortplaintext.c: shortplaintext.c:24:3: warning: 'RSA_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
shortplaintext.c: 24 | RSA *r = RSA_new();
shortplaintext.c: | ^~~
shortplaintext.c: In file included from shortplaintext.c:3:
shortplaintext.c: /usr/include/openssl/rsa.h:212:28: note: declared here
shortplaintext.c: ...
Number of similar (implementation,compiler) pairs: 4, namely:
Implementation | Compiler |
T:opensslnew | gcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.3.0) |
T:opensslnew | gcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.3.0) |
T:opensslnew | gcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.3.0) |
T:opensslnew | gcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.3.0) |