Implementation notes: amd64, r24000, crypto_sign/sflashv2
Computer: r24000
Microarchitecture: amd64; Coffee Lake (906ea)
Architecture: amd64
CPU ID: GenuineIntel-000906ea-bfebfbff
SUPERCOP version: 20240808
Operation: crypto_sign
Primitive: sflashv2
Compiler output
keypair.c: keypair.c:10:18: warning: unused variable 'seed' [-Wunused-variable]
keypair.c: unsigned char *seed;
keypair.c: ^
keypair.c: keypair.c:11:7: warning: unused variable 'length' [-Wunused-variable]
keypair.c: int length;
keypair.c: ^
keypair.c: 2 warnings generated.
lib_flash.c: lib_flash.c:270:29: warning: argument 'QUAD' of type 'unsigned char[37][37][37]' with mismatched bound [-Warray-parameter]
lib_flash.c: void priv_pub(unsigned char QUAD[37][37][37], unsigned char LIN[37][37], unsigned char CONS[37], unsigned char S1[37][37],unsigned char S2[37], unsigned char T1[37][37],unsigned char T2[37], unsigned char M[16384])
lib_flash.c: ^
lib_flash.c: ./lib_flash.h:38:29: note: previously declared as 'unsigned char[26][37][37]' here
lib_flash.c: void priv_pub(unsigned char QUAD[26][37][37], unsigned char LIN[26][37], unsigned char CONS[26],
lib_flash.c: ^
lib_flash.c: lib_flash.c:270:61: warning: argument 'LIN' of type 'unsigned char[37][37]' with mismatched bound [-Warray-parameter]
lib_flash.c: void priv_pub(unsigned char QUAD[37][37][37], unsigned char LIN[37][37], unsigned char CONS[37], unsigned char S1[37][37],unsigned char S2[37], unsigned char T1[37][37],unsigned char T2[37], unsigned char M[16384])
lib_flash.c: ^
lib_flash.c: ./lib_flash.h:38:61: note: previously declared as 'unsigned char[26][37]' here
lib_flash.c: void priv_pub(unsigned char QUAD[26][37][37], unsigned char LIN[26][37], unsigned char CONS[26],
lib_flash.c: ^
lib_flash.c: lib_flash.c:270:88: warning: argument 'CONS' of type 'unsigned char[37]' with mismatched bound [-Warray-parameter]
lib_flash.c: void priv_pub(unsigned char QUAD[37][37][37], unsigned char LIN[37][37], unsigned char CONS[37], unsigned char S1[37][37],unsigned char S2[37], unsigned char T1[37][37],unsigned char T2[37], unsigned char M[16384])
lib_flash.c: ^
lib_flash.c: ./lib_flash.h:38:88: note: previously declared as 'unsigned char[26]' here
lib_flash.c: void priv_pub(unsigned char QUAD[26][37][37], unsigned char LIN[26][37], unsigned char CONS[26],
lib_flash.c: ^
lib_flash.c: lib_flash.c:409:50: warning: '/*' within block comment [-Wcomment]
lib_flash.c: init_table_flash(CK->M,/*CK->I,*/CK->M1/*,CK->M2/* /*,CK->M3*/);
lib_flash.c: ^
lib_flash.c: lib_flash.c:409:53: warning: '/*' within block comment [-Wcomment]
lib_flash.c: init_table_flash(CK->M,/*CK->I,*/CK->M1/*,CK->M2/* /*,CK->M3*/);
lib_flash.c: ^
lib_flash.c: lib_flash.c:690:3: warning: '/*' within block comment [-Wcomment]
lib_flash.c: ...
Number of similar (implementation,compiler) pairs: 5, namely:
Implementation | Compiler |
T:ref | clang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_16.0.6_(15)) |
T:ref | clang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_16.0.6_(15)) |
T:ref | clang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_16.0.6_(15)) |
T:ref | clang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_16.0.6_(15)) |
T:ref | clang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_16.0.6_(15)) |
Compiler output
keypair.c: keypair.c: In function 'crypto_sign_sflashv2_ref_timingleaks_keypair':
keypair.c: keypair.c:11:7: warning: unused variable 'length' [-Wunused-variable]
keypair.c: 11 | int length;
keypair.c: | ^~~~~~
keypair.c: keypair.c:10:18: warning: unused variable 'seed' [-Wunused-variable]
keypair.c: 10 | unsigned char *seed;
keypair.c: | ^~~~
lib_flash.c: lib_flash.c:270:29: warning: argument 1 of type 'unsigned char[37][37][37]' with mismatched bound [-Warray-parameter=]
lib_flash.c: 270 | void priv_pub(unsigned char QUAD[37][37][37], unsigned char LIN[37][37], unsigned char CONS[37], unsigned char S1[37][37],unsigned char S2[37], unsigned char T1[37][37],unsigned char T2[37], unsigned char M[16384])
lib_flash.c: | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
lib_flash.c: In file included from lib_flash.c:6:
lib_flash.c: lib_flash.h:38:29: note: previously declared as 'unsigned char[26][37][37]'
lib_flash.c: 38 | void priv_pub(unsigned char QUAD[26][37][37], unsigned char LIN[26][37], unsigned char CONS[26],
lib_flash.c: | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
lib_flash.c: lib_flash.c:270:61: warning: argument 2 of type 'unsigned char[37][37]' with mismatched bound [-Warray-parameter=]
lib_flash.c: 270 | void priv_pub(unsigned char QUAD[37][37][37], unsigned char LIN[37][37], unsigned char CONS[37], unsigned char S1[37][37],unsigned char S2[37], unsigned char T1[37][37],unsigned char T2[37], unsigned char M[16384])
lib_flash.c: | ~~~~~~~~~~~~~~^~~~~~~~~~~
lib_flash.c: lib_flash.h:38:61: note: previously declared as 'unsigned char[26][37]'
lib_flash.c: 38 | void priv_pub(unsigned char QUAD[26][37][37], unsigned char LIN[26][37], unsigned char CONS[26],
lib_flash.c: | ~~~~~~~~~~~~~~^~~~~~~~~~~
lib_flash.c: lib_flash.c:270:88: warning: argument 3 of type 'unsigned char[37]' with mismatched bound [-Warray-parameter=]
lib_flash.c: 270 | void priv_pub(unsigned char QUAD[37][37][37], unsigned char LIN[37][37], unsigned char CONS[37], unsigned char S1[37][37],unsigned char S2[37], unsigned char T1[37][37],unsigned char T2[37], unsigned char M[16384])
lib_flash.c: | ~~~~~~~~~~~~~~^~~~~~~~
lib_flash.c: lib_flash.h:38:88: note: previously declared as 'unsigned char[26]'
lib_flash.c: 38 | void priv_pub(unsigned char QUAD[26][37][37], unsigned char LIN[26][37], unsigned char CONS[26],
lib_flash.c: | ~~~~~~~~~~~~~~^~~~~~~~
lib_flash.c: lib_flash.c: In function 'Flash_build_complete_key':
lib_flash.c: lib_flash.c:409:57: warning: "/*" within comment [-Wcomment]
lib_flash.c: 409 | init_table_flash(CK->M,/*CK->I,*/CK->M1/*,CK->M2/* /*,CK->M3*/);
lib_flash.c: |
lib_flash.c: lib_flash.c:409:60: warning: "/*" within comment [-Wcomment]
lib_flash.c: lib_flash.c: In function 'Flash_decrypt':
lib_flash.c: ...
Number of similar (implementation,compiler) pairs: 4, namely:
Implementation | Compiler |
T:ref | gcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0) |
T:ref | gcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0) |
T:ref | gcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0) |
T:ref | gcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0) |