Implementation notes: amd64, hertz, crypto_aead/flexaead128b128v1

Computer: hertz
Microarchitecture: amd64; Zen 4 (a60f12)
Architecture: amd64
CPU ID: AuthenticAMD-00a60f12-178bfbff
SUPERCOP version: 20240716
Operation: crypto_aead
Primitive: flexaead128b128v1
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
79338724232 0 045271 828 1096T:refclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
79453924232 0 045383 828 1096T:refclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
8374386907 0 022371 820 1096T:refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
13997434355 0 018174 796 1064T:refgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
152484510846 0 025888 820 1096T:refclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716

Compiler output


encrypt.c: encrypt.c: In function 'crypto_aead_flexaead128b128v1_ref_timingleaks_encrypt':
encrypt.c: encrypt.c:162:34: warning: writing 32 bytes into a region of size 16 [-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 16
encrypt.c:   104 |         unsigned char tag[BLOCKSIZE];
encrypt.c:       |                       ^~~
encrypt.c: encrypt.c:152:34: warning: writing 32 bytes into a region of size 16 [-Wstringop-overflow=]
encrypt.c:   152 |                         *(tag+i) =  *(flexaeadv1.checksum+i)^0xAA;
encrypt.c:       |                         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
encrypt.c: encrypt.c:104:23: note: destination object 'tag' of size 16
encrypt.c:   104 |         unsigned char tag[BLOCKSIZE];
encrypt.c:       |                       ^~~
encrypt.c: In function 'dirPFK',
encrypt.c:     inlined from 'crypto_aead_flexaead128b128v1_ref_timingleaks_encrypt' at encrypt.c:164:2:
encrypt.c: encrypt.c:367:28: warning: writing 32 bytes into a region of size 16 [-Wstringop-overflow=]
encrypt.c:   367 |                 *(block+i) = (*(block+i))^(*(key_pfk+i));
encrypt.c:       |                 ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
encrypt.c: encrypt.c: In function 'crypto_aead_flexaead128b128v1_ref_timingleaks_encrypt':
encrypt.c: encrypt.c:104:23: note: destination object 'tag' of size 16
encrypt.c:   104 |         unsigned char tag[BLOCKSIZE];
encrypt.c:       |                       ^~~
encrypt.c: In function 'dirPFK',
encrypt.c:     inlined from 'crypto_aead_flexaead128b128v1_ref_timingleaks_encrypt' at encrypt.c:164:2:
encrypt.c: encrypt.c:376:36: warning: writing 32 bytes into a region of size 16 [-Wstringop-overflow=]
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)