Implementation notes: amd64, hertz, crypto_encrypt/mcnie4q2561

Computer: hertz
Microarchitecture: amd64; Zen 4 (a60f12)
Architecture: amd64
CPU ID: AuthenticAMD-00a60f12-178bfbff
SUPERCOP version: 20240716
Operation: crypto_encrypt
Primitive: mcnie4q2561
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
756920698672 6 52131146 884 1896T:refclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071720240716
7693283104529 6 52137130 884 1896T:refclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071720240716
802880359613 6 5287914 860 1960T:refgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071720240716
838880043436 6 5269698 860 1896T:refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071720240716
844314936057 6 5262602 868 1896T:refclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071720240716
1042949731734 6 5256554 852 1864T:refgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071720240716

Compiler output


bin_vec.c: bin_vec.c:201:8: warning: unused variable 'last' [-Wunused-variable]
bin_vec.c:   201 |         short last = x->size - ((n-1)<<5);
bin_vec.c:       |               ^~~~
bin_vec.c: 1 warning generated.
conv.c: conv.c:142:4: warning: misleading indentation; statement is not part of the previous 'for' [-Wmisleading-indentation]
conv.c:   142 |           for( i=0 ; i<nr ; i++ )
conv.c:       |           ^
conv.c: conv.c:127:2: note: previous statement is here
conv.c:   127 |         for( i=0 ; i<nr ; i++ )
conv.c:       |         ^
conv.c: 1 warning generated.
crypt.c: crypt.c:847:29: warning: variable 'cip_len' set but not used [-Wunused-but-set-variable]
crypt.c:   847 |         unsigned long long msg_len,cip_len,er_dat_len,y_len;
crypt.c:       |                                    ^
crypt.c: crypt.c:906:29: warning: variable 'cip_len' set but not used [-Wunused-but-set-variable]
crypt.c:   906 |         unsigned long long msg_len,cip_len,er_dat_len;
crypt.c:       |                                    ^
crypt.c: crypt.c:987:31: warning: variable 'res_bytes' set but not used [-Wunused-but-set-variable]
crypt.c:   987 |         unsigned long long num_block,res_bytes,real_mlen;
crypt.c:       |                                      ^
crypt.c: 3 warnings generated.

Number of similar (implementation,compiler) pairs: 3, namely:
ImplementationCompiler
T:refclang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:refclang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:refclang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))

Compiler output


bin_vec.c: bin_vec.c: In function 'Shift':
bin_vec.c: bin_vec.c:201:15: warning: unused variable 'last' [-Wunused-variable]
bin_vec.c:   201 |         short last = x->size - ((n-1)<<5);
bin_vec.c:       |               ^~~~
conv.c: conv.c: In function 'conv':
conv.c: conv.c:127:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
conv.c:   127 |         for( i=0 ; i<nr ; i++ )
conv.c:       |         ^~~
conv.c: conv.c:142:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
conv.c:   142 |           for( i=0 ; i<nr ; i++ )
conv.c:       |           ^~~
crypt.c: crypt.c: In function 'crypto_encrypt_mcnie4q2561_ref_timingleaks':
crypt.c: crypt.c:987:38: warning: variable 'res_bytes' set but not used [-Wunused-but-set-variable]
crypt.c:   987 |         unsigned long long num_block,res_bytes,real_mlen;
crypt.c:       |                                      ^~~~~~~~~
crypt.c: crypt.c: In function 'error_space':
crypt.c: crypt.c:1176:12: warning: '*Fs' may be used uninitialized [-Wmaybe-uninitialized]
crypt.c:  1176 |         er = Fs[0];  rr = N;
crypt.c:       |         ~~~^~~~~~~
matrix.c: matrix.c: In function 'mat_inv':
matrix.c: matrix.c:325:18: warning: '*<unknown>' may be used uninitialized [-Wmaybe-uninitialized]
matrix.c:   325 |         if( B.dat[N-1][N-1] != 1 )
matrix.c:       |             ~~~~~^~~~~

Number of similar (implementation,compiler) pairs: 2, namely:
ImplementationCompiler
T:refgcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:refgcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)

Compiler output


bin_vec.c: bin_vec.c: In function 'Shift':
bin_vec.c: bin_vec.c:201:15: warning: unused variable 'last' [-Wunused-variable]
bin_vec.c:   201 |         short last = x->size - ((n-1)<<5);
bin_vec.c:       |               ^~~~
conv.c: conv.c: In function 'conv':
conv.c: conv.c:127:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
conv.c:   127 |         for( i=0 ; i<nr ; i++ )
conv.c:       |         ^~~
conv.c: conv.c:142:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
conv.c:   142 |           for( i=0 ; i<nr ; i++ )
conv.c:       |           ^~~
crypt.c: crypt.c: In function 'crypto_encrypt_mcnie4q2561_ref_timingleaks':
crypt.c: crypt.c:987:38: warning: variable 'res_bytes' set but not used [-Wunused-but-set-variable]
crypt.c:   987 |         unsigned long long num_block,res_bytes,real_mlen;
crypt.c:       |                                      ^~~~~~~~~

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
T:refgcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)

Namespace violations


aes256.o aes256_decrypt_ecb T
aes256.o aes256_done T
aes256.o aes256_encrypt_ecb T
aes256.o aes256_init T
bin_vec.o Shift T
bin_vec.o chk_zero T
bin_vec.o gauss_elm T
bin_vec.o gen_vec T
bin_vec.o gen_vec_copy T
bin_vec.o gen_vec_rand T
bin_vec.o gen_vec_zero T
bin_vec.o get_elt T
bin_vec.o print_bin T
bin_vec.o put_elt T
bin_vec.o vec_add T
bin_vec.o vec_sum T
bin_vec.o vec_swap T
conv.o conv T
conv.o inv_conv T
crypt.o Const_bytes R
crypt.o blk D
crypt.o d D
crypt.o decrypt_one_block T
crypt.o decrypt_one_block_INDCCA2 T
crypt.o decrypt_one_block_return_error T
crypt.o dual_space T
crypt.o encrypt_one_block T
crypt.o encrypt_one_block_INDCCA2 T
crypt.o encrypt_one_block_given_error T
crypt.o error_space T
crypt.o free_LRP T
crypt.o gen_4Q T
crypt.o r D
crypt.o syndrome_decode T
crypt.o vec_sp_inter T
gf.o Div T
gf.o Gauss_elimination T
gf.o _m R
gf.o base_poly R
gf.o bin2gf T
gf.o bin_rank T
gf.o gen_indep_vec T
gf.o gen_rand_vec T
gf.o gf2bin T
gf.o gf_add T
gf.o gf_inverse T
gf.o gf_mul T
gf.o gf_sum T
gf.o rand_gf T
gf.o vec_get_elt T
gf.o vec_print T
gf.o vec_put_elt T
gf.o vec_size T
matrix.o free_matrix T
matrix.o gen_matrix T
matrix.o gen_matrix_id T
matrix.o gf_gauss_elm T
matrix.o gf_gauss_elm2 T
matrix.o mat_inv T
matrix.o mat_mul T
matrix.o mat_mul_t T
matrix.o mat_rank T
matrix.o print_matrix T
rng.o AES256_CTR_DRBG_Update T
rng.o AES256_ECB T
rng.o DRBG_ctx B
rng.o seedexpander T
rng.o seedexpander_init T
rng.o xrandombytes T
rng.o xrandombytes_init T
sha3.o SHA3_Final T
sha3.o SHA3_Init T
sha3.o SHA3_Transform T
sha3.o SHA3_Update T
sha3.o keccakf_piln R
sha3.o keccakf_rndc R
sha3.o keccakf_rotc R

Number of similar (implementation,compiler) pairs: 6, namely:
ImplementationCompiler
T:refclang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:refclang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:refclang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:refgcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:refgcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:refgcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)