Implementation notes: riscv64, riscvunleashed000, crypto_stream/trivium

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

Compiler output

Implementation: T:e/submissions/trivium
Security model: timingleaks
Compiler: clang -march=rv64imafdc -mtune=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
trivium.c: In file included from trivium.c:1:
trivium.c: ./e/trivium.c:212:18: warning: implicit declaration of function 'U64TO64_LITTLE' is invalid in C99 [-Wimplicit-function-declaration]
trivium.c: ctx->init[0] = U64TO64_CONVERT(ctx->init[0]);
trivium.c: ^
trivium.c: ./e/trivium.c:43:25: note: expanded from macro 'U64TO64_CONVERT'
trivium.c: #define U64TO64_CONVERT U64TO64_LITTLE
trivium.c: ^
trivium.c: ./e/trivium.c:244:19: warning: implicit declaration of function 'U64TO64_LITTLE' is invalid in C99 [-Wimplicit-function-declaration]
trivium.c: ctx->state[2] = U64TO64_CONVERT(ctx->state[2]);
trivium.c: ^
trivium.c: ./e/trivium.c:43:25: note: expanded from macro 'U64TO64_CONVERT'
trivium.c: #define U64TO64_CONVERT U64TO64_LITTLE
trivium.c: ^
trivium.c: ./e/trivium.c:284:7: warning: implicit declaration of function 'U64TO64_LITTLE' is invalid in C99 [-Wimplicit-function-declaration]
trivium.c: M64TO64_CONVERT(z[0]); ((m64*)output)[0] = XOR(((m64*)input)[0], z[0]);
trivium.c: ^
trivium.c: ./e/trivium.c:44:25: note: expanded from macro 'M64TO64_CONVERT'
trivium.c: #define M64TO64_CONVERT M64TO64_LITTLE
trivium.c: ^
trivium.c: ./e/trivium.c:94:32: note: expanded from macro 'M64TO64_LITTLE'
trivium.c: #define M64TO64_LITTLE(m) (m = U64TO64_LITTLE(m))
trivium.c: ^
trivium.c: ./e/trivium.c:297:4: warning: implicit declaration of function 'U64TO64_LITTLE' is invalid in C99 [-Wimplicit-function-declaration]
trivium.c: M64TO64_CONVERT(z);
trivium.c: ^
trivium.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:e/submissions/trivium
clang -march=rv64imafdc -mtune=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:e/submissions/trivium
clang -march=rv64imafdc -mtune=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:e/submissions/trivium
clang -march=rv64imafdc -mtune=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:e/submissions/trivium
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:e/submissions/trivium

Compiler output

Implementation: T:e/submissions/trivium
Security model: timingleaks
Compiler: gcc -mcpu=sifive-u54 -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
trivium.c: In file included from trivium.c:1:
trivium.c: e/trivium.c: In function 'crypto_stream_trivium_e_submissions_trivium_timingleaks_ECRYPT_keysetup':
trivium.c: e/trivium.c:43:25: warning: implicit declaration of function 'U64TO64_LITTLE'; did you mean 'M64TO64_LITTLE'? [-Wimplicit-function-declaration]
trivium.c: 43 | #define U64TO64_CONVERT U64TO64_LITTLE
trivium.c: | ^~~~~~~~~~~~~~
trivium.c: e/trivium.c:212:18: note: in expansion of macro 'U64TO64_CONVERT'
trivium.c: 212 | ctx->init[0] = U64TO64_CONVERT(ctx->init[0]);
trivium.c: | ^~~~~~~~~~~~~~~
try.c: /usr/bin/ld: libcrypto_stream_trivium.a(trivium.o): in function `.L4':
try.c: trivium.c:(.text+0x...): undefined reference to `U64TO64_LITTLE'
try.c: /usr/bin/ld: trivium.c:(.text+0x...): undefined reference to `U64TO64_LITTLE'
try.c: /usr/bin/ld: libcrypto_stream_trivium.a(trivium.o): in function `.L11':
try.c: trivium.c:(.text+0x...): undefined reference to `U64TO64_LITTLE'
try.c: /usr/bin/ld: libcrypto_stream_trivium.a(trivium.o): in function `.L10':
try.c: trivium.c:(.text+0x...): undefined reference to `U64TO64_LITTLE'
try.c: /usr/bin/ld: libcrypto_stream_trivium.a(trivium.o): in function `.L19':
try.c: trivium.c:(.text+0x...): undefined reference to `U64TO64_LITTLE'
try.c: /usr/bin/ld: libcrypto_stream_trivium.a(trivium.o):trivium.c:(.text+0x...): more undefined references to `U64TO64_LITTLE' follow
try.c: collect2: error: ld returned 1 exit status

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
gcc -mcpu=sifive-u54 -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:e/submissions/trivium

Compiler output

Implementation: T:e/submissions/trivium
Security model: timingleaks
Compiler: gcc -mcpu=sifive-u54 -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE
trivium.c: In file included from trivium.c:1:
trivium.c: e/trivium.c: In function 'crypto_stream_trivium_e_submissions_trivium_timingleaks_ECRYPT_keysetup':
trivium.c: e/trivium.c:43:25: warning: implicit declaration of function 'U64TO64_LITTLE'; did you mean 'M64TO64_LITTLE'? [-Wimplicit-function-declaration]
trivium.c: 43 | #define U64TO64_CONVERT U64TO64_LITTLE
trivium.c: | ^~~~~~~~~~~~~~
trivium.c: e/trivium.c:212:18: note: in expansion of macro 'U64TO64_CONVERT'
trivium.c: 212 | ctx->init[0] = U64TO64_CONVERT(ctx->init[0]);
trivium.c: | ^~~~~~~~~~~~~~~
try.c: /usr/bin/ld: libcrypto_stream_trivium.a(trivium.o): in function `.L4':
try.c: trivium.c:(.text+0x...): undefined reference to `U64TO64_LITTLE'
try.c: /usr/bin/ld: trivium.c:(.text+0x...): undefined reference to `U64TO64_LITTLE'
try.c: /usr/bin/ld: libcrypto_stream_trivium.a(trivium.o): in function `.L23':
try.c: trivium.c:(.text+0x...): undefined reference to `U64TO64_LITTLE'
try.c: /usr/bin/ld: libcrypto_stream_trivium.a(trivium.o): in function `.L21':
try.c: trivium.c:(.text+0x...): undefined reference to `U64TO64_LITTLE'
try.c: /usr/bin/ld: libcrypto_stream_trivium.a(trivium.o): in function `.L41':
try.c: trivium.c:(.text+0x...): undefined reference to `U64TO64_LITTLE'
try.c: /usr/bin/ld: libcrypto_stream_trivium.a(trivium.o):trivium.c:(.text+0x...): more undefined references to `U64TO64_LITTLE' follow
try.c: collect2: error: ld returned 1 exit status

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
gcc -mcpu=sifive-u54 -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:e/submissions/trivium

Compiler output

Implementation: T:e/submissions/trivium
Security model: timingleaks
Compiler: gcc -mcpu=sifive-u54 -O -fomit-frame-pointer -fwrapv -fPIC -fPIE
trivium.c: In file included from trivium.c:1:
trivium.c: e/trivium.c: In function 'crypto_stream_trivium_e_submissions_trivium_timingleaks_ECRYPT_keysetup':
trivium.c: e/trivium.c:43:25: warning: implicit declaration of function 'U64TO64_LITTLE'; did you mean 'M64TO64_LITTLE'? [-Wimplicit-function-declaration]
trivium.c: 43 | #define U64TO64_CONVERT U64TO64_LITTLE
trivium.c: | ^~~~~~~~~~~~~~
trivium.c: e/trivium.c:212:18: note: in expansion of macro 'U64TO64_CONVERT'
trivium.c: 212 | ctx->init[0] = U64TO64_CONVERT(ctx->init[0]);
trivium.c: | ^~~~~~~~~~~~~~~
try.c: /usr/bin/ld: libcrypto_stream_trivium.a(trivium.o): in function `.L3':
try.c: trivium.c:(.text+0x...): undefined reference to `U64TO64_LITTLE'
try.c: /usr/bin/ld: trivium.c:(.text+0x...): undefined reference to `U64TO64_LITTLE'
try.c: /usr/bin/ld: libcrypto_stream_trivium.a(trivium.o): in function `.L9':
try.c: trivium.c:(.text+0x...): undefined reference to `U64TO64_LITTLE'
try.c: /usr/bin/ld: libcrypto_stream_trivium.a(trivium.o): in function `.L8':
try.c: trivium.c:(.text+0x...): undefined reference to `U64TO64_LITTLE'
try.c: /usr/bin/ld: libcrypto_stream_trivium.a(trivium.o): in function `.L16':
try.c: trivium.c:(.text+0x...): undefined reference to `U64TO64_LITTLE'
try.c: /usr/bin/ld: libcrypto_stream_trivium.a(trivium.o):trivium.c:(.text+0x...): more undefined references to `U64TO64_LITTLE' follow
try.c: collect2: error: ld returned 1 exit status

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
gcc -mcpu=sifive-u54 -O -fomit-frame-pointer -fwrapv -fPIC -fPIE T:e/submissions/trivium

Compiler output

Implementation: T:e/submissions/trivium
Security model: timingleaks
Compiler: gcc -mcpu=sifive-u54 -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE
trivium.c: In file included from trivium.c:1:
trivium.c: e/trivium.c: In function 'crypto_stream_trivium_e_submissions_trivium_timingleaks_ECRYPT_keysetup':
trivium.c: e/trivium.c:43:25: warning: implicit declaration of function 'U64TO64_LITTLE'; did you mean 'M64TO64_LITTLE'? [-Wimplicit-function-declaration]
trivium.c: 43 | #define U64TO64_CONVERT U64TO64_LITTLE
trivium.c: | ^~~~~~~~~~~~~~
trivium.c: e/trivium.c:212:18: note: in expansion of macro 'U64TO64_CONVERT'
trivium.c: 212 | ctx->init[0] = U64TO64_CONVERT(ctx->init[0]);
trivium.c: | ^~~~~~~~~~~~~~~
try.c: /usr/bin/ld: libcrypto_stream_trivium.a(trivium.o): in function `.L3':
try.c: trivium.c:(.text+0x...): undefined reference to `U64TO64_LITTLE'
try.c: /usr/bin/ld: trivium.c:(.text+0x...): undefined reference to `U64TO64_LITTLE'
try.c: /usr/bin/ld: libcrypto_stream_trivium.a(trivium.o): in function `.L7':
try.c: trivium.c:(.text+0x...): undefined reference to `U64TO64_LITTLE'
try.c: /usr/bin/ld: trivium.c:(.text+0x...): undefined reference to `U64TO64_LITTLE'
try.c: /usr/bin/ld: libcrypto_stream_trivium.a(trivium.o): in function `.L14':
try.c: trivium.c:(.text+0x...): undefined reference to `U64TO64_LITTLE'
try.c: /usr/bin/ld: libcrypto_stream_trivium.a(trivium.o):trivium.c:(.text+0x...): more undefined references to `U64TO64_LITTLE' follow
try.c: collect2: error: ld returned 1 exit status

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