Implementation notes: amd64, hertz, crypto_aead/romulusm

Computer: hertz
Microarchitecture: amd64; Zen 4 (a60f12)
Architecture: amd64
CPU ID: AuthenticAMD-00a60f12-178bfbff
SUPERCOP version: 20240107
Operation: crypto_aead
Primitive: romulusm
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
27054310433 0 025324 836 1096aadomn/x86clang-17_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023122020231217
27066311490 0 029370 844 1096aadomn/x86clang-17_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023122020231217
27140411250 0 029002 844 1096aadomn/x86clang-17_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023122020231217
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
93965929698 640 047090 1588 1096aadomn/opt32clang-17_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023122020231217
95196930106 640 047626 1588 1096aadomn/opt32clang-17_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023122020231217
115818222396 12 040250 856 1096T:refclang-17_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023122020231217
115926316121 12 033786 856 1096T:refclang-17_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023122020231217
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
179006419344 640 034300 1484 1096aadomn/opt32clang-17_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023122020231217
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
43320267630 12 022676 848 1096T:refclang-17_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023122020231217
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-17 -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-17 -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:fixslice_opt32
clang-17 -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:fixslice_opt32
clang-17 -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-17 -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-17 -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:opt32t
clang-17 -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:opt32t
clang-17 -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