Implementation notes: amd64, comet, crypto_aead/twine80n6clocv1

Computer: comet
Microarchitecture: amd64; Comet Lake (806ec)
Architecture: amd64
CPU ID: GenuineIntel-000806ec-bfebfbff
SUPERCOP version: 20240625
Operation: crypto_aead
Primitive: twine80n6clocv1
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
5560426485 0 28820410 780 1376T:refgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024063020240625
5573296951 0 28821363 788 1376T:refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024063020240625
5594958137 0 28824435 788 1376T:refgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024063020240625
5927717228 0 28823788 860 1312T:refclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024063020240625
6018847571 0 28825428 860 1344T:refclang_-march=native_-O2_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024063020240625
6047807660 0 28825820 860 1376T:refclang_-march=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024063020240625
6214056372 0 28820428 860 1312T:refclang_-march=native_-O_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024063020240625
9188356029 0 28820874 852 1376T:refclang_-march=native_-Os_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024063020240625
17680155842 0 28818550 764 1344T:refgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024063020240625

Compiler output


cloc.c: cloc.c:64:3: warning: implicit declaration of function 'pstate2' is invalid in C99 [-Wimplicit-function-declaration]
cloc.c:                 pstate2("After xoring associated data:", state);
cloc.c:                 ^
cloc.c: cloc.c:72:3: warning: implicit declaration of function 'pstate2' is invalid in C99 [-Wimplicit-function-declaration]
cloc.c:                 pstate2("After processing last partial associated data block:", state);
cloc.c:                 ^
cloc.c: cloc.c:93:2: warning: implicit declaration of function 'pstate2' is invalid in C99 [-Wimplicit-function-declaration]
cloc.c:         pstate2("After applying f1/f2 to state:", state);
cloc.c:         ^
cloc.c: cloc.c:133:4: warning: implicit declaration of function 'pstate2' is invalid in C99 [-Wimplicit-function-declaration]
cloc.c:                         pstate2("After xoring message block:", es);
cloc.c:                         ^
cloc.c: cloc.c:138:4: warning: implicit declaration of function 'pstate2' is invalid in C99 [-Wimplicit-function-declaration]
cloc.c:                         pstate2("After xoring ciphertext block:", es);
cloc.c:                         ^
cloc.c: cloc.c:145:3: warning: implicit declaration of function 'pstate2' is invalid in C99 [-Wimplicit-function-declaration]
cloc.c:                 pstate2("After applying fix1:", es);
cloc.c:                 ^
cloc.c: cloc.c:154:3: warning: implicit declaration of function 'pstate2' is invalid in C99 [-Wimplicit-function-declaration]
cloc.c:                 pstate2("After xoring last partial message block:", es);
cloc.c:                 ^
cloc.c: cloc.c:159:3: warning: implicit declaration of function 'pstate2' is invalid in C99 [-Wimplicit-function-declaration]
cloc.c:                 pstate2("After xoring last partial ciphertext block:", es);
cloc.c:                 ^
cloc.c: cloc.c:163:2: warning: implicit declaration of function 'pstate2' is invalid in C99 [-Wimplicit-function-declaration]
cloc.c: ...
encrypt.c: encrypt.c:76:2: warning: misleading indentation; statement is not part of the previous 'for' [-Wmisleading-indentation]
encrypt.c:         return RETURN_SUCCESS;
encrypt.c:         ^
encrypt.c: encrypt.c:71:5: note: previous statement is here
encrypt.c:     for(i = 0; i < CRYPTO_ABYTES; i++)
encrypt.c:     ^
encrypt.c: 1 warning generated.

Number of similar (implementation,compiler) pairs: 5, namely:
ImplementationCompiler
T:refclang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_14.0.6)
T:refclang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_14.0.6)
T:refclang -march=native -O -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_14.0.6)
T:refclang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_14.0.6)
T:refclang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Debian_Clang_14.0.6)

Compiler output


cloc.c: cloc.c: In function 'process_ad':
cloc.c: cloc.c:64:17: warning: implicit declaration of function 'pstate2'; did you mean 'pstate'? [-Wimplicit-function-declaration]
cloc.c:    64 |                 pstate2("After xoring associated data:", state);
cloc.c:       |                 ^~~~~~~
cloc.c:       |                 pstate
encrypt.c: encrypt.c: In function 'crypto_aead_twine80n6clocv1_ref_timingleaks_decrypt':
encrypt.c: encrypt.c:71:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
encrypt.c:    71 |     for(i = 0; i < CRYPTO_ABYTES; i++)
encrypt.c:       |     ^~~
encrypt.c: encrypt.c:76:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
encrypt.c:    76 |         return RETURN_SUCCESS;
encrypt.c:       |         ^~~~~~
twine.c: twine.c: In function 'Keyschedule':
twine.c: twine.c:451:17: warning: 'Keyschedule128' reading 32 bytes from a region of size 16 [-Wstringop-overread]
twine.c:   451 |                 Keyschedule128(sk);
twine.c:       |                 ^~~~~~~~~~~~~~~~~~
twine.c: twine.c:451:17: note: referencing argument 1 of type 'const uint8[32]' {aka 'const unsigned char[32]'}
twine.c: twine.c:317:6: note: in a call to function 'Keyschedule128'
twine.c:   317 | void Keyschedule128(const uint8 sk[128/4])
twine.c:       |      ^~~~~~~~~~~~~~
twine.c: twine.c:451:17: warning: 'Keyschedule128' reading 32 bytes from a region of size 16 [-Wstringop-overread]
twine.c:   451 |                 Keyschedule128(sk);
twine.c:       |                 ^~~~~~~~~~~~~~~~~~
twine.c: twine.c:451:17: note: referencing argument 1 of type 'const uint8[32]' {aka 'const unsigned char[32]'}
twine.c: twine.c:317:6: note: in a call to function 'Keyschedule128'
twine.c:   317 | void Keyschedule128(const uint8 sk[128/4])
twine.c:       |      ^~~~~~~~~~~~~~
twine.c: twine.c:451:17: warning: 'Keyschedule128' reading 32 bytes from a region of size 16 [-Wstringop-overread]
twine.c:   451 |                 Keyschedule128(sk);
twine.c:       |                 ^~~~~~~~~~~~~~~~~~
twine.c: twine.c:451:17: note: referencing argument 1 of type 'const uint8[32]' {aka 'const unsigned char[32]'}
twine.c: twine.c:317:6: note: in a call to function 'Keyschedule128'
twine.c:   317 | void Keyschedule128(const uint8 sk[128/4])
twine.c:       |      ^~~~~~~~~~~~~~

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