Implementation notes: amd64, hertz, crypto_aead/bleep64

Computer: hertz
Microarchitecture: amd64; Zen 4 (a60f12)
Architecture: amd64
CPU ID: AuthenticAMD-00a60f12-178bfbff
SUPERCOP version: 20240716
Operation: crypto_aead
Primitive: bleep64

Test failure


error 111
crypto_aead_encrypt is nondeterministic

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)

Compiler output


encrypt.c: encrypt.c:25:3: error: function definition is not allowed here
encrypt.c:    25 |   { t = (((uint64_t)x * y) >> 32) - (x * y);  // filter LFSR, diffuse autokey
encrypt.c:       |   ^
encrypt.c: encrypt.c:50:29: error: call to undeclared function 'crypt'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
encrypt.c:    50 |   while ( (n -= 8) >= 0 ) { crypt(1, 1); crypt(0, 1); } // do 8 bytes per loop
encrypt.c:       |                             ^
encrypt.c: encrypt.c:51:15: error: call to undeclared function 'crypt'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
encrypt.c:    51 |   if (n > -5) crypt(1, 1);  // if 4 to 7 bytes left, do another full word
encrypt.c:       |               ^
encrypt.c: encrypt.c:7:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
encrypt.c:     7 | inline int Bleep64(B_iv, B_key, B_pt, B_ct, B_ad, adlen, inlen, outlen, encrypt)
encrypt.c:       |            ^
encrypt.c: encrypt.c:92:18: warning: passing 'const unsigned char *' to parameter of type 'unsigned char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
encrypt.c:    92 | { return Bleep64(npub, k, m, c, ad, adlen, mlen, clen, 1); }
encrypt.c:       |                  ^~~~
encrypt.c: encrypt.c:92:24: warning: passing 'const unsigned char *' to parameter of type 'unsigned char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
encrypt.c:    92 | { return Bleep64(npub, k, m, c, ad, adlen, mlen, clen, 1); }
encrypt.c:       |                        ^
encrypt.c: encrypt.c:92:27: warning: passing 'const unsigned char *' to parameter of type 'unsigned char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
encrypt.c:    92 | { return Bleep64(npub, k, m, c, ad, adlen, mlen, clen, 1); }
encrypt.c:       |                           ^
encrypt.c: encrypt.c:92:33: warning: passing 'const unsigned char *' to parameter of type 'unsigned char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
encrypt.c:    92 | { return Bleep64(npub, k, m, c, ad, adlen, mlen, clen, 1); }
encrypt.c:       |                                 ^~
encrypt.c: encrypt.c:92:50: warning: incompatible pointer types passing 'unsigned long long *' to parameter of type 'int32_t *' (aka 'int *') [-Wincompatible-pointer-types]
encrypt.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


try.c: /usr/bin/ld: libcrypto_aead_bleep64.a(encrypt.o): in function `crypto_aead_bleep64_ref_timingleaks_encrypt':
try.c: .../supercop-data/hertz/amd64/try/c/gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/bleep64/ref/work/encrypt.c:92:(.text+0x...): undefined reference to `Bleep64'
try.c: /usr/bin/ld: libcrypto_aead_bleep64.a(encrypt.o): in function `crypto_aead_bleep64_ref_timingleaks_decrypt':
try.c: .../supercop-data/hertz/amd64/try/c/gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/bleep64/ref/work/encrypt.c:100:(.text+0x...): undefined reference to `Bleep64'
try.c: collect2: error: ld returned 1 exit status

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

Compiler output


try.c: /usr/bin/ld: libcrypto_aead_bleep64.a(encrypt.o): in function `crypto_aead_bleep64_ref_timingleaks_encrypt':
try.c: .../supercop-data/hertz/amd64/try/c/gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/bleep64/ref/work/encrypt.c:92:(.text+0x...): undefined reference to `Bleep64'
try.c: /usr/bin/ld: libcrypto_aead_bleep64.a(encrypt.o): in function `crypto_aead_bleep64_ref_timingleaks_decrypt':
try.c: .../supercop-data/hertz/amd64/try/c/gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/bleep64/ref/work/encrypt.c:100:(.text+0x...): undefined reference to `Bleep64'
try.c: collect2: error: ld returned 1 exit status

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