Implementation notes: amd64, hertz, crypto_aead/photonbeetleaead128rate128v1

Computer: hertz
Microarchitecture: amd64; Zen 4 (a60f12)
Architecture: amd64
CPU ID: AuthenticAMD-00a60f12-178bfbff
SUPERCOP version: 20240107
Operation: crypto_aead
Primitive: photonbeetleaead128rate128v1
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
32850314846 0 032850 860 1096T:table2clang-17_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023122020231217
35639573720 0 091634 860 1096T:table3clang-17_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023122020231217
36128674298 0 092306 860 1096T:table3clang-17_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023122020231217
53363112806 0 030722 860 1096T:table2clang-17_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023122020231217
56164272028 0 087084 852 1096T:table3clang-17_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023122020231217
57527412567 0 027628 852 1096T:table2clang-17_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023122020231217
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
8037989878 0 027714 860 1096T:bitslice_sb64clang-17_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023122020231217
8062409878 0 027842 860 1096T:bitslice_sb64clang-17_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023122020231217
82199610993 0 028850 860 1096T:bitslice_sb32clang-17_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023122020231217
8221309233 0 024284 852 1096T:bitslice_sb64clang-17_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023122020231217
82255110993 0 028978 860 1096T:bitslice_sb32clang-17_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023122020231217
84118910131 0 025228 852 1096T:bitslice_sb32clang-17_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023122020231217
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
38451469877 16 1627988 892 1128T:refclang-17_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023122020231217
41788017168 16 1625188 892 1128T:refclang-17_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023122020231217
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
544970234046 16 1619188 876 1128T:refclang-17_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023122020231217

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