Implementation notes: amd64, jasper3, crypto_aead/lacv1

Computer: jasper3
Microarchitecture: amd64; Tremont (906c0)
Architecture: amd64
CPU ID: GenuineIntel-000906c0-20-bfebfbff
SUPERCOP version: 20240625
Operation: crypto_aead
Primitive: lacv1
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
5183255747 16 021505 812 1080T:refgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
11700108344 16 024749 844 1016T:refclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
12530657346 16 022741 844 1016T:refclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
12531337410 16 025109 844 1016T:refclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
19678403980 16 018043 836 1016T:refclang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
20656354778 16 019353 812 1080T:refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
23512774648 16 018808 804 1080T:refgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
25114573456 16 016979 836 1016T:refclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625
32121133400 16 016356 788 1048T:refgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024062720240625

Compiler output


encrypt.c: In function 'padding',
encrypt.c:     inlined from 'crypto_aead_lacv1_ref_timingleaks_encrypt' at encrypt.c:426:3:
encrypt.c: encrypt.c:25:22: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
encrypt.c:    25 |    xpad[xpadlen - 5] = ((xlen * 8) >> 32) & 0xff;
encrypt.c:       |    ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
encrypt.c: encrypt.c: In function 'crypto_aead_lacv1_ref_timingleaks_encrypt':
encrypt.c: encrypt.c:425:27: note: at offset -5 to an object with size 0 allocated by 'malloc' here
encrypt.c:   425 |   mpad = (unsigned char *)malloc(mpadlen); //the array to store padded message(mpad bytes)
encrypt.c:       |                           ^~~~~~~~~~~~~~~
encrypt.c: In function 'padding',
encrypt.c:     inlined from 'crypto_aead_lacv1_ref_timingleaks_encrypt' at encrypt.c:426:3:
encrypt.c: encrypt.c:26:22: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
encrypt.c:    26 |    xpad[xpadlen - 4] = ((xlen * 8) >> 24) & 0xff;
encrypt.c:       |    ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
encrypt.c: encrypt.c: In function 'crypto_aead_lacv1_ref_timingleaks_encrypt':
encrypt.c: encrypt.c:425:27: note: at offset -4 to an object with size 0 allocated by 'malloc' here
encrypt.c:   425 |   mpad = (unsigned char *)malloc(mpadlen); //the array to store padded message(mpad bytes)
encrypt.c:       |                           ^~~~~~~~~~~~~~~
encrypt.c: In function 'padding',
encrypt.c:     inlined from 'crypto_aead_lacv1_ref_timingleaks_encrypt' at encrypt.c:426:3:
encrypt.c: encrypt.c:27:22: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
encrypt.c:    27 |    xpad[xpadlen - 3] = ((xlen * 8) >> 16) & 0xff;
encrypt.c:       |    ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
encrypt.c: encrypt.c: In function 'crypto_aead_lacv1_ref_timingleaks_encrypt':
encrypt.c: encrypt.c:425:27: note: at offset -3 to an object with size 0 allocated by 'malloc' here
encrypt.c: ...

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
T:refgcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)

Compiler output


encrypt.c: encrypt.c: In function 'crypto_aead_lacv1_ref_timingleaks_decrypt':
encrypt.c: encrypt.c:619:29: warning: 'mpad' may be used uninitialized in this function [-Wmaybe-uninitialized]
encrypt.c:   619 |     datastate[j + 2] ^= mpad[i + j];
encrypt.c:       |                             ^

Number of similar (implementation,compiler) pairs: 2, namely:
ImplementationCompiler
T:refgcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)
T:refgcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (10.2.1_20210110)