Implementation notes: aarch64, pmnod145, crypto_stream/hc256

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

Compiler output

Implementation: e/hc-256/200511
Security model: unknown
Compiler: armclang -march=armv8a+crypto -mcpu=thunderx2t99 -mtune=thunderx2t99 -O2 -fPIC -fPIE
hc-256.c: In file included from hc-256.c:2:
hc-256.c: ./e/hc-256.c:209:54: warning: implicit declaration of function 'U32TO32_LITTLE' is invalid in C99 [-Wimplicit-function-declaration]
hc-256.c: for (i = 0; i < (keysize >> 5); i++) ctx->key[i] = U32TO32_LITTLE (((u32*)key)[i]);
hc-256.c: ^
hc-256.c: ./e/hc-256.c:223:57: warning: implicit declaration of function 'U32TO32_LITTLE' is invalid in C99 [-Wimplicit-function-declaration]
hc-256.c: for (i = 0; i < (ctx->ivsize >> 5); i++) ctx->iv[i] = U32TO32_LITTLE(((u32*)iv)[i]);
hc-256.c: ^
hc-256.c: ./e/hc-256.c:270:47: warning: implicit declaration of function 'U32TO32_LITTLE' is invalid in C99 [-Wimplicit-function-declaration]
hc-256.c: ((u32*)output)[i] = ((u32*)input)[i] ^ U32TO32_LITTLE(keystream[i]);
hc-256.c: ^
hc-256.c: 3 warnings generated.
try.c: /dibona_home_nfs/rdolbeau/opt/arm/gcc-8.2.0_Generic-AArch64_RHEL-7_aarch64-linux/lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: crypto_stream_hc256.a(hc-256.o): in function `crypto_stream_hc256_e_hc_256_200511_ECRYPT_keysetup':
try.c: hc-256.c:(.text+0x...): undefined reference to `U32TO32_LITTLE'
try.c: /dibona_home_nfs/rdolbeau/opt/arm/gcc-8.2.0_Generic-AArch64_RHEL-7_aarch64-linux/lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: crypto_stream_hc256.a(hc-256.o): in function `crypto_stream_hc256_e_hc_256_200511_ECRYPT_ivsetup':
try.c: hc-256.c:(.text+0x...): undefined reference to `U32TO32_LITTLE'
try.c: /dibona_home_nfs/rdolbeau/opt/arm/gcc-8.2.0_Generic-AArch64_RHEL-7_aarch64-linux/lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: crypto_stream_hc256.a(hc-256.o): in function `crypto_stream_hc256_e_hc_256_200511_ECRYPT_process_bytes':
try.c: hc-256.c:(.text+0x...): undefined reference to `U32TO32_LITTLE'
try.c: /dibona_home_nfs/rdolbeau/opt/arm/gcc-8.2.0_Generic-AArch64_RHEL-7_aarch64-linux/lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: hc-256.c:(.text+0x...): undefined reference to `U32TO32_LITTLE'
try.c: /dibona_home_nfs/rdolbeau/opt/arm/gcc-8.2.0_Generic-AArch64_RHEL-7_aarch64-linux/lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: hc-256.c:(.text+0x...): undefined reference to `U32TO32_LITTLE'
try.c: /dibona_home_nfs/rdolbeau/opt/arm/gcc-8.2.0_Generic-AArch64_RHEL-7_aarch64-linux/lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: crypto_stream_hc256.a(hc-256.o):hc-256.c:(.text+0x...): more undefined references to `U32TO32_LITTLE' follow
try.c: clang-7: error: linker command failed with exit code 1 (use -v to see invocation)

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

Compiler output

Implementation: e/hc-256/200511
Security model: unknown
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
hc-256.c: In file included from hc-256.c:2:
hc-256.c: e/hc-256.c: In function 'crypto_stream_hc256_e_hc_256_200511_ECRYPT_keysetup':
hc-256.c: e/hc-256.c:209:54: warning: implicit declaration of function 'U32TO32_LITTLE'; did you mean 'U8TO32_LITTLE'? [-Wimplicit-function-declaration]
hc-256.c: 209 | for (i = 0; i < (keysize >> 5); i++) ctx->key[i] = U32TO32_LITTLE (((u32*)key)[i]);
hc-256.c: | ^~~~~~~~~~~~~~
hc-256.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_hc256.a(hc-256.o): in function `crypto_stream_hc256_e_hc_256_200511_ECRYPT_keysetup':
try.c: hc-256.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_hc256.a(hc-256.o): in function `crypto_stream_hc256_e_hc_256_200511_ECRYPT_ivsetup':
try.c: hc-256.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_hc256.a(hc-256.o): in function `crypto_stream_hc256_e_hc_256_200511_ECRYPT_process_bytes':
try.c: hc-256.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/hc-256/200511
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE e/hc-256/200511
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE e/hc-256/200511
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE e/hc-256/200511

Compiler output

Implementation: e/hc-256/200701
Security model: unknown
Compiler: armclang -march=armv8a+crypto -mcpu=thunderx2t99 -mtune=thunderx2t99 -O2 -fPIC -fPIE
hc-256.c: In file included from hc-256.c:2:
hc-256.c: ./e/hc-256.c:219:54: warning: implicit declaration of function 'U32TO32_LITTLE' is invalid in C99 [-Wimplicit-function-declaration]
hc-256.c: for (i = 0; i < (keysize >> 5); i++) ctx->key[i] = U32TO32_LITTLE (((u32*)key)[i]);
hc-256.c: ^
hc-256.c: ./e/hc-256.c:233:57: warning: implicit declaration of function 'U32TO32_LITTLE' is invalid in C99 [-Wimplicit-function-declaration]
hc-256.c: for (i = 0; i < (ctx->ivsize >> 5); i++) ctx->iv[i] = U32TO32_LITTLE(((u32*)iv)[i]);
hc-256.c: ^
hc-256.c: ./e/hc-256.c:279:48: warning: implicit declaration of function 'U32TO32_LITTLE' is invalid in C99 [-Wimplicit-function-declaration]
hc-256.c: ((u32*)output)[0] = ((u32*)input)[0] ^ U32TO32_LITTLE(keystream[0]);
hc-256.c: ^
hc-256.c: 3 warnings generated.
try.c: /dibona_home_nfs/rdolbeau/opt/arm/gcc-8.2.0_Generic-AArch64_RHEL-7_aarch64-linux/lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: crypto_stream_hc256.a(hc-256.o): in function `crypto_stream_hc256_e_hc_256_200701_ECRYPT_keysetup':
try.c: hc-256.c:(.text+0x...): undefined reference to `U32TO32_LITTLE'
try.c: /dibona_home_nfs/rdolbeau/opt/arm/gcc-8.2.0_Generic-AArch64_RHEL-7_aarch64-linux/lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: crypto_stream_hc256.a(hc-256.o): in function `crypto_stream_hc256_e_hc_256_200701_ECRYPT_ivsetup':
try.c: hc-256.c:(.text+0x...): undefined reference to `U32TO32_LITTLE'
try.c: /dibona_home_nfs/rdolbeau/opt/arm/gcc-8.2.0_Generic-AArch64_RHEL-7_aarch64-linux/lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: crypto_stream_hc256.a(hc-256.o): in function `crypto_stream_hc256_e_hc_256_200701_ECRYPT_process_bytes':
try.c: hc-256.c:(.text+0x...): undefined reference to `U32TO32_LITTLE'
try.c: /dibona_home_nfs/rdolbeau/opt/arm/gcc-8.2.0_Generic-AArch64_RHEL-7_aarch64-linux/lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: hc-256.c:(.text+0x...): undefined reference to `U32TO32_LITTLE'
try.c: /dibona_home_nfs/rdolbeau/opt/arm/gcc-8.2.0_Generic-AArch64_RHEL-7_aarch64-linux/lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: hc-256.c:(.text+0x...): undefined reference to `U32TO32_LITTLE'
try.c: /dibona_home_nfs/rdolbeau/opt/arm/gcc-8.2.0_Generic-AArch64_RHEL-7_aarch64-linux/lib/gcc/aarch64-linux-gnu/8.2.0/../../../../aarch64-linux-gnu/bin/ld: crypto_stream_hc256.a(hc-256.o):hc-256.c:(.text+0x...): more undefined references to `U32TO32_LITTLE' follow
try.c: clang-7: error: linker command failed with exit code 1 (use -v to see invocation)

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

Compiler output

Implementation: e/hc-256/200701
Security model: unknown
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
hc-256.c: In file included from hc-256.c:2:
hc-256.c: e/hc-256.c: In function 'crypto_stream_hc256_e_hc_256_200701_ECRYPT_keysetup':
hc-256.c: e/hc-256.c:219:54: warning: implicit declaration of function 'U32TO32_LITTLE'; did you mean 'U8TO32_LITTLE'? [-Wimplicit-function-declaration]
hc-256.c: 219 | for (i = 0; i < (keysize >> 5); i++) ctx->key[i] = U32TO32_LITTLE (((u32*)key)[i]);
hc-256.c: | ^~~~~~~~~~~~~~
hc-256.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_hc256.a(hc-256.o): in function `crypto_stream_hc256_e_hc_256_200701_ECRYPT_keysetup':
try.c: hc-256.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_hc256.a(hc-256.o): in function `crypto_stream_hc256_e_hc_256_200701_ECRYPT_ivsetup':
try.c: hc-256.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_hc256.a(hc-256.o): in function `crypto_stream_hc256_e_hc_256_200701_ECRYPT_process_bytes':
try.c: hc-256.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: hc-256.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: hc-256.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_hc256.a(hc-256.o):hc-256.c:(.text+0x...): more undefined references to `U32TO32_LITTLE' follow
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/hc-256/200701
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE e/hc-256/200701
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE e/hc-256/200701
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE e/hc-256/200701