Implementation notes: amd64, bolero, crypto_aead/hs1sivlov1

Computer: bolero
Microarchitecture: amd64; Broadwell+AES (406f1)
Architecture: amd64
CPU ID: GenuineIntel-000406f1-1fc9cbf5
SUPERCOP version: 20240625
Operation: crypto_aead
Primitive: hs1sivlov1
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
207928191 0 030188 832 856T:refclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
208169336 0 032980 832 872T:refclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
217769336 0 032668 832 872T:refclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
221686860 0 030246 792 928T:refgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
284365844 0 027174 792 928T:refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
302404707 0 024188 832 856T:refclang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
324563975 0 024302 824 920T:refclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625
384606288 0 027182 792 928T:refgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062620240625

Test failure


error 111
crypto_aead_decrypt allows trivial forgeries

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

Compiler output


encrypt.c: encrypt.c:333:14: warning: unused variable 'k' [-Wunused-variable]
encrypt.c:     unsigned k = (HS1_SIV_HASH_RNDS > 4 ? 1 : 2);
encrypt.c:              ^
encrypt.c: encrypt.c:242:13: warning: unused function 'pmul64' [-Wunused-function]
encrypt.c: static void pmul64(uint64_t *dh, uint64_t *dl, uint64_t a, uint64_t b) {
encrypt.c:             ^
encrypt.c: encrypt.c:270:17: warning: unused function 'asu_hash' [-Wunused-function]
encrypt.c: static uint32_t asu_hash(uint64_t x, uint64_t *k) {
encrypt.c:                 ^
encrypt.c: 3 warnings generated.

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

Compiler output


encrypt.c: encrypt.c: In function 'hs1_hash':
encrypt.c: encrypt.c:333:14: warning: unused variable 'k' [-Wunused-variable]
encrypt.c:   333 |     unsigned k = (HS1_SIV_HASH_RNDS > 4 ? 1 : 2);
encrypt.c:       |              ^
encrypt.c: At top level:
encrypt.c: encrypt.c:270:17: warning: 'asu_hash' defined but not used [-Wunused-function]
encrypt.c:   270 | static uint32_t asu_hash(uint64_t x, uint64_t *k) {
encrypt.c:       |                 ^~~~~~~~
encrypt.c: encrypt.c:242:13: warning: 'pmul64' defined but not used [-Wunused-function]
encrypt.c:   242 | static void pmul64(uint64_t *dh, uint64_t *dl, uint64_t a, uint64_t b) {
encrypt.c:       |             ^~~~~~

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