Implementation notes: amd64, hertz, crypto_aead/aes128n8silcv1

Computer: hertz
Microarchitecture: amd64; Zen 4 (a60f12)
Architecture: amd64
CPU ID: AuthenticAMD-00a60f12-178bfbff
SUPERCOP version: 20240716
Operation: crypto_aead
Primitive: aes128n8silcv1
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
11754020982 0 034609 796 1064T:refgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
11939225300 0 042662 820 1160T:refgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716
11988222592 0 037910 820 1096T:refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024071620240716

Compiler output


encrypt.c: encrypt.c:78:2: warning: misleading indentation; statement is not part of the previous 'for' [-Wmisleading-indentation]
encrypt.c:    78 |         return RETURN_SUCCESS;
encrypt.c:       |         ^
encrypt.c: encrypt.c:73:5: note: previous statement is here
encrypt.c:    73 |     for(i = 0; i < CRYPTO_ABYTES; i++)
encrypt.c:       |     ^
encrypt.c: 1 warning generated.
silc.c: silc.c:39:2: error: call to undeclared function 'pstate2'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
silc.c:    39 |         pstate2("processing nonce:", NULL);
silc.c:       |         ^
silc.c: silc.c:39:2: note: did you mean 'pstate'?
silc.c: ./silc.h:61:6: note: 'pstate' declared here
silc.c:    61 | void pstate(const unsigned char* st, int len);
silc.c:       |      ^
silc.c: silc.c:101:4: error: call to undeclared function 'pstate2'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
silc.c:   101 |                         pstate2("After xoring message block:", es);
silc.c:       |                         ^
silc.c: silc.c:106:4: error: call to undeclared function 'pstate2'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
silc.c:   106 |                         pstate2("After xoring ciphertext block:", es);
silc.c:       |                         ^
silc.c: silc.c:110:3: error: call to undeclared function 'pstate2'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
silc.c:   110 |                 pstate2("tag state:", ts);
silc.c:       |                 ^
silc.c: silc.c:127:4: error: call to undeclared function 'pstate2'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
silc.c:   127 |                         pstate2("After xoring last partial message block:", es);
silc.c:       |                         ^
silc.c: silc.c:132:4: error: call to undeclared function 'pstate2'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
silc.c:   132 |                         pstate2("After xoring last partial ciphertext block:", es);
silc.c:       |                         ^
silc.c: silc.c:136:3: error: call to undeclared function 'pstate2'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
silc.c:   136 |                 pstate2("tag state:", ts);
silc.c:       |                 ^
silc.c: ...

Number of similar (implementation,compiler) pairs: 3, 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))

Compiler output


encrypt.c: encrypt.c: In function 'crypto_aead_aes128n8silcv1_ref_timingleaks_decrypt':
encrypt.c: encrypt.c:73:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
encrypt.c:    73 |     for(i = 0; i < CRYPTO_ABYTES; i++)
encrypt.c:       |     ^~~
encrypt.c: encrypt.c:78:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
encrypt.c:    78 |         return RETURN_SUCCESS;
encrypt.c:       |         ^~~~~~
silc.c: silc.c: In function 'process_ad':
silc.c: silc.c:39:9: warning: implicit declaration of function 'pstate2'; did you mean 'pstate'? [-Wimplicit-function-declaration]
silc.c:    39 |         pstate2("processing nonce:", NULL);
silc.c:       |         ^~~~~~~
silc.c:       |         pstate

Number of similar (implementation,compiler) pairs: 3, namely:
ImplementationCompiler
T:refgcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:refgcc -march=native -mtune=native -O3 -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)

Namespace violations


aes_core.o AES_decrypt T
aes_core.o AES_encrypt T
aes_core.o AES_set_decrypt_key T
aes_core.o AES_set_encrypt_key T
aes_core.o print_state T
silc.o ae_encrypt T
silc.o ae_init T
silc.o process_ad T
utils.o ae_allocate T
utils.o print_cxt T
utils.o pstate T
utils.o pstate2 T
utils.o xor_bytes T
utils.o xor_bytes2 T

Number of similar (implementation,compiler) pairs: 3, namely:
ImplementationCompiler
T:refgcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:refgcc -march=native -mtune=native -O3 -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)