Implementation notes: aarch64, pmnod145, crypto_stream/lexv2

Computer: pmnod145
Architecture: aarch64
CPU ID: 431f0af1
SUPERCOP version: 20191017
Operation: crypto_stream
Primitive: lexv2

Compiler output

Implementation: e/v2/ref
Security model: unknown
Compiler: armclang -march=armv8a+crypto -mcpu=thunderx2t99 -mtune=thunderx2t99 -O2 -fPIC -fPIE
lex.c: In file included from lex.c:2:
lex.c: ./e/lex.c:685:9: warning: array index 10 is past the end of the array (which contains 10 elements) [-Warray-bounds]
lex.c: ctx->ks[10] = (t0 & 0xFF00FF00) ^ ((t2 & 0xFF00FF00)>>8); /* Leak for odd rounds */
lex.c: ^ ~~
lex.c: ./e/ecrypt-sync.h:65:3: note: array 'ks' declared here
lex.c: u32 ks[NUMWORDS]; /* Keystream words collected from leaks */
lex.c: ^
lex.c: In file included from lex.c:2:
lex.c: ./e/lex.c:692:6: warning: array index 11 is past the end of the array (which contains 10 elements) [-Warray-bounds]
lex.c: ctx->ks[11] = ((s0 & 0xFF00FF)<<8) ^ (s2 & 0xFF00FF); /* Leak for even rounds */
lex.c: ^ ~~
lex.c: ./e/ecrypt-sync.h:65:3: note: array 'ks' declared here
lex.c: u32 ks[NUMWORDS]; /* Keystream words collected from leaks */
lex.c: ^
lex.c: In file included from lex.c:2:
lex.c: ./e/lex.c:698:13: warning: array index 12 is past the end of the array (which contains 10 elements) [-Warray-bounds]
lex.c: ctx->ks[12] = (t0 & 0xFF00FF00) ^ ((t2 & 0xFF00FF00)>>8); /* Leak for odd rounds */
lex.c: ^ ~~
lex.c: ./e/ecrypt-sync.h:65:3: note: array 'ks' declared here
lex.c: u32 ks[NUMWORDS]; /* Keystream words collected from leaks */
lex.c: ^
lex.c: In file included from lex.c:2:
lex.c: ./e/lex.c:752:59: warning: implicit declaration of function 'U32TO32_LITTLE' is invalid in C99 [-Wimplicit-function-declaration]
lex.c: *(u32*)(output+ 4*j) = *(u32*)(input+ 4*j) ^ U32TO32_LITTLE(ctx->ks[j]);
lex.c: ^
lex.c: ...

Number of similar (compiler,implementation) pairs: 2, namely:
CompilerImplementations
armclang -march=armv8a+crypto -mcpu=thunderx2t99 -mtune=thunderx2t99 -O2 -fPIC -fPIE e/v2/ref
armclang -march=armv8a+crypto -mcpu=thunderx2t99 -mtune=thunderx2t99 -O3 -fPIC -fPIE e/v2/ref

Compiler output

Implementation: e/v2/ref
Security model: unknown
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
lex.c: In file included from lex.c:2:
lex.c: e/lex.c: In function 'crypto_stream_lexv2_e_v2_ref_ECRYPT_process_bytes':
lex.c: e/lex.c:752:59: warning: implicit declaration of function 'U32TO32_LITTLE'; did you mean 'U8TO32_LITTLE'? [-Wimplicit-function-declaration]
lex.c: 752 | *(u32*)(output+ 4*j) = *(u32*)(input+ 4*j) ^ U32TO32_LITTLE(ctx->ks[j]);
lex.c: | ^~~~~~~~~~~~~~
lex.c: | U8TO32_LITTLE
try.c: /dibona_home_nfs/rdolbeau/gcc-9.2.0-full+isl/lib/gcc/aarch64-unknown-linux-gnu/9.2.0/../../../../aarch64-unknown-linux-gnu/bin/ld: crypto_stream_lexv2.a(lex.o): in function `crypto_stream_lexv2_e_v2_ref_ECRYPT_process_bytes':
try.c: lex.c:(.text+0x...): undefined reference to `U32TO32_LITTLE'
try.c: /dibona_home_nfs/rdolbeau/gcc-9.2.0-full+isl/lib/gcc/aarch64-unknown-linux-gnu/9.2.0/../../../../aarch64-unknown-linux-gnu/bin/ld: crypto_stream_lexv2.a(lex.o): in function `crypto_stream_lexv2_e_v2_ref_ECRYPT_keystream_bytes':
try.c: lex.c:(.text+0x...): undefined reference to `U32TO32_LITTLE'
try.c: /dibona_home_nfs/rdolbeau/gcc-9.2.0-full+isl/lib/gcc/aarch64-unknown-linux-gnu/9.2.0/../../../../aarch64-unknown-linux-gnu/bin/ld: crypto_stream_lexv2.a(lex.o): in function `crypto_stream_lexv2_e_v2_ref_ECRYPT_process_blocks':
try.c: lex.c:(.text+0x...): undefined reference to `U32TO32_LITTLE'
try.c: collect2: error: ld returned 1 exit status

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