Implementation notes: amd64, hertz, crypto_aead/photonbeetleaead128rate128v1

Computer: hertz
Microarchitecture: amd64; Zen 4 (a60f12)
Architecture: amd64
CPU ID: AuthenticAMD-00a60f12-178bfbff
SUPERCOP version: 20240716
Operation: crypto_aead
Primitive: photonbeetleaead128rate128v1
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
30756675368 0 096606 844 1096T:table3clang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
31396116659 0 037966 844 1096T:table2clang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
31453775848 0 097150 844 1096T:table3clang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
41609414347 0 035590 844 1096T:table2clang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
55175012575 0 027616 836 1096T:table2clang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
56121672031 0 087072 836 1096T:table3clang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
57161171072 0 086413 820 1096T:table3gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
58682770256 0 083976 796 1064T:table3gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
62191511680 0 027021 820 1096T:table2gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
72290610853 0 024584 796 1064T:table2gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
81195612080 0 033390 844 1096T:bitslice_sb32clang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
81232312080 0 033278 844 1096T:bitslice_sb32clang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
81779610089 0 025184 836 1096T:bitslice_sb32clang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
82561510930 0 032094 844 1096T:bitslice_sb64clang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
8263139252 0 024288 836 1096T:bitslice_sb64clang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
82789110930 0 032206 844 1096T:bitslice_sb64clang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
9414409021 0 3224365 820 1128T:bitslice_sb64gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
9784188776 0 024125 820 1096T:bitslice_sb32gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
19229858132 0 021864 796 1064T:bitslice_sb32gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
19762647876 0 3221600 796 1096T:bitslice_sb64gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
271411911587 16 1632888 876 1128T:refclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
379539212096 16 1633576 876 1128T:refclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
303157633382 16 1217152 820 1096T:refgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
347077354411 16 1219837 844 1128T:refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
577809264100 16 1619216 860 1128T:refclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716

Compiler output


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 (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
T:bitslice_sb32gcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)

Compiler output


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 (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
T:bitslice_sb64gcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)

Compiler output


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 (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
T:refgcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)

Compiler output


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 (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
T:table2gcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)

Compiler output


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 (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
T:table3gcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)

Namespace violations


photon.o PHOTON_Permutation T

Number of similar (implementation,compiler) pairs: 10, namely:
ImplementationCompiler
T:bitslice_sb32clang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:bitslice_sb32clang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:bitslice_sb32clang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:bitslice_sb32gcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:bitslice_sb32gcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:bitslice_sb64clang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:bitslice_sb64clang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:bitslice_sb64clang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:bitslice_sb64gcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:bitslice_sb64gcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)

Namespace violations


photon.o AddKey T
photon.o DEBUG B
photon.o FieldMult T
photon.o MessBitLen B
photon.o MixColMatrix R
photon.o MixColumn T
photon.o PHOTON_Permutation T
photon.o Permutation T
photon.o PrintState T
photon.o PrintState_Column T
photon.o RC R
photon.o ReductionPoly R
photon.o ShiftRow T
photon.o SubCell T
photon.o WORDFILTER R
photon.o sbox D

Number of similar (implementation,compiler) pairs: 5, 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 -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)

Namespace violations


photon.o PHOTON_Permutation T
photon.o RC R
photon.o SCShRMCS_Table2 R

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

Namespace violations


photon.o PHOTON_Permutation T
photon.o RC R
photon.o SCShRMCS_Table2 R
photon.o SCShRMCS_Table3 R

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