Implementation notes: amd64, hertz, crypto_aead/flexaead128b064v1

Computer: hertz
Microarchitecture: amd64; Zen 4 (a60f12)
Architecture: amd64
CPU ID: AuthenticAMD-00a60f12-178bfbff
SUPERCOP version: 20240716
Operation: crypto_aead
Primitive: flexaead128b064v1
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
10271236743 0 022211 820 1096T:refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
108783323776 0 044927 828 1096T:refclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
110060523776 0 044815 828 1096T:refclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
19789134145 0 017950 796 1064T:refgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
201596810619 0 025672 820 1096T:refclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716

Compiler output


encrypt.c: In function 'dirShuffleLayer',
encrypt.c:     inlined from 'dirPFK' at encrypt.c:371:3,
encrypt.c:     inlined from 'crypto_aead_flexaead128b064v1_ref_timingleaks_encrypt' at encrypt.c:114:2:
encrypt.c: encrypt.c:343:32: warning: writing 32 bytes into a region of size 16 [-Wstringop-overflow=]
encrypt.c:   343 |                 *(state+2*i+1) = ( (*(block+i+0)  & 0x0f)<<4)  + ((*(block+i+(blocklen/2))&0x0f));
encrypt.c:       |                 ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
encrypt.c: encrypt.c: In function 'crypto_aead_flexaead128b064v1_ref_timingleaks_encrypt':
encrypt.c: encrypt.c:105:27: note: at offset [96, 112] into destination object 'flexaeadv1' of size 112
encrypt.c:   105 |         struct FlexAEADv1 flexaeadv1;
encrypt.c:       |                           ^~~~~~~~~~
encrypt.c: In function 'dirPFK',
encrypt.c:     inlined from 'crypto_aead_flexaead128b064v1_ref_timingleaks_encrypt' at encrypt.c:114:2:
encrypt.c: encrypt.c:381:49: warning: writing 32 bytes into a region of size 0 [-Wstringop-overflow=]
encrypt.c:   381 |                         *(block+i+(blocklen/2)) = (*(block+i))^(*(block+i+(blocklen/2)));
encrypt.c:       |                         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
encrypt.c: encrypt.c: In function 'crypto_aead_flexaead128b064v1_ref_timingleaks_encrypt':
encrypt.c: encrypt.c:105:27: note: at offset 192 into destination object 'flexaeadv1' of size 112
encrypt.c:   105 |         struct FlexAEADv1 flexaeadv1;
encrypt.c:       |                           ^~~~~~~~~~
encrypt.c: encrypt.c:162:34: warning: writing 32 bytes into a region of size 8 [-Wstringop-overflow=]
encrypt.c:   162 |                         *(tag+i) =  *(flexaeadv1.checksum+i)^0x55;
encrypt.c:       |                         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
encrypt.c: encrypt.c:104:23: note: destination object 'tag' of size 8
encrypt.c:   104 |         unsigned char tag[BLOCKSIZE];
encrypt.c:       |                       ^~~
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)

Namespace violations


encrypt.o FlexAEADv1_init T
encrypt.o decryptBlock T
encrypt.o dirPFK T
encrypt.o dirSBox0 R
encrypt.o dirSBoxLayer T
encrypt.o dirShuffleLayer T
encrypt.o encryptBlock T
encrypt.o inc32 T
encrypt.o invPFK T
encrypt.o invSBox0 R
encrypt.o invSBoxLayer T
encrypt.o invShuffleLayer T
encrypt.o padBlock T
encrypt.o sumAD T
encrypt.o unpadBlock T

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)