Implementation notes: amd64, hertz, crypto_aead/omdsha512k256n256tau256v2

Computer: hertz
Microarchitecture: amd64; Zen 4 (a60f12)
Architecture: amd64
CPU ID: AuthenticAMD-00a60f12-178bfbff
SUPERCOP version: 20240716
Operation: crypto_aead
Primitive: omdsha512k256n256tau256v2
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
8345235410 0 062414 828 1096T:refclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
8924727719 0 054670 828 1096T:refclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
9753714325 0 037916 812 1160T:refgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
1076026431 0 027980 812 1096T:refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
1096065510 0 026512 820 1096T:refclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
1387675122 0 024239 788 1064T:refgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716

Compiler output


try.c: /usr/bin/ld: libcrypto_aead_omdsha512k256n256tau256v2.a(omdsha512.o):.../supercop-data/hertz/amd64/try/c/clang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/omdsha512k256n256tau256v2/avx1/work/./omdsha512.h:146: multiple definition of `Hash'; libcrypto_aead_omdsha512k256n256tau256v2.a(encrypt.o):.../supercop-data/hertz/amd64/try/c/clang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/omdsha512k256n256tau256v2/avx1/work/./omdsha512.h:146: first defined here
try.c: clang: error: linker command failed with exit code 1 (use -v to see invocation)

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

Compiler output


try.c: /usr/bin/ld: libcrypto_aead_omdsha512k256n256tau256v2.a(omdsha512.o):.../supercop-data/hertz/amd64/try/c/clang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/omdsha512k256n256tau256v2/avx1/work/./omdsha512.h:146: multiple definition of `Hash'; libcrypto_aead_omdsha512k256n256tau256v2.a(encrypt.o):.../supercop-data/hertz/amd64/try/c/clang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/omdsha512k256n256tau256v2/avx1/work/./omdsha512.h:146: first defined here
try.c: clang: error: linker command failed with exit code 1 (use -v to see invocation)

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

Compiler output


try.c: /usr/bin/ld: libcrypto_aead_omdsha512k256n256tau256v2.a(omdsha512.o):.../supercop-data/hertz/amd64/try/c/clang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/omdsha512k256n256tau256v2/avx1/work/./omdsha512.h:146: multiple definition of `Hash'; libcrypto_aead_omdsha512k256n256tau256v2.a(encrypt.o):.../supercop-data/hertz/amd64/try/c/clang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/omdsha512k256n256tau256v2/avx1/work/./omdsha512.h:146: first defined here
try.c: clang: error: linker command failed with exit code 1 (use -v to see invocation)

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

Compiler output


omdsha512.c: In function 'xor_block',
omdsha512.c:     inlined from 'omdsha512_process' at omdsha512.c:308:5:
omdsha512.c: omdsha512.c:15:38: warning: 'tage' may be used uninitialized [-Wmaybe-uninitialized]
omdsha512.c:    15 |                 res[i] = in1[i] ^ in2[i];
omdsha512.c:       |                                   ~~~^~~
omdsha512.c: omdsha512.c: In function 'omdsha512_process':
omdsha512.c: omdsha512.c:260:15: note: 'tage' declared here
omdsha512.c:   260 |     hashblock tage;
omdsha512.c:       |               ^~~~
try.c: /usr/bin/ld: libcrypto_aead_omdsha512k256n256tau256v2.a(omdsha512.o):.../supercop-data/hertz/amd64/try/c/gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/omdsha512k256n256tau256v2/avx1/work/omdsha512.h:146: multiple definition of `Hash'; libcrypto_aead_omdsha512k256n256tau256v2.a(encrypt.o):.../supercop-data/hertz/amd64/try/c/gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/omdsha512k256n256tau256v2/avx1/work/omdsha512.h:146: first defined here
try.c: collect2: error: ld returned 1 exit status

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

Compiler output


omdsha512.c: In function 'xor_block',
omdsha512.c:     inlined from 'omdsha512_process' at omdsha512.c:308:5:
omdsha512.c: omdsha512.c:15:38: warning: 'tage' may be used uninitialized [-Wmaybe-uninitialized]
omdsha512.c:    15 |                 res[i] = in1[i] ^ in2[i];
omdsha512.c:       |                                   ~~~^~~
omdsha512.c: omdsha512.c: In function 'omdsha512_process':
omdsha512.c: omdsha512.c:260:15: note: 'tage' declared here
omdsha512.c:   260 |     hashblock tage;
omdsha512.c:       |               ^~~~
try.c: /usr/bin/ld: libcrypto_aead_omdsha512k256n256tau256v2.a(omdsha512.o):.../supercop-data/hertz/amd64/try/c/gcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/omdsha512k256n256tau256v2/avx1/work/omdsha512.h:146: multiple definition of `Hash'; libcrypto_aead_omdsha512k256n256tau256v2.a(encrypt.o):.../supercop-data/hertz/amd64/try/c/gcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/omdsha512k256n256tau256v2/avx1/work/omdsha512.h:146: first defined here
try.c: collect2: error: ld returned 1 exit status

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

Compiler output


try.c: /usr/bin/ld: libcrypto_aead_omdsha512k256n256tau256v2.a(omdsha512.o):.../supercop-data/hertz/amd64/try/c/gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/omdsha512k256n256tau256v2/avx1/work/omdsha512.h:146: multiple definition of `Hash'; libcrypto_aead_omdsha512k256n256tau256v2.a(encrypt.o):.../supercop-data/hertz/amd64/try/c/gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/omdsha512k256n256tau256v2/avx1/work/omdsha512.h:146: first defined here
try.c: collect2: error: ld returned 1 exit status

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

Compiler output


sha512.c: sha512.c:206:18: warning: incompatible pointer types initializing 'const uint64_t *' (aka 'const unsigned long *') with an expression of type 'const unsigned char *' [-Wincompatible-pointer-types]
sha512.c:   206 |         const uint64_t *W=in;
sha512.c:       |                         ^ ~~
sha512.c: 1 warning 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


sha512.c: sha512.c: In function 'sha512_comp':
sha512.c: sha512.c:206:27: warning: initialization of 'const uint64_t *' {aka 'const long unsigned int *'} from incompatible pointer type 'const unsigned char *' [-Wincompatible-pointer-types]
sha512.c:   206 |         const uint64_t *W=in;
sha512.c:       |                           ^~

Number of similar (implementation,compiler) pairs: 3, 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)
T:refgcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)

Compiler output


try.c: /usr/bin/ld: libcrypto_aead_omdsha512k256n256tau256v2.a(omdsha512.o):.../supercop-data/hertz/amd64/try/c/clang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/omdsha512k256n256tau256v2/sse4/work/./omdsha512.h:146: multiple definition of `Hash'; libcrypto_aead_omdsha512k256n256tau256v2.a(encrypt.o):.../supercop-data/hertz/amd64/try/c/clang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/omdsha512k256n256tau256v2/sse4/work/./omdsha512.h:146: first defined here
try.c: clang: error: linker command failed with exit code 1 (use -v to see invocation)

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

Compiler output


try.c: /usr/bin/ld: libcrypto_aead_omdsha512k256n256tau256v2.a(omdsha512.o):.../supercop-data/hertz/amd64/try/c/clang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/omdsha512k256n256tau256v2/sse4/work/./omdsha512.h:146: multiple definition of `Hash'; libcrypto_aead_omdsha512k256n256tau256v2.a(encrypt.o):.../supercop-data/hertz/amd64/try/c/clang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/omdsha512k256n256tau256v2/sse4/work/./omdsha512.h:146: first defined here
try.c: clang: error: linker command failed with exit code 1 (use -v to see invocation)

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

Compiler output


try.c: /usr/bin/ld: libcrypto_aead_omdsha512k256n256tau256v2.a(omdsha512.o):.../supercop-data/hertz/amd64/try/c/clang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/omdsha512k256n256tau256v2/sse4/work/./omdsha512.h:146: multiple definition of `Hash'; libcrypto_aead_omdsha512k256n256tau256v2.a(encrypt.o):.../supercop-data/hertz/amd64/try/c/clang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/omdsha512k256n256tau256v2/sse4/work/./omdsha512.h:146: first defined here
try.c: clang: error: linker command failed with exit code 1 (use -v to see invocation)

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

Compiler output


omdsha512.c: In function 'xor_block',
omdsha512.c:     inlined from 'omdsha512_process' at omdsha512.c:308:5:
omdsha512.c: omdsha512.c:15:38: warning: 'tage' may be used uninitialized [-Wmaybe-uninitialized]
omdsha512.c:    15 |                 res[i] = in1[i] ^ in2[i];
omdsha512.c:       |                                   ~~~^~~
omdsha512.c: omdsha512.c: In function 'omdsha512_process':
omdsha512.c: omdsha512.c:260:15: note: 'tage' declared here
omdsha512.c:   260 |     hashblock tage;
omdsha512.c:       |               ^~~~
try.c: /usr/bin/ld: libcrypto_aead_omdsha512k256n256tau256v2.a(omdsha512.o):.../supercop-data/hertz/amd64/try/c/gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/omdsha512k256n256tau256v2/sse4/work/omdsha512.h:146: multiple definition of `Hash'; libcrypto_aead_omdsha512k256n256tau256v2.a(encrypt.o):.../supercop-data/hertz/amd64/try/c/gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/omdsha512k256n256tau256v2/sse4/work/omdsha512.h:146: first defined here
try.c: collect2: error: ld returned 1 exit status

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

Compiler output


omdsha512.c: In function 'xor_block',
omdsha512.c:     inlined from 'omdsha512_process' at omdsha512.c:308:5:
omdsha512.c: omdsha512.c:15:38: warning: 'tage' may be used uninitialized [-Wmaybe-uninitialized]
omdsha512.c:    15 |                 res[i] = in1[i] ^ in2[i];
omdsha512.c:       |                                   ~~~^~~
omdsha512.c: omdsha512.c: In function 'omdsha512_process':
omdsha512.c: omdsha512.c:260:15: note: 'tage' declared here
omdsha512.c:   260 |     hashblock tage;
omdsha512.c:       |               ^~~~
try.c: /usr/bin/ld: libcrypto_aead_omdsha512k256n256tau256v2.a(omdsha512.o):.../supercop-data/hertz/amd64/try/c/gcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/omdsha512k256n256tau256v2/sse4/work/omdsha512.h:146: multiple definition of `Hash'; libcrypto_aead_omdsha512k256n256tau256v2.a(encrypt.o):.../supercop-data/hertz/amd64/try/c/gcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/omdsha512k256n256tau256v2/sse4/work/omdsha512.h:146: first defined here
try.c: collect2: error: ld returned 1 exit status

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

Compiler output


try.c: /usr/bin/ld: libcrypto_aead_omdsha512k256n256tau256v2.a(omdsha512.o):.../supercop-data/hertz/amd64/try/c/gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/omdsha512k256n256tau256v2/sse4/work/omdsha512.h:146: multiple definition of `Hash'; libcrypto_aead_omdsha512k256n256tau256v2.a(encrypt.o):.../supercop-data/hertz/amd64/try/c/gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/omdsha512k256n256tau256v2/sse4/work/omdsha512.h:146: first defined here
try.c: collect2: error: ld returned 1 exit status

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

Namespace violations


omdsha512.o calc_L_i T
omdsha512.o double_block T
omdsha512.o final_masking_associated_data T
omdsha512.o final_masking_message T
omdsha512.o hash T
omdsha512.o increment_masking_associated_data T
omdsha512.o increment_masking_message T
omdsha512.o key_func T
omdsha512.o l2b T
omdsha512.o ntz T
omdsha512.o omdsha512_process T
omdsha512.o triple_block T
omdsha512.o xor_block T
sha512.o sha512_comp T

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)