Implementation notes: amd64, tueisecgern, crypto_aead/ppaev11

Computer: tueisecgern
Architecture: amd64
CPU ID: GenuineIntel-000306f2-bfebfbff
SUPERCOP version: 20160724
Operation: crypto_aead
Primitive: ppaev11

Test failure

Implementation: crypto_aead/ppaev11/ref
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
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 ref
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv ref

Test failure

Implementation: crypto_aead/ppaev11/ref
Compiler: gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv
error 111

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

Compiler output

Implementation: crypto_aead/ppaev11/ref
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv
encrypt.c: encrypt.c: In function 'crypto_aead_ppaev11_ref_encrypt':
encrypt.c: encrypt.c:36:4: warning: passing argument 3 of 'gen_ivs' discards 'const' qualifier from pointer target type [enabled by default]
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:13: note: expected 'unsigned char *' but argument is of type 'const unsigned char *'
encrypt.c: static void gen_ivs( unsigned char *, unsigned char *, unsigned char *, unsigned char * );
encrypt.c: ^
encrypt.c: encrypt.c:36:4: warning: passing argument 4 of 'gen_ivs' discards 'const' qualifier from pointer target type [enabled by default]
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:13: note: expected 'unsigned char *' but argument is of type 'const unsigned char *'
encrypt.c: static void gen_ivs( unsigned char *, unsigned char *, unsigned char *, unsigned char * );
encrypt.c: ^
encrypt.c: encrypt.c:39:4: warning: passing argument 2 of 'gen_icv' discards 'const' qualifier from pointer target type [enabled by default]
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:13: note: expected 'unsigned char *' but argument is of type 'const unsigned char *'
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:4: warning: passing argument 2 of 'gtag_ad' discards 'const' qualifier from pointer target type [enabled by default]
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:13: note: expected 'unsigned char *' but argument is of type 'const unsigned char *'
encrypt.c: 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 ref
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv ref
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv ref
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv ref