Implementation notes: amd64, panther, crypto_encrypt/mcnie4q1282

Computer: panther
Microarchitecture: amd64; Tiger Lake (806c1)
Architecture: amd64
CPU ID: GenuineIntel-000806c1-00-bfebfbff
SUPERCOP version: 20240716
Operation: crypto_encrypt
Primitive: mcnie4q1282
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
978913856076 6 5278479 820 1880T:refgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024072220240716
1009531738778 6 5258983 820 1880T:refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024072220240716
1057877664414 6 5285886 876 1816T:refclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024072220240716
1064415369736 6 5291774 876 1816T:refclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024072220240716
1070939336210 6 5253974 860 1816T:refclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024072220240716
1079587975830 6 5297910 876 1816T:refclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024072220240716
1113982835648 6 5254814 860 1816T:refclang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024072220240716
1194821737247 6 5256991 820 1880T:refgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024072220240716
3405130530741 6 5249111 812 1848T:refgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024072220240716

Compiler output


bin_vec.c: bin_vec.c:201:8: warning: unused variable 'last' [-Wunused-variable]
bin_vec.c:         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:           for( i=0 ; i<nr ; i++ )
conv.c:           ^
conv.c: conv.c:127:2: note: previous statement is here
conv.c:         for( i=0 ; i<nr ; i++ )
conv.c:         ^
conv.c: 1 warning generated.

Number of similar (implementation,compiler) pairs: 5, namely:
ImplementationCompiler
T:refclang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:refclang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:refclang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:refclang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:refclang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)

Compiler output


bin_vec.c: bin_vec.c: In function 'Shift':
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:       |        ^~~~
conv.c: conv.c: In function 'conv':
conv.c: conv.c:127:2: 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:4: 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_mcnie4q1282_ref_timingleaks':
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:       |                               ^~~~~~~~~

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

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: 9, namely:
ImplementationCompiler
T:refclang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:refclang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:refclang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:refclang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:refclang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_11.0.1)
T:refgcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:refgcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:refgcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:refgcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)