Implementation notes: amd64, hertz, crypto_aead/photonbeetleaead128rate128v1

Computer: hertz
Microarchitecture: amd64; Zen 4 (a60f12)
Architecture: amd64
CPU ID: AuthenticAMD-00a60f12-178bfbff
SUPERCOP version: 20240425
Operation: crypto_aead
Primitive: photonbeetleaead128rate128v1
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
30762075368 0 096606 844 1096T:table3clang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024042920240425
31415716659 0 037966 844 1096T:table2clang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024042920240425
33349175848 0 097150 844 1096T:table3clang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024042920240425
41606114347 0 035590 844 1096T:table2clang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024042920240425
55380412575 0 027616 836 1096T:table2clang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024042920240425
56044672031 0 087072 836 1096T:table3clang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024042920240425
57542771072 0 086437 820 1096T:table3gcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023122020231217
57553411680 0 027045 820 1096T:table2gcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023122020231217
59902170233 0 083944 796 1064T:table3gcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023122020231217
72269210830 0 024536 796 1064T:table2gcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023122020231217
81137412080 0 033278 844 1096T:bitslice_sb32clang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024042920240425
81204712080 0 033390 844 1096T:bitslice_sb32clang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024042920240425
81893210089 0 025184 836 1096T:bitslice_sb32clang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024042920240425
8218979252 0 024288 836 1096T:bitslice_sb64clang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024042920240425
82667210930 0 032206 844 1096T:bitslice_sb64clang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024042920240425
82697510930 0 032094 844 1096T:bitslice_sb64clang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024042920240425
9358929021 0 3224389 820 1128T:bitslice_sb64gcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023122020231217
9764688776 0 024149 820 1096T:bitslice_sb32gcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023122020231217
19202878117 0 021824 796 1064T:bitslice_sb32gcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023122020231217
19766097861 0 3221560 796 1096T:bitslice_sb64gcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023122020231217
262050111587 16 1632888 876 1128T:refclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024042920240425
379027312096 16 1633576 876 1128T:refclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024042920240425
342260564411 16 1219861 844 1128T:refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023122020231217
368235983367 16 1217112 820 1096T:refgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023122020231217
578275354100 16 1619216 860 1128T:refclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024042920240425

Compiler output

Implementation: T:bitslice_sb32
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE
encrypt.c: In function 'XOR',
encrypt.c: inlined from 'HASH' at encrypt.c:205:2,
encrypt.c: inlined from 'crypto_aead_photonbeetleaead128rate128v1_bitslice_sb32_timingleaks_encrypt' at encrypt.c:293:18:
encrypt.c: encrypt.c:103:27: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=]
encrypt.c: 103 | out_32[i] = in_left_32[i] ^ in_right_32[i];
encrypt.c: | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
encrypt.c: encrypt.c: In function 'crypto_aead_photonbeetleaead128rate128v1_bitslice_sb32_timingleaks_encrypt':
encrypt.c: encrypt.c:274:17: note: at offset 32 into destination object 'State' of size 32
encrypt.c: 274 | uint8_t State[STATE_INBYTES] = { 0 };
encrypt.c: | ^~~~~
encrypt.c: In function 'XOR',
encrypt.c: inlined from 'HASH' at encrypt.c:205:2,
encrypt.c: inlined from 'crypto_aead_photonbeetleaead128rate128v1_bitslice_sb32_timingleaks_encrypt' at encrypt.c:293:18:
encrypt.c: encrypt.c:103:27: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=]
encrypt.c: 103 | out_32[i] = in_left_32[i] ^ in_right_32[i];
encrypt.c: | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
encrypt.c: encrypt.c: In function 'crypto_aead_photonbeetleaead128rate128v1_bitslice_sb32_timingleaks_encrypt':
encrypt.c: encrypt.c:274:17: note: at offset 36 into destination object 'State' of size 32
encrypt.c: 274 | uint8_t State[STATE_INBYTES] = { 0 };
encrypt.c: | ^~~~~
encrypt.c: In function 'XOR',
encrypt.c: inlined from 'HASH' at encrypt.c:205:2,
encrypt.c: inlined from 'crypto_aead_photonbeetleaead128rate128v1_bitslice_sb32_timingleaks_encrypt' at encrypt.c:293:18:
encrypt.c: encrypt.c:103:27: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=]
encrypt.c: 103 | out_32[i] = in_left_32[i] ^ in_right_32[i];
encrypt.c: ...

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

Compiler output

Implementation: T:bitslice_sb64
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE
encrypt.c: In function 'XOR',
encrypt.c: inlined from 'HASH' at encrypt.c:202:2,
encrypt.c: inlined from 'crypto_aead_photonbeetleaead128rate128v1_bitslice_sb64_timingleaks_encrypt' at encrypt.c:290:18:
encrypt.c: encrypt.c:103:27: warning: writing 8 bytes into a region of size 0 [-Wstringop-overflow=]
encrypt.c: 103 | out_64[i] = in_left_64[i] ^ in_right_64[i];
encrypt.c: | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
encrypt.c: encrypt.c: In function 'crypto_aead_photonbeetleaead128rate128v1_bitslice_sb64_timingleaks_encrypt':
encrypt.c: encrypt.c:271:17: note: at offset 32 into destination object 'State' of size 32
encrypt.c: 271 | uint8_t State[STATE_INBYTES] = { 0 };
encrypt.c: | ^~~~~
encrypt.c: In function 'XOR',
encrypt.c: inlined from 'HASH' at encrypt.c:202:2,
encrypt.c: inlined from 'crypto_aead_photonbeetleaead128rate128v1_bitslice_sb64_timingleaks_encrypt' at encrypt.c:290:18:
encrypt.c: encrypt.c:103:27: warning: writing 8 bytes into a region of size 0 [-Wstringop-overflow=]
encrypt.c: 103 | out_64[i] = in_left_64[i] ^ in_right_64[i];
encrypt.c: | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
encrypt.c: encrypt.c: In function 'crypto_aead_photonbeetleaead128rate128v1_bitslice_sb64_timingleaks_encrypt':
encrypt.c: encrypt.c:271:17: note: at offset 40 into destination object 'State' of size 32
encrypt.c: 271 | uint8_t State[STATE_INBYTES] = { 0 };
encrypt.c: | ^~~~~
encrypt.c: In function 'XOR',
encrypt.c: inlined from 'HASH' at encrypt.c:202:2,
encrypt.c: inlined from 'crypto_aead_photonbeetleaead128rate128v1_bitslice_sb64_timingleaks_encrypt' at encrypt.c:290:18:
encrypt.c: encrypt.c:103:27: warning: writing 8 bytes into a region of size 0 [-Wstringop-overflow=]
encrypt.c: 103 | out_64[i] = in_left_64[i] ^ in_right_64[i];
encrypt.c: ...

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

Compiler output

Implementation: T:ref
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE
encrypt.c: In function 'XOR',
encrypt.c: inlined from 'rhoohr' at encrypt.c:159:3,
encrypt.c: inlined from 'rhoohr' at encrypt.c:148:13,
encrypt.c: inlined from 'ENCorDEC' at encrypt.c:211:2,
encrypt.c: inlined from 'crypto_aead_photonbeetleaead128rate128v1_ref_timingleaks_encrypt' at encrypt.c:281:18:
encrypt.c: encrypt.c:97:52: warning: writing 32 bytes into a region of size 0 [-Wstringop-overflow=]
encrypt.c: 97 | for (i = 0; i < iolen_inbytes; i++) out[i] = in_left[i] ^ in_right[i];
encrypt.c: | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
encrypt.c: encrypt.c: In function 'crypto_aead_photonbeetleaead128rate128v1_ref_timingleaks_encrypt':
encrypt.c: encrypt.c:263:17: note: at offset 32 into destination object 'State' of size 32
encrypt.c: 263 | uint8_t State[STATE_INBYTES] = { 0 };
encrypt.c: | ^~~~~
encrypt.c: In function 'XOR',
encrypt.c: inlined from 'rhoohr' at encrypt.c:159:3,
encrypt.c: inlined from 'rhoohr' at encrypt.c:148:13,
encrypt.c: inlined from 'ENCorDEC' at encrypt.c:211:2,
encrypt.c: inlined from 'crypto_aead_photonbeetleaead128rate128v1_ref_timingleaks_encrypt' at encrypt.c:281:18:
encrypt.c: encrypt.c:97:52: warning: writing 32 bytes into a region of size 0 [-Wstringop-overflow=]
encrypt.c: 97 | for (i = 0; i < iolen_inbytes; i++) out[i] = in_left[i] ^ in_right[i];
encrypt.c: | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
encrypt.c: encrypt.c: In function 'crypto_aead_photonbeetleaead128rate128v1_ref_timingleaks_encrypt':
encrypt.c: encrypt.c:263:17: note: at offset [64, 96] into destination object 'State' of size 32
encrypt.c: 263 | uint8_t State[STATE_INBYTES] = { 0 };
encrypt.c: | ^~~~~
encrypt.c: In function 'XOR',
encrypt.c: ...

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

Compiler output

Implementation: T:table2
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE
encrypt.c: In function 'XOR',
encrypt.c: inlined from 'HASH' at encrypt.c:183:2,
encrypt.c: inlined from 'crypto_aead_photonbeetleaead128rate128v1_table2_timingleaks_encrypt' at encrypt.c:270:18:
encrypt.c: encrypt.c:98:52: warning: writing 32 bytes into a region of size 0 [-Wstringop-overflow=]
encrypt.c: 98 | for (i = 0; i < iolen_inbytes; i++) out[i] = in_left[i] ^ in_right[i];
encrypt.c: | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
encrypt.c: encrypt.c: In function 'crypto_aead_photonbeetleaead128rate128v1_table2_timingleaks_encrypt':
encrypt.c: encrypt.c:251:17: note: at offset 32 into destination object 'State' of size 32
encrypt.c: 251 | uint8_t State[STATE_INBYTES] = { 0 };
encrypt.c: | ^~~~~
encrypt.c: In function 'XOR',
encrypt.c: inlined from 'HASH' at encrypt.c:183:2,
encrypt.c: inlined from 'crypto_aead_photonbeetleaead128rate128v1_table2_timingleaks_encrypt' at encrypt.c:270:18:
encrypt.c: encrypt.c:98:52: warning: writing 32 bytes into a region of size 0 [-Wstringop-overflow=]
encrypt.c: 98 | for (i = 0; i < iolen_inbytes; i++) out[i] = in_left[i] ^ in_right[i];
encrypt.c: | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
encrypt.c: encrypt.c: In function 'crypto_aead_photonbeetleaead128rate128v1_table2_timingleaks_encrypt':
encrypt.c: encrypt.c:251:17: note: at offset [64, 96] into destination object 'State' of size 32
encrypt.c: 251 | uint8_t State[STATE_INBYTES] = { 0 };
encrypt.c: | ^~~~~
encrypt.c: In function 'XOR',
encrypt.c: inlined from 'rhoohr' at encrypt.c:157:3,
encrypt.c: inlined from 'rhoohr' at encrypt.c:146:20,
encrypt.c: inlined from 'ENCorDEC' at encrypt.c:209:2,
encrypt.c: inlined from 'crypto_aead_photonbeetleaead128rate128v1_table2_timingleaks_encrypt' at encrypt.c:271:18:
encrypt.c: ...

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

Compiler output

Implementation: T:table3
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE
encrypt.c: In function 'XOR',
encrypt.c: inlined from 'HASH' at encrypt.c:183:2,
encrypt.c: inlined from 'crypto_aead_photonbeetleaead128rate128v1_table3_timingleaks_encrypt' at encrypt.c:270:18:
encrypt.c: encrypt.c:98:52: warning: writing 32 bytes into a region of size 0 [-Wstringop-overflow=]
encrypt.c: 98 | for (i = 0; i < iolen_inbytes; i++) out[i] = in_left[i] ^ in_right[i];
encrypt.c: | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
encrypt.c: encrypt.c: In function 'crypto_aead_photonbeetleaead128rate128v1_table3_timingleaks_encrypt':
encrypt.c: encrypt.c:251:17: note: at offset 32 into destination object 'State' of size 32
encrypt.c: 251 | uint8_t State[STATE_INBYTES] = { 0 };
encrypt.c: | ^~~~~
encrypt.c: In function 'XOR',
encrypt.c: inlined from 'HASH' at encrypt.c:183:2,
encrypt.c: inlined from 'crypto_aead_photonbeetleaead128rate128v1_table3_timingleaks_encrypt' at encrypt.c:270:18:
encrypt.c: encrypt.c:98:52: warning: writing 32 bytes into a region of size 0 [-Wstringop-overflow=]
encrypt.c: 98 | for (i = 0; i < iolen_inbytes; i++) out[i] = in_left[i] ^ in_right[i];
encrypt.c: | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
encrypt.c: encrypt.c: In function 'crypto_aead_photonbeetleaead128rate128v1_table3_timingleaks_encrypt':
encrypt.c: encrypt.c:251:17: note: at offset [64, 96] into destination object 'State' of size 32
encrypt.c: 251 | uint8_t State[STATE_INBYTES] = { 0 };
encrypt.c: | ^~~~~
encrypt.c: In function 'XOR',
encrypt.c: inlined from 'rhoohr' at encrypt.c:157:3,
encrypt.c: inlined from 'rhoohr' at encrypt.c:146:20,
encrypt.c: inlined from 'ENCorDEC' at encrypt.c:209:2,
encrypt.c: inlined from 'crypto_aead_photonbeetleaead128rate128v1_table3_timingleaks_encrypt' at encrypt.c:271:18:
encrypt.c: ...

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