Implementation notes: amd64, hertz, crypto_aead/flexaead256b256v1

Computer: hertz
Microarchitecture: amd64; Zen 4 (a60f12)
Architecture: amd64
CPU ID: AuthenticAMD-00a60f12-178bfbff
SUPERCOP version: 20240716
Operation: crypto_aead
Primitive: flexaead256b256v1
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
70112427544 0 048599 828 1096T:refclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
70234227544 0 048711 828 1096T:refclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
8070546930 0 022331 820 1096T:refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
11402234320 0 018046 796 1064T:refgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
124123610897 0 025952 820 1096T:refclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716

Compiler output


encrypt.c: In function 'dirPFK',
encrypt.c:     inlined from 'crypto_aead_flexaead256b256v1_ref_timingleaks_encrypt' at encrypt.c:164:2:
encrypt.c: encrypt.c:376:36: warning: writing 32 bytes into a region of size 0 [-Wstringop-overflow=]
encrypt.c:   376 |                         *(block+i) = (*(block+i))^(*(block+i+(blocklen/2)));
encrypt.c:       |                         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
encrypt.c: encrypt.c: In function 'crypto_aead_flexaead256b256v1_ref_timingleaks_encrypt':
encrypt.c: encrypt.c:104:23: note: at offset 32 into destination object 'tag' of size 32
encrypt.c:   104 |         unsigned char tag[BLOCKSIZE];
encrypt.c:       |                       ^~~
encrypt.c: In function 'dirPFK',
encrypt.c:     inlined from 'crypto_aead_flexaead256b256v1_ref_timingleaks_encrypt' at encrypt.c:164:2:
encrypt.c: encrypt.c:376:36: warning: writing 32 bytes into a region of size 0 [-Wstringop-overflow=]
encrypt.c:   376 |                         *(block+i) = (*(block+i))^(*(block+i+(blocklen/2)));
encrypt.c:       |                         ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
encrypt.c: encrypt.c: In function 'crypto_aead_flexaead256b256v1_ref_timingleaks_encrypt':
encrypt.c: encrypt.c:104:23: note: at offset [64, 96] into destination object 'tag' of size 32
encrypt.c:   104 |         unsigned char tag[BLOCKSIZE];
encrypt.c:       |                       ^~~
encrypt.c: In function 'dirPFK',
encrypt.c:     inlined from 'crypto_aead_flexaead256b256v1_ref_timingleaks_encrypt' at encrypt.c:164: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_flexaead256b256v1_ref_timingleaks_encrypt':
encrypt.c: encrypt.c:104:23: note: at offset 128 into destination object 'tag' of size 32
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)