Implementation notes: amd64, genji154, crypto_aead/elmd1001v2

Computer: genji154
Architecture: amd64
CPU ID: GenuineIntel-00050671-bfebfbff
SUPERCOP version: 20170228
Operation: crypto_aead
Primitive: elmd1001v2

Compiler output

Implementation: crypto_aead/elmd1001v2/ref
Compiler: cc
encrypt.c: In file included from encrypt.c:12:0:
encrypt.c: module.h:45:1: error: unknown type name 'u8'
encrypt.c: static void load_block(block L, const u8 *a1, const u8 *a2, u8 len1, u8 len2){
encrypt.c: ^
encrypt.c: module.h:45:1: error: unknown type name 'u8'
encrypt.c: module.h:45:61: error: unknown type name 'u8'
encrypt.c: static void load_block(block L, const u8 *a1, const u8 *a2, u8 len1, u8 len2){
encrypt.c: ^
encrypt.c: module.h:45:70: error: unknown type name 'u8'
encrypt.c: static void load_block(block L, const u8 *a1, const u8 *a2, u8 len1, u8 len2){
encrypt.c: ^
encrypt.c: module.h:51:25: error: unknown type name 'u8'
encrypt.c: static void store_bytes(u8 *b, block Blk, int first, int last){int i;
encrypt.c: ^
encrypt.c: module.h:68:1: error: unknown type name 'u8'
encrypt.c: static void key_schedule( const u8 *key)
encrypt.c: ^
encrypt.c: module.h: In function 'key_schedule':
encrypt.c: module.h:78:3: warning: passing argument 1 of 'AES_set_encrypt_key' from incompatible pointer type [enabled by default]
encrypt.c: AES_set_encrypt_key(key, 128, &aes_key1);
encrypt.c: ^
encrypt.c: In file included from encrypt.c:7:0:
encrypt.c: /usr/include/openssl/aes.h:88:5: note: expected 'const unsigned char *' but argument is of type 'const int *'
encrypt.c: int AES_set_encrypt_key(const unsigned char *userKey, const int bits,
encrypt.c: ^
encrypt.c: ...

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
cc ref

Compiler output

Implementation: crypto_aead/elmd1001v2/ref
Compiler: clang -O3 -fomit-frame-pointer -Qunused-arguments
encrypt.c: In file included from encrypt.c:12:
encrypt.c: ./module.h:45:39: error: unknown type name 'u8'
encrypt.c: static void load_block(block L, const u8 *a1, const u8 *a2, u8 len1, u8 len2){
encrypt.c: ^
encrypt.c: ./module.h:45:53: error: unknown type name 'u8'
encrypt.c: static void load_block(block L, const u8 *a1, const u8 *a2, u8 len1, u8 len2){
encrypt.c: ^
encrypt.c: ./module.h:45:61: error: unknown type name 'u8'
encrypt.c: static void load_block(block L, const u8 *a1, const u8 *a2, u8 len1, u8 len2){
encrypt.c: ^
encrypt.c: ./module.h:45:70: error: unknown type name 'u8'
encrypt.c: static void load_block(block L, const u8 *a1, const u8 *a2, u8 len1, u8 len2){
encrypt.c: ^
encrypt.c: ./module.h:51:25: error: unknown type name 'u8'
encrypt.c: static void store_bytes(u8 *b, block Blk, int first, int last){int i;
encrypt.c: ^
encrypt.c: ./module.h:68:33: error: unknown type name 'u8'
encrypt.c: static void key_schedule( const u8 *key)
encrypt.c: ^
encrypt.c: ./module.h:83:3: warning: implicit declaration of function 'AES_set_encrypt_key_6' is invalid in C99 [-Wimplicit-function-declaration]
encrypt.c: AES_set_encrypt_key_6(key, 128, &aes_key1);
encrypt.c: ^
encrypt.c: ./module.h:84:3: warning: implicit declaration of function 'AES_set_decrypt_key_6' is invalid in C99 [-Wimplicit-function-declaration]
encrypt.c: AES_set_decrypt_key_6(key, 128, &aes_key2);
encrypt.c: ^
encrypt.c: ...

Number of similar (compiler,implementation) pairs: 10, namely:
CompilerImplementations
clang -O3 -fomit-frame-pointer -Qunused-arguments ref
clang -O3 -fwrapv -march=native -fomit-frame-pointer -Qunused-arguments ref
clang -O3 -fwrapv -march=x86-64 -mcpu=core-avx2 -mavx2 -maes -mpclmul -fomit-frame-pointer -Qunused-arguments ref
clang -O3 -fwrapv -mavx2 -fomit-frame-pointer -Qunused-arguments ref
clang -O3 -fwrapv -mavx -fomit-frame-pointer -Qunused-arguments ref
clang -O3 -fwrapv -mavx -maes -mpclmul -fomit-frame-pointer -Qunused-arguments ref
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments ref
clang -mcpu=cortex-a8 -mfpu=neon -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments ref
clang -mcpu=cortex-a9 -mfpu=neon -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments ref
clang -mcpu=native -mfpu=neon -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments ref

Compiler output

Implementation: crypto_aead/elmd1001v2/ref
Compiler: gcc
encrypt.c: In file included from encrypt.c:12:0:
encrypt.c: module.h:45:39: error: unknown type name 'u8'
encrypt.c: static void load_block(block L, const u8 *a1, const u8 *a2, u8 len1, u8 len2){
encrypt.c: ^~
encrypt.c: module.h:45:53: error: unknown type name 'u8'
encrypt.c: static void load_block(block L, const u8 *a1, const u8 *a2, u8 len1, u8 len2){
encrypt.c: ^~
encrypt.c: module.h:45:61: error: unknown type name 'u8'
encrypt.c: static void load_block(block L, const u8 *a1, const u8 *a2, u8 len1, u8 len2){
encrypt.c: ^~
encrypt.c: module.h:45:70: error: unknown type name 'u8'
encrypt.c: static void load_block(block L, const u8 *a1, const u8 *a2, u8 len1, u8 len2){
encrypt.c: ^~
encrypt.c: module.h:51:25: error: unknown type name 'u8'
encrypt.c: static void store_bytes(u8 *b, block Blk, int first, int last){int i;
encrypt.c: ^~
encrypt.c: module.h:68:33: error: unknown type name 'u8'
encrypt.c: static void key_schedule( const u8 *key)
encrypt.c: ^~
encrypt.c: module.h: In function 'key_schedule':
encrypt.c: module.h:78:23: warning: passing argument 1 of 'AES_set_encrypt_key' from incompatible pointer type [-Wincompatible-pointer-types]
encrypt.c: AES_set_encrypt_key(key, 128, &aes_key1);
encrypt.c: ^~~
encrypt.c: In file included from encrypt.c:7:0:
encrypt.c: /usr/include/openssl/aes.h:88:5: note: expected 'const unsigned char *' but argument is of type 'const int *'
encrypt.c: ...

Number of similar (compiler,implementation) pairs: 106, namely:
CompilerImplementations
gcc ref
gcc -O2 -fomit-frame-pointer ref
gcc -O3 -fomit-frame-pointer ref
gcc -O -fomit-frame-pointer ref
gcc -Os -fomit-frame-pointer ref
gcc -fno-schedule-insns -O2 -fomit-frame-pointer ref
gcc -fno-schedule-insns -O3 -fomit-frame-pointer ref
gcc -fno-schedule-insns -O -fomit-frame-pointer ref
gcc -fno-schedule-insns -Os -fomit-frame-pointer ref
gcc -funroll-loops ref
gcc -funroll-loops -O2 -fomit-frame-pointer ref
gcc -funroll-loops -O3 -fomit-frame-pointer ref
gcc -funroll-loops -O -fomit-frame-pointer ref
gcc -funroll-loops -Os -fomit-frame-pointer ref
gcc -funroll-loops -fno-schedule-insns -O2 -fomit-frame-pointer ref
gcc -funroll-loops -fno-schedule-insns -O3 -fomit-frame-pointer ref
gcc -funroll-loops -fno-schedule-insns -O -fomit-frame-pointer ref
gcc -funroll-loops -fno-schedule-insns -Os -fomit-frame-pointer ref
gcc -funroll-loops -m64 -O2 -fomit-frame-pointer ref
gcc -funroll-loops -m64 -O3 -fomit-frame-pointer ref
gcc -funroll-loops -m64 -O -fomit-frame-pointer ref
gcc -funroll-loops -m64 -Os -fomit-frame-pointer ref
gcc -funroll-loops -m64 -march=barcelona -O2 -fomit-frame-pointer ref
gcc -funroll-loops -m64 -march=barcelona -O3 -fomit-frame-pointer ref
gcc -funroll-loops -m64 -march=barcelona -O -fomit-frame-pointer ref
gcc -funroll-loops -m64 -march=barcelona -Os -fomit-frame-pointer ref
gcc -funroll-loops -m64 -march=k8 -O2 -fomit-frame-pointer ref
gcc -funroll-loops -m64 -march=k8 -O3 -fomit-frame-pointer ref
gcc -funroll-loops -m64 -march=k8 -O -fomit-frame-pointer ref
gcc -funroll-loops -m64 -march=k8 -Os -fomit-frame-pointer ref
gcc -funroll-loops -m64 -march=nocona -O2 -fomit-frame-pointer ref
gcc -funroll-loops -m64 -march=nocona -O3 -fomit-frame-pointer ref
gcc -funroll-loops -m64 -march=nocona -O -fomit-frame-pointer ref
gcc -funroll-loops -m64 -march=nocona -Os -fomit-frame-pointer ref
gcc -funroll-loops -march=barcelona -O2 -fomit-frame-pointer ref
gcc -funroll-loops -march=barcelona -O3 -fomit-frame-pointer ref
gcc -funroll-loops -march=barcelona -O -fomit-frame-pointer ref
gcc -funroll-loops -march=barcelona -Os -fomit-frame-pointer ref
gcc -funroll-loops -march=k8 -O2 -fomit-frame-pointer ref
gcc -funroll-loops -march=k8 -O3 -fomit-frame-pointer ref
gcc -funroll-loops -march=k8 -O -fomit-frame-pointer ref
gcc -funroll-loops -march=k8 -Os -fomit-frame-pointer ref
gcc -funroll-loops -march=nocona -O2 -fomit-frame-pointer ref
gcc -funroll-loops -march=nocona -O3 -fomit-frame-pointer ref
gcc -funroll-loops -march=nocona -O -fomit-frame-pointer ref
gcc -funroll-loops -march=nocona -Os -fomit-frame-pointer ref
gcc -m64 -O2 -fomit-frame-pointer ref
gcc -m64 -O3 -fomit-frame-pointer ref
gcc -m64 -O -fomit-frame-pointer ref
gcc -m64 -Os -fomit-frame-pointer ref
gcc -m64 -march=core-avx-i -O2 -fomit-frame-pointer ref
gcc -m64 -march=core-avx-i -O3 -fomit-frame-pointer ref
gcc -m64 -march=core-avx-i -O -fomit-frame-pointer ref
gcc -m64 -march=core-avx-i -Os -fomit-frame-pointer ref
gcc -m64 -march=core-avx2 -O2 -fomit-frame-pointer ref
gcc -m64 -march=core-avx2 -O3 -fomit-frame-pointer ref
gcc -m64 -march=core-avx2 -O -fomit-frame-pointer ref
gcc -m64 -march=core-avx2 -Os -fomit-frame-pointer ref
gcc -m64 -march=core2 -O2 -fomit-frame-pointer ref
gcc -m64 -march=core2 -O3 -fomit-frame-pointer ref
gcc -m64 -march=core2 -O -fomit-frame-pointer ref
gcc -m64 -march=core2 -Os -fomit-frame-pointer ref
gcc -m64 -march=core2 -msse4.1 -O2 -fomit-frame-pointer ref
gcc -m64 -march=core2 -msse4.1 -O3 -fomit-frame-pointer ref
gcc -m64 -march=core2 -msse4.1 -O -fomit-frame-pointer ref
gcc -m64 -march=core2 -msse4.1 -Os -fomit-frame-pointer ref
gcc -m64 -march=core2 -msse4 -O2 -fomit-frame-pointer ref
gcc -m64 -march=core2 -msse4 -O3 -fomit-frame-pointer ref
gcc -m64 -march=core2 -msse4 -O -fomit-frame-pointer ref
gcc -m64 -march=core2 -msse4 -Os -fomit-frame-pointer ref
gcc -m64 -march=corei7-avx -O2 -fomit-frame-pointer ref
gcc -m64 -march=corei7-avx -O3 -fomit-frame-pointer ref
gcc -m64 -march=corei7-avx -O -fomit-frame-pointer ref
gcc -m64 -march=corei7-avx -Os -fomit-frame-pointer ref
gcc -m64 -march=corei7 -O2 -fomit-frame-pointer ref
gcc -m64 -march=corei7 -O3 -fomit-frame-pointer ref
gcc -m64 -march=corei7 -O -fomit-frame-pointer ref
gcc -m64 -march=corei7 -Os -fomit-frame-pointer ref
gcc -m64 -march=k8 -O2 -fomit-frame-pointer ref
gcc -m64 -march=k8 -O3 -fomit-frame-pointer ref
gcc -m64 -march=k8 -O -fomit-frame-pointer ref
gcc -m64 -march=k8 -Os -fomit-frame-pointer ref
gcc -m64 -march=native -mtune=native -O2 -fomit-frame-pointer ref
gcc -m64 -march=native -mtune=native -O3 -fomit-frame-pointer ref
gcc -m64 -march=native -mtune=native -O -fomit-frame-pointer ref
gcc -m64 -march=native -mtune=native -Os -fomit-frame-pointer ref
gcc -m64 -march=nocona -O2 -fomit-frame-pointer ref
gcc -m64 -march=nocona -O3 -fomit-frame-pointer ref
gcc -m64 -march=nocona -O -fomit-frame-pointer ref
gcc -m64 -march=nocona -Os -fomit-frame-pointer ref
gcc -march=barcelona -O2 -fomit-frame-pointer ref
gcc -march=barcelona -O3 -fomit-frame-pointer ref
gcc -march=barcelona -O -fomit-frame-pointer ref
gcc -march=barcelona -Os -fomit-frame-pointer ref
gcc -march=k8 -O2 -fomit-frame-pointer ref
gcc -march=k8 -O3 -fomit-frame-pointer ref
gcc -march=k8 -O -fomit-frame-pointer ref
gcc -march=k8 -Os -fomit-frame-pointer ref
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
gcc -march=nocona -O2 -fomit-frame-pointer ref
gcc -march=nocona -O3 -fomit-frame-pointer ref
gcc -march=nocona -O -fomit-frame-pointer ref
gcc -march=nocona -Os -fomit-frame-pointer ref

Compiler output

Implementation: crypto_aead/elmd1001v2/ref
Compiler: gcc -m64 -march=barcelona -O2 -fomit-frame-pointer
encrypt.c: In file included from encrypt.c:12:0:
encrypt.c: module.h:45:39: error: unknown type name 'u8'
encrypt.c: static void load_block(block L, const u8 *a1, const u8 *a2, u8 len1, u8 len2){
encrypt.c: ^~
encrypt.c: module.h:45:53: error: unknown type name 'u8'
encrypt.c: static void load_block(block L, const u8 *a1, const u8 *a2, u8 len1, u8 len2){
encrypt.c: ^~
encrypt.c: module.h:45:61: error: unknown type name 'u8'
encrypt.c: static void load_block(block L, const u8 *a1, const u8 *a2, u8 len1, u8 len2){
encrypt.c: ^~
encrypt.c: module.h:45:70: error: unknown type name 'u8'
encrypt.c: static void load_block(block L, const u8 *a1, const u8 *a2, u8 len1, u8 len2){
encrypt.c: ^~
encrypt.c: module.h:51:25: error: unknown type name 'u8'
encrypt.c: static void store_bytes(u8 *b, block Blk, int first, int last){int i;
encrypt.c: ^~
encrypt.c: module.h:68:33: error: unknown type name 'u8'
encrypt.c: static void key_schedule( const u8 *key)
encrypt.c: ^~
encrypt.c: module.h: In function 'key_schedule':
encrypt.c: module.h:78:23: warning: passing argument 1 of 'AES_set_encrypt_key' from incompatible pointer type [-Wincompatible-pointer-types]
encrypt.c: AES_set_encrypt_key(key, 128, &aes_key1);
encrypt.c: ^~~
encrypt.c: In file included from encrypt.c:7:0:
encrypt.c: /usr/include/openssl/aes.h:88:5: note: expected 'const unsigned char *' but argument is of type 'const int *'
encrypt.c: ...
encrypt.c: In file included from encrypt.c:12:0:
encrypt.c: module.h:45:39: error: unknown type name 'u8'
encrypt.c: static void load_block(block L, const u8 *a1, const u8 *a2, u8 len1, u8 len2){
encrypt.c: ^~
encrypt.c: module.h:45:53: error: unknown type name 'u8'
encrypt.c: static void load_block(block L, const u8 *a1, const u8 *a2, u8 len1, u8 len2){
encrypt.c: ^~
encrypt.c: module.h:45:61: error: unknown type name 'u8'
encrypt.c: static void load_block(block L, const u8 *a1, const u8 *a2, u8 len1, u8 len2){
encrypt.c: ^~
encrypt.c: module.h:45:70: error: unknown type name 'u8'
encrypt.c: static void load_block(block L, const u8 *a1, const u8 *a2, u8 len1, u8 len2){
encrypt.c: ^~
encrypt.c: module.h:51:25: error: unknown type name 'u8'
encrypt.c: static void store_bytes(u8 *b, block Blk, int first, int last){int i;
encrypt.c: ^~
encrypt.c: module.h:68:33: error: unknown type name 'u8'
encrypt.c: static void key_schedule( const u8 *key)
encrypt.c: ^~
encrypt.c: module.h: In function 'key_schedule':
encrypt.c: module.h:78:23: warning: passing argument 1 of 'AES_set_encrypt_key' from incompatible pointer type [-Wincompatible-pointer-types]
encrypt.c: AES_set_encrypt_key(key, 128, &aes_key1);
encrypt.c: ^~~
encrypt.c: In file included from encrypt.c:7:0:
encrypt.c: /usr/include/openssl/aes.h:88:5: note: expected 'const unsigned char *' but argument is of type 'const int *'
encrypt.c: ...

Number of similar (compiler,implementation) pairs: 4, namely:
CompilerImplementations
gcc -m64 -march=barcelona -O2 -fomit-frame-pointer ref
gcc -m64 -march=barcelona -O3 -fomit-frame-pointer ref
gcc -m64 -march=barcelona -O -fomit-frame-pointer ref
gcc -m64 -march=barcelona -Os -fomit-frame-pointer ref

Compiler output

Implementation: crypto_aead/elmd1001v2/ref
Compiler: icc
encrypt.c: In file included from encrypt.c(12):
encrypt.c: module.h(45): error: identifier "u8" is undefined
encrypt.c: static void load_block(block L, const u8 *a1, const u8 *a2, u8 len1, u8 len2){
encrypt.c: ^
encrypt.c:
encrypt.c: In file included from encrypt.c(12):
encrypt.c: module.h(45): error: identifier "u8" is undefined
encrypt.c: static void load_block(block L, const u8 *a1, const u8 *a2, u8 len1, u8 len2){
encrypt.c: ^
encrypt.c:
encrypt.c: In file included from encrypt.c(12):
encrypt.c: module.h(45): error: identifier "u8" is undefined
encrypt.c: static void load_block(block L, const u8 *a1, const u8 *a2, u8 len1, u8 len2){
encrypt.c: ^
encrypt.c:
encrypt.c: In file included from encrypt.c(12):
encrypt.c: module.h(45): error: identifier "u8" is undefined
encrypt.c: static void load_block(block L, const u8 *a1, const u8 *a2, u8 len1, u8 len2){
encrypt.c: ^
encrypt.c:
encrypt.c: In file included from encrypt.c(12):
encrypt.c: module.h(51): error: identifier "u8" is undefined
encrypt.c: static void store_bytes(u8 *b, block Blk, int first, int last){int i;
encrypt.c: ^
encrypt.c:
encrypt.c: ...

Number of similar (compiler,implementation) pairs: 4, namely:
CompilerImplementations
icc ref
icc -no-vec ref
icc -xMIC-AVX512 -O2 -fomit-frame-pointer ref
icc -xMIC-AVX512 -O3 -fomit-frame-pointer ref