Implementation notes: amd64, hertz, crypto_aead/romulusm

Computer: hertz
Microarchitecture: amd64; Zen 4 (a60f12)
Architecture: amd64
CPU ID: AuthenticAMD-00a60f12-178bfbff
SUPERCOP version: 20240425
Operation: crypto_aead
Primitive: romulusm
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
27002412046 0 033094 828 1096aadomn/x86clang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024042920240425
27018912238 0 033398 828 1096aadomn/x86clang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024042920240425
27053910390 0 025264 820 1096aadomn/x86clang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024042920240425
28267612241 0 029397 804 1160aadomn/x86gcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023122020231217
28278910569 0 024024 780 1064aadomn/x86gcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023122020231217
28306111761 0 026917 804 1096aadomn/x86gcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023122020231217
87553237715 640 058558 1572 1096aadomn/opt32clang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024042920240425
88228335971 640 056670 1572 1096aadomn/opt32clang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024042920240425
118455232404 12 053526 840 1096T:refclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024042920240425
118999225742 12 046718 840 1096T:refclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024042920240425
131273730402 640 047669 1484 1160aadomn/opt32gcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023122020231217
151734624915 640 040197 1452 1096aadomn/opt32gcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023122020231217
180749519241 640 034152 1468 1096aadomn/opt32clang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024042920240425
233134720616 640 034160 1428 1064aadomn/opt32gcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023122020231217
36976479339 12 024581 816 1096T:refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023122020231217
42509317616 12 022648 832 1096T:refclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024042920240425
48463825962 12 019488 792 1064T:refgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023122020231217

Test failure

Implementation: T:fixslice_opt32
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
error 111
crypto_aead_decrypt returns nonzero

Number of similar (compiler,implementation) pairs: 6, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:fixslice_opt32
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:fixslice_opt32
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:fixslice_opt32
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:fixslice_opt32
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:fixslice_opt32
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE T:fixslice_opt32

Test failure

Implementation: T:opt32t
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
error 111
crypto_aead_decrypt allows trivial forgeries

Number of similar (compiler,implementation) pairs: 6, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:opt32t
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:opt32t
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:opt32t
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:opt32t
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:opt32t
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE T:opt32t

Compiler output

Implementation: T:ref
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE
romulus_m_reference.c: In function 'pad',
romulus_m_reference.c: inlined from 'rho_ad' at romulus_m_reference.c:54:3:
romulus_m_reference.c: romulus_m_reference.c:23:13: warning: writing 32 bytes into a region of size 16 [-Wstringop-overflow=]
romulus_m_reference.c: 23 | mp[i] = m[i];
romulus_m_reference.c: | ~~~~~~^~~~~~
romulus_m_reference.c: romulus_m_reference.c: In function 'rho_ad':
romulus_m_reference.c: romulus_m_reference.c:51:17: note: destination object 'mp' of size 16
romulus_m_reference.c: 51 | unsigned char mp [16];
romulus_m_reference.c: | ^~
romulus_m_reference.c: In function 'pad',
romulus_m_reference.c: inlined from 'rho_ad' at romulus_m_reference.c:54:3:
romulus_m_reference.c: romulus_m_reference.c:23:13: warning: writing 32 bytes into a region of size 16 [-Wstringop-overflow=]
romulus_m_reference.c: 23 | mp[i] = m[i];
romulus_m_reference.c: | ~~~~~~^~~~~~
romulus_m_reference.c: romulus_m_reference.c: In function 'rho_ad':
romulus_m_reference.c: romulus_m_reference.c:51:17: note: destination object 'mp' of size 16
romulus_m_reference.c: 51 | unsigned char mp [16];
romulus_m_reference.c: | ^~
romulus_m_reference.c: In function 'pad',
romulus_m_reference.c: inlined from 'rho' at romulus_m_reference.c:70:3:
romulus_m_reference.c: romulus_m_reference.c:23:13: warning: writing 32 bytes into a region of size 16 [-Wstringop-overflow=]
romulus_m_reference.c: 23 | mp[i] = m[i];
romulus_m_reference.c: | ~~~~~~^~~~~~
romulus_m_reference.c: romulus_m_reference.c: In function 'rho':
romulus_m_reference.c: romulus_m_reference.c:68:17: note: destination object 'mp' of size 16
romulus_m_reference.c: ...

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref