Implementation notes: riscv64, riscvunleashed000, crypto_sign/ronald512

Computer: riscvunleashed000
Microarchitecture: riscv64; U54 (sifive,u54-mc)
Architecture: riscv64
CPU ID: unknown CPU ID
SUPERCOP version: 20240107
Operation: crypto_sign
Primitive: ronald512

Compiler output

Implementation: T:openssl
Security model: timingleaks
Compiler: clang -march=rv64imafdc -mtune=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:253: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:248: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:204: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:182: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 (compiler,implementation) pairs: 5, namely:
CompilerImplementations
clang -march=rv64imafdc -mtune=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:openssl
clang -march=rv64imafdc -mtune=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:openssl
clang -march=rv64imafdc -mtune=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:openssl
clang -march=rv64imafdc -mtune=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 -mcpu=sifive-u54 -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
keypair.c: keypair.c: In function 'crypto_sign_ronald512_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: In file included from keypair.c:2:
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: from keypair.c:2:
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: In file included from /usr/include/openssl/asn1.h:33,
keypair.c: ...

Number of similar (compiler,implementation) pairs: 4, namely:
CompilerImplementations
gcc -mcpu=sifive-u54 -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:openssl
gcc -mcpu=sifive-u54 -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:openssl
gcc -mcpu=sifive-u54 -O -fomit-frame-pointer -fwrapv -fPIC -fPIE T:openssl
gcc -mcpu=sifive-u54 -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE T:openssl

Compiler output

Implementation: T:opensslnew
Security model: timingleaks
Compiler: clang -march=rv64imafdc -mtune=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
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:201: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:182: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:260: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:182: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: ...

Number of similar (compiler,implementation) pairs: 5, namely:
CompilerImplementations
clang -march=rv64imafdc -mtune=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:opensslnew
clang -march=rv64imafdc -mtune=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:opensslnew
clang -march=rv64imafdc -mtune=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:opensslnew
clang -march=rv64imafdc -mtune=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 -mcpu=sifive-u54 -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
keypair.c: keypair.c: In function 'crypto_sign_ronald512_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: In file included from keypair.c:3:
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: In file included from keypair.c:3:
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: ...

Number of similar (compiler,implementation) pairs: 3, namely:
CompilerImplementations
gcc -mcpu=sifive-u54 -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:opensslnew
gcc -mcpu=sifive-u54 -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:opensslnew
gcc -mcpu=sifive-u54 -O -fomit-frame-pointer -fwrapv -fPIC -fPIE T:opensslnew

Compiler output

Implementation: T:opensslnew
Security model: timingleaks
Compiler: gcc -mcpu=sifive-u54 -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE
keypair.c: keypair.c: In function 'crypto_sign_ronald512_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: In file included from keypair.c:3:
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: In file included from keypair.c:3:
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: ...
shortmessagesigned.c: shortmessagesigned.c: In function 'crypto_sign_ronald512_opensslnew_timingleaks_shortmessagesigned':
shortmessagesigned.c: shortmessagesigned.c:16:3: warning: 'RSA_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
shortmessagesigned.c: 16 | RSA *r = RSA_new();
shortmessagesigned.c: | ^~~
shortmessagesigned.c: In file included from shortmessagesigned.c:4:
shortmessagesigned.c: /usr/include/openssl/rsa.h:201:28: note: declared here
shortmessagesigned.c: 201 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void);
shortmessagesigned.c: | ^~~~~~~
shortmessagesigned.c: shortmessagesigned.c:27:3: warning: 'RSA_set0_key' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
shortmessagesigned.c: 27 | if (!result) if (!RSA_set0_key(r,n,e,0)) result = -1;
shortmessagesigned.c: | ^~
shortmessagesigned.c: In file included from shortmessagesigned.c:4:
shortmessagesigned.c: /usr/include/openssl/rsa.h:207:27: note: declared here
shortmessagesigned.c: 207 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
shortmessagesigned.c: | ^~~~~~~~~~~~
shortmessagesigned.c: shortmessagesigned.c:29:3: warning: 'RSA_size' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
shortmessagesigned.c: 29 | if (!result) if (RSA_size(r) > MODULUS_BYTES) result = -1;
shortmessagesigned.c: | ^~
shortmessagesigned.c: In file included from shortmessagesigned.c:4:
shortmessagesigned.c: /usr/include/openssl/rsa.h:204:27: note: declared here
shortmessagesigned.c: 204 | OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa);
shortmessagesigned.c: | ^~~~~~~~
shortmessagesigned.c: shortmessagesigned.c:30:3: warning: 'RSA_public_decrypt' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
shortmessagesigned.c: 30 | if (!result) recoveredlen = RSA_public_decrypt(smlen,sm,m,r,RSA_PKCS1_PADDING);
shortmessagesigned.c: | ^~
shortmessagesigned.c: ...

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