Implementation notes: amd64, genji262, crypto_aead/ppaev11

Computer: genji262
Architecture: amd64
CPU ID: AuthenticAMD-00800f12-178bfbff
SUPERCOP version: 20191017
Operation: crypto_aead
Primitive: ppaev11

Test failure

Implementation: ref
Security model: unknown
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
error 111
crypto_aead_decrypt returns nonzero

Number of similar (compiler,implementation) pairs: 2, namely:
CompilerImplementations
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE ref
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE ref

Test failure

Implementation: ref
Security model: unknown
Compiler: gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE
error 111

Number of similar (compiler,implementation) pairs: 17, namely:
CompilerImplementations
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE ref
icc -march=broadwell -mtune=broadwell -O3 -fomit-frame-pointer ref
icc -march=cannonlake -mtune=cannonlake -O2 -fomit-frame-pointer ref
icc -march=cannonlake -mtune=cannonlake -O3 -fomit-frame-pointer ref
icc -march=core-avx-i -mtune=core-avx-i -O3 -fomit-frame-pointer ref
icc -march=core-avx2 -mtune=core-avx2 -O3 -fomit-frame-pointer ref
icc -march=corei7-avx -mtune=corei7-avx -O3 -fomit-frame-pointer ref
icc -march=corei7 -mtune=corei7 -O2 -fomit-frame-pointer ref
icc -march=corei7 -mtune=corei7 -O3 -fomit-frame-pointer ref
icc -march=haswell -mtune=haswell -O3 -fomit-frame-pointer ref
icc -march=icelake-client -mtune=icelake-client -O2 -fomit-frame-pointer ref
icc -march=icelake-client -mtune=icelake-client -O3 -fomit-frame-pointer ref
icc -march=ivybridge -mtune=ivybridge -O3 -fomit-frame-pointer ref
icc -march=sandybridge -mtune=sandybridge -O3 -fomit-frame-pointer ref
icc -march=skylake-avx512 -mtune=skylake-avx512 -O2 -fomit-frame-pointer ref
icc -march=skylake-avx512 -mtune=skylake-avx512 -O3 -fomit-frame-pointer ref
icc -march=skylake -mtune=skylake -O3 -fomit-frame-pointer ref

Test failure

Implementation: ref
Security model: unknown
Compiler: gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE
error 111
crypto_aead_encrypt writes after output

Number of similar (compiler,implementation) pairs: 9, namely:
CompilerImplementations
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE ref
icc -march=broadwell -mtune=broadwell -O2 -fomit-frame-pointer ref
icc -march=core-avx-i -mtune=core-avx-i -O2 -fomit-frame-pointer ref
icc -march=core-avx2 -mtune=core-avx2 -O2 -fomit-frame-pointer ref
icc -march=corei7-avx -mtune=corei7-avx -O2 -fomit-frame-pointer ref
icc -march=haswell -mtune=haswell -O2 -fomit-frame-pointer ref
icc -march=ivybridge -mtune=ivybridge -O2 -fomit-frame-pointer ref
icc -march=sandybridge -mtune=sandybridge -O2 -fomit-frame-pointer ref
icc -march=skylake -mtune=skylake -O2 -fomit-frame-pointer ref

Compiler output

Implementation: ref
Security model: unknown
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
encrypt.c: encrypt.c:36:46: warning: passing 'const unsigned char *' to parameter of type 'unsigned char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
encrypt.c: memcpy( _k, k, 16 ); gen_ivs( _IVa, _IVb, npub, k ); // It would be the right place to preset AES key to avoid rekeying for every block
encrypt.c: ^~~~
encrypt.c: encrypt.c:15:71: note: passing argument to parameter here
encrypt.c: static void gen_ivs( unsigned char *, unsigned char *, unsigned char *, unsigned char * );
encrypt.c: ^
encrypt.c: encrypt.c:36:52: warning: passing 'const unsigned char *' to parameter of type 'unsigned char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
encrypt.c: memcpy( _k, k, 16 ); gen_ivs( _IVa, _IVb, npub, k ); // It would be the right place to preset AES key to avoid rekeying for every block
encrypt.c: ^
encrypt.c: encrypt.c:15:92: note: passing argument to parameter here
encrypt.c: static void gen_ivs( unsigned char *, unsigned char *, unsigned char *, unsigned char * );
encrypt.c: ^
encrypt.c: encrypt.c:39:18: warning: passing 'const unsigned char *' to parameter of type 'unsigned char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
encrypt.c: gen_icv( icv, npub, mlen, adlen, _IVa, _IVb ); // Let's compute the ICV for this message
encrypt.c: ^~~~
encrypt.c: encrypt.c:16:54: note: passing argument to parameter here
encrypt.c: static void gen_icv( unsigned char *, unsigned char *, unsigned long long, unsigned long long, unsigned char *, unsigned char * );
encrypt.c: ^
encrypt.c: encrypt.c:40:19: warning: passing 'const unsigned char *' to parameter of type 'unsigned char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
encrypt.c: gtag_ad( _IVa, ad, adlen, _k, icv ); // AD tag calculated on IVa (and using initial value as input)
encrypt.c: ^~
encrypt.c: encrypt.c:17:54: note: passing argument to parameter here
encrypt.c: static void gtag_ad( unsigned char *, unsigned char *, unsigned long long, unsigned char *, unsigned char * );
encrypt.c: ^
encrypt.c: encrypt.c:50:31: warning: passing 'const unsigned char *' to parameter of type 'unsigned char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
encrypt.c: ...

Number of similar (compiler,implementation) pairs: 5, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE ref
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE ref
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE ref
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE ref
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE ref

Compiler output

Implementation: ref
Security model: unknown
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
encrypt.c: encrypt.c: In function 'crypto_aead_ppaev11_ref_encrypt':
encrypt.c: encrypt.c:36:46: warning: passing argument 3 of 'gen_ivs' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
encrypt.c: 36 | memcpy( _k, k, 16 ); gen_ivs( _IVa, _IVb, npub, k ); // It would be the right place to preset AES key to avoid rekeying for every block
encrypt.c: | ^~~~
encrypt.c: encrypt.c:15:56: note: expected 'unsigned char *' but argument is of type 'const unsigned char *'
encrypt.c: 15 | static void gen_ivs( unsigned char *, unsigned char *, unsigned char *, unsigned char * );
encrypt.c: | ^~~~~~~~~~~~~~~
encrypt.c: encrypt.c:36:52: warning: passing argument 4 of 'gen_ivs' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
encrypt.c: 36 | memcpy( _k, k, 16 ); gen_ivs( _IVa, _IVb, npub, k ); // It would be the right place to preset AES key to avoid rekeying for every block
encrypt.c: | ^
encrypt.c: encrypt.c:15:76: note: expected 'unsigned char *' but argument is of type 'const unsigned char *'
encrypt.c: 15 | static void gen_ivs( unsigned char *, unsigned char *, unsigned char *, unsigned char * );
encrypt.c: | ^~~~~~~~~~~~~~~
encrypt.c: encrypt.c:39:18: warning: passing argument 2 of 'gen_icv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
encrypt.c: 39 | gen_icv( icv, npub, mlen, adlen, _IVa, _IVb ); // Let's compute the ICV for this message
encrypt.c: | ^~~~
encrypt.c: encrypt.c:16:39: note: expected 'unsigned char *' but argument is of type 'const unsigned char *'
encrypt.c: 16 | static void gen_icv( unsigned char *, unsigned char *, unsigned long long, unsigned long long, unsigned char *, unsigned char * );
encrypt.c: | ^~~~~~~~~~~~~~~
encrypt.c: encrypt.c:40:19: warning: passing argument 2 of 'gtag_ad' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
encrypt.c: 40 | gtag_ad( _IVa, ad, adlen, _k, icv ); // AD tag calculated on IVa (and using initial value as input)
encrypt.c: | ^~
encrypt.c: encrypt.c:17:39: note: expected 'unsigned char *' but argument is of type 'const unsigned char *'
encrypt.c: 17 | static void gtag_ad( unsigned char *, unsigned char *, unsigned long long, unsigned char *, unsigned char * );
encrypt.c: | ^~~~~~~~~~~~~~~
encrypt.c: ...

Number of similar (compiler,implementation) pairs: 4, namely:
CompilerImplementations
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE ref
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE ref
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE ref
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE ref

Compiler output

Implementation: ref
Security model: unknown
Compiler: icc -march=broadwell -mtune=broadwell -O2 -fomit-frame-pointer
encrypt.c: encrypt.c(36): warning #2330: argument of type "const unsigned char *" is incompatible with parameter of type "unsigned char *" (dropping qualifiers)
encrypt.c: memcpy( _k, k, 16 ); gen_ivs( _IVa, _IVb, npub, k ); // It would be the right place to preset AES key to avoid rekeying for every block
encrypt.c: ^
encrypt.c:
encrypt.c: encrypt.c(36): warning #2330: argument of type "const unsigned char *" is incompatible with parameter of type "unsigned char *" (dropping qualifiers)
encrypt.c: memcpy( _k, k, 16 ); gen_ivs( _IVa, _IVb, npub, k ); // It would be the right place to preset AES key to avoid rekeying for every block
encrypt.c: ^
encrypt.c:
encrypt.c: encrypt.c(39): warning #2330: argument of type "const unsigned char *" is incompatible with parameter of type "unsigned char *" (dropping qualifiers)
encrypt.c: gen_icv( icv, npub, mlen, adlen, _IVa, _IVb ); // Let's compute the ICV for this message
encrypt.c: ^
encrypt.c:
encrypt.c: encrypt.c(40): warning #2330: argument of type "const unsigned char *" is incompatible with parameter of type "unsigned char *" (dropping qualifiers)
encrypt.c: gtag_ad( _IVa, ad, adlen, _k, icv ); // AD tag calculated on IVa (and using initial value as input)
encrypt.c: ^
encrypt.c:
encrypt.c: encrypt.c(50): warning #2330: argument of type "const unsigned char *" is incompatible with parameter of type "unsigned char *" (dropping qualifiers)
encrypt.c: encppae( c, _IVa, _IVb, m, _k ); // One block ++AE encryption with IVa and IVb chainning ...
encrypt.c: ^
encrypt.c:
encrypt.c: encrypt.c(72): warning #2330: argument of type "const unsigned char *" is incompatible with parameter of type "unsigned char *" (dropping qualifiers)
encrypt.c: memcpy( d_k, k, 16 ); gen_ivs( d_IVa, d_IVb, npub, d_k );
encrypt.c: ^
encrypt.c:
encrypt.c: encrypt.c(75): warning #2330: argument of type "const unsigned char *" is incompatible with parameter of type "unsigned char *" (dropping qualifiers)
encrypt.c: ...

Number of similar (compiler,implementation) pairs: 24, namely:
CompilerImplementations
icc -march=broadwell -mtune=broadwell -O2 -fomit-frame-pointer ref
icc -march=broadwell -mtune=broadwell -O3 -fomit-frame-pointer ref
icc -march=cannonlake -mtune=cannonlake -O2 -fomit-frame-pointer ref
icc -march=cannonlake -mtune=cannonlake -O3 -fomit-frame-pointer ref
icc -march=core-avx-i -mtune=core-avx-i -O2 -fomit-frame-pointer ref
icc -march=core-avx-i -mtune=core-avx-i -O3 -fomit-frame-pointer ref
icc -march=core-avx2 -mtune=core-avx2 -O2 -fomit-frame-pointer ref
icc -march=core-avx2 -mtune=core-avx2 -O3 -fomit-frame-pointer ref
icc -march=corei7-avx -mtune=corei7-avx -O2 -fomit-frame-pointer ref
icc -march=corei7-avx -mtune=corei7-avx -O3 -fomit-frame-pointer ref
icc -march=corei7 -mtune=corei7 -O2 -fomit-frame-pointer ref
icc -march=corei7 -mtune=corei7 -O3 -fomit-frame-pointer ref
icc -march=haswell -mtune=haswell -O2 -fomit-frame-pointer ref
icc -march=haswell -mtune=haswell -O3 -fomit-frame-pointer ref
icc -march=icelake-client -mtune=icelake-client -O2 -fomit-frame-pointer ref
icc -march=icelake-client -mtune=icelake-client -O3 -fomit-frame-pointer ref
icc -march=ivybridge -mtune=ivybridge -O2 -fomit-frame-pointer ref
icc -march=ivybridge -mtune=ivybridge -O3 -fomit-frame-pointer ref
icc -march=sandybridge -mtune=sandybridge -O2 -fomit-frame-pointer ref
icc -march=sandybridge -mtune=sandybridge -O3 -fomit-frame-pointer ref
icc -march=skylake-avx512 -mtune=skylake-avx512 -O2 -fomit-frame-pointer ref
icc -march=skylake-avx512 -mtune=skylake-avx512 -O3 -fomit-frame-pointer ref
icc -march=skylake -mtune=skylake -O2 -fomit-frame-pointer ref
icc -march=skylake -mtune=skylake -O3 -fomit-frame-pointer ref