Implementation notes: aarch64, pi3bplus, crypto_encrypt/ronald1536

Computer: pi3bplus
Microarchitecture: aarch64; Cortex-A53 (410fd034)
Architecture: aarch64
CPU ID: 410fd034
SUPERCOP version: 202311020231107
Operation: crypto_encrypt
Primitive: ronald1536
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
91876252500 0 033013 1016 1584T:opensslnewgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023120420231107

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_ronald1536_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:253:30: note: declared here
keypair.c: 253 | 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:204:27: note: declared here
keypair.c: 204 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa);
keypair.c: | ^~~~~~~~
keypair.c: In file included from /usr/include/openssl/asn1.h:33,
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 (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: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
keypair.c: keypair.c: In function 'crypto_encrypt_ronald1536_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:201:28: note: declared here
keypair.c: 201 | 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:260:27: note: declared here
keypair.c: 260 | 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:204:27: note: declared here
keypair.c: 204 | 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:232:37: note: declared here
keypair.c: 232 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *RSA_get0_n(const RSA *d);
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 -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:opensslnew
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE T:opensslnew

Compiler output

Implementation: T:opensslnew
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE
keypair.c: keypair.c: In function 'crypto_encrypt_ronald1536_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:201:28: note: declared here
keypair.c: 201 | 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:260:27: note: declared here
keypair.c: 260 | 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:204:27: note: declared here
keypair.c: 204 | 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:232:37: note: declared here
keypair.c: 232 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *RSA_get0_n(const RSA *d);
keypair.c: ...
shortciphertext.c: shortciphertext.c: In function 'crypto_encrypt_ronald1536_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:201:28: note: declared here
shortciphertext.c: 201 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void);
shortciphertext.c: | ^~~~~~~
shortciphertext.c: shortciphertext.c:27:3: warning: 'RSA_set0_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
shortciphertext.c: 27 | if (result == 0) if (!RSA_set0_key(r,n,e,0)) result = -1;
shortciphertext.c: | ^~
shortciphertext.c: /usr/include/openssl/rsa.h:207:27: note: declared here
shortciphertext.c: 207 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
shortciphertext.c: | ^~~~~~~~~~~~
shortciphertext.c: shortciphertext.c:29:3: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
shortciphertext.c: 29 | if (result == 0) if (RSA_size(r) > MODULUS_BYTES) result = -1;
shortciphertext.c: | ^~
shortciphertext.c: /usr/include/openssl/rsa.h:204:27: note: declared here
shortciphertext.c: 204 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa);
shortciphertext.c: | ^~~~~~~~
shortciphertext.c: shortciphertext.c:30:3: warning: 'RSA_public_encrypt' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
shortciphertext.c: 30 | if (result == 0) if (RSA_public_encrypt(mlen,m,c,r,RSA_PKCS1_PADDING) != MODULUS_BYTES) result = -1;
shortciphertext.c: | ^~
shortciphertext.c: /usr/include/openssl/rsa.h:282:5: note: declared here
shortciphertext.c: 282 | int RSA_public_encrypt(int flen, const unsigned char *from, unsigned char *to,
shortciphertext.c: ...
shortplaintext.c: shortplaintext.c: In function 'crypto_encrypt_ronald1536_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:201:28: note: declared here
shortplaintext.c: 201 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void);
shortplaintext.c: | ^~~~~~~
shortplaintext.c: shortplaintext.c:46:3: warning: 'RSA_set0_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
shortplaintext.c: 46 | if (result == 0) if (!RSA_set0_key(r,n,e,d)) result = -1;
shortplaintext.c: | ^~
shortplaintext.c: /usr/include/openssl/rsa.h:207:27: note: declared here
shortplaintext.c: 207 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
shortplaintext.c: | ^~~~~~~~~~~~
shortplaintext.c: shortplaintext.c:48:3: warning: 'RSA_set0_factors' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
shortplaintext.c: 48 | if (result == 0) if (!RSA_set0_factors(r,p,q)) result = -1;
shortplaintext.c: | ^~
shortplaintext.c: /usr/include/openssl/rsa.h:208:27: note: declared here
shortplaintext.c: 208 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q);
shortplaintext.c: | ^~~~~~~~~~~~~~~~
shortplaintext.c: shortplaintext.c:50:3: warning: 'RSA_set0_crt_params' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
shortplaintext.c: 50 | if (result == 0) if (!RSA_set0_crt_params(r,dmp1,dmq1,iqmp)) result = -1;
shortplaintext.c: | ^~
shortplaintext.c: /usr/include/openssl/rsa.h:209:27: note: declared here
shortplaintext.c: 209 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_crt_params(RSA *r,
shortplaintext.c: ...

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