Implementation notes: aarch64, pi3aplus, crypto_aead/morus640128v1
Computer: pi3aplus
Microarchitecture: aarch64; Cortex-A53 (410fd034)
Architecture: aarch64
CPU ID: 410fd034
SUPERCOP version: 20240716
Operation: crypto_aead
Primitive: morus640128v1
Time | Object size | Test size | Implementation | Compiler | Benchmark date | SUPERCOP version |
30593 | 8128 0 0 | 21632 864 864 | T:ref | gcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall | 20240722 | 20240716 |
32831 | 7808 0 0 | 19951 856 848 | T:ref | gcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall | 20240722 | 20240716 |
51019 | 8332 0 0 | 20735 856 848 | T:ref | gcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall | 20240722 | 20240716 |
Compiler output
encrypt.c: encrypt.c:169:63: warning: unused variable 'pb' [-Wunused-variable]
encrypt.c: unsigned char plaintextblock[16], ciphertextblock[16],pb[16];
encrypt.c: ^
encrypt.c: encrypt.c:200:23: warning: unused variable 'plaintextblock' [-Wunused-variable]
encrypt.c: unsigned char plaintextblock[16], ciphertextblock[16];
encrypt.c: ^
encrypt.c: encrypt.c:245:25: warning: unused variable 'j' [-Wunused-variable]
encrypt.c: unsigned long i,j;
encrypt.c: ^
encrypt.c: encrypt.c:246:23: warning: unused variable 'plaintextblock' [-Wunused-variable]
encrypt.c: unsigned char plaintextblock[16], ciphertextblock[16];
encrypt.c: ^
encrypt.c: encrypt.c:247:23: warning: unused variable 'tag' [-Wunused-variable]
encrypt.c: unsigned char tag[16];
encrypt.c: ^
encrypt.c: encrypt.c:248:23: warning: unused variable 'check' [-Wunused-variable]
encrypt.c: unsigned char check = 0;
encrypt.c: ^
encrypt.c: 6 warnings generated.
try.c: /usr/bin/ld: libcrypto_aead_morus640128v1.a(encrypt.o): in function `morus_initialization':
try.c: .../supercop-data/pi3aplus/aarch64/try/c/clang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/morus640128v1/ref/work/encrypt.c:67: undefined reference to `morus_stateupdate'
try.c: /usr/bin/ld: .../supercop-data/pi3aplus/aarch64/try/c/clang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/morus640128v1/ref/work/encrypt.c:67: undefined reference to `morus_stateupdate'
try.c: /usr/bin/ld: .../supercop-data/pi3aplus/aarch64/try/c/clang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/morus640128v1/ref/work/encrypt.c:67: undefined reference to `morus_stateupdate'
try.c: /usr/bin/ld: .../supercop-data/pi3aplus/aarch64/try/c/clang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/morus640128v1/ref/work/encrypt.c:67: undefined reference to `morus_stateupdate'
try.c: /usr/bin/ld: .../supercop-data/pi3aplus/aarch64/try/c/clang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/morus640128v1/ref/work/encrypt.c:67: undefined reference to `morus_stateupdate'
try.c: /usr/bin/ld: libcrypto_aead_morus640128v1.a(encrypt.o):.../supercop-data/pi3aplus/aarch64/try/c/clang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/morus640128v1/ref/work/encrypt.c:67: more undefined references to `morus_stateupdate' follow
try.c: clang: error: linker command failed with exit code 1 (use -v to see invocation)
Number of similar (implementation,compiler) pairs: 1, namely:
Implementation | Compiler |
T:ref | clang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (4.2.1_Compatible_Clang_7.0.1_(tags/RELEASE_701/final)) |
Compiler output
encrypt.c: encrypt.c: In function 'morus_dec_aut_partialblock':
encrypt.c: encrypt.c:169:63: warning: unused variable 'pb' [-Wunused-variable]
encrypt.c: unsigned char plaintextblock[16], ciphertextblock[16],pb[16];
encrypt.c: ^~
encrypt.c: encrypt.c: In function 'crypto_aead_morus640128v1_ref_timingleaks_encrypt':
encrypt.c: encrypt.c:200:23: warning: unused variable 'plaintextblock' [-Wunused-variable]
encrypt.c: unsigned char plaintextblock[16], ciphertextblock[16];
encrypt.c: ^~~~~~~~~~~~~~
encrypt.c: encrypt.c: In function 'crypto_aead_morus640128v1_ref_timingleaks_decrypt':
encrypt.c: encrypt.c:248:23: warning: unused variable 'check' [-Wunused-variable]
encrypt.c: unsigned char check = 0;
encrypt.c: ^~~~~
encrypt.c: encrypt.c:247:23: warning: unused variable 'tag' [-Wunused-variable]
encrypt.c: unsigned char tag[16];
encrypt.c: ^~~
encrypt.c: encrypt.c:246:23: warning: unused variable 'plaintextblock' [-Wunused-variable]
encrypt.c: unsigned char plaintextblock[16], ciphertextblock[16];
encrypt.c: ^~~~~~~~~~~~~~
encrypt.c: encrypt.c:245:25: warning: unused variable 'j' [-Wunused-variable]
encrypt.c: unsigned long i,j;
encrypt.c: ^
Number of similar (implementation,compiler) pairs: 3, namely:
Implementation | Compiler |
T:ref | gcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0) |
T:ref | gcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0) |
T:ref | gcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0) |
Compiler output
encrypt.c: encrypt.c: In function 'morus_dec_aut_partialblock':
encrypt.c: encrypt.c:169:63: warning: unused variable 'pb' [-Wunused-variable]
encrypt.c: unsigned char plaintextblock[16], ciphertextblock[16],pb[16];
encrypt.c: ^~
encrypt.c: encrypt.c: In function 'crypto_aead_morus640128v1_ref_timingleaks_encrypt':
encrypt.c: encrypt.c:200:23: warning: unused variable 'plaintextblock' [-Wunused-variable]
encrypt.c: unsigned char plaintextblock[16], ciphertextblock[16];
encrypt.c: ^~~~~~~~~~~~~~
encrypt.c: encrypt.c: In function 'crypto_aead_morus640128v1_ref_timingleaks_decrypt':
encrypt.c: encrypt.c:248:23: warning: unused variable 'check' [-Wunused-variable]
encrypt.c: unsigned char check = 0;
encrypt.c: ^~~~~
encrypt.c: encrypt.c:247:23: warning: unused variable 'tag' [-Wunused-variable]
encrypt.c: unsigned char tag[16];
encrypt.c: ^~~
encrypt.c: encrypt.c:246:23: warning: unused variable 'plaintextblock' [-Wunused-variable]
encrypt.c: unsigned char plaintextblock[16], ciphertextblock[16];
encrypt.c: ^~~~~~~~~~~~~~
encrypt.c: encrypt.c:245:25: warning: unused variable 'j' [-Wunused-variable]
encrypt.c: unsigned long i,j;
encrypt.c: ^
try.c: /usr/bin/ld: libcrypto_aead_morus640128v1.a(encrypt.o): in function `morus_initialization':
try.c: .../supercop-data/pi3aplus/aarch64/try/c/gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/morus640128v1/ref/work/encrypt.c:67: undefined reference to `morus_stateupdate'
try.c: /usr/bin/ld: libcrypto_aead_morus640128v1.a(encrypt.o): in function `morus_tag_generation':
try.c: .../supercop-data/pi3aplus/aarch64/try/c/gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/morus640128v1/ref/work/encrypt.c:84: undefined reference to `morus_stateupdate'
try.c: /usr/bin/ld: libcrypto_aead_morus640128v1.a(encrypt.o): in function `morus_tag_verification':
try.c: .../supercop-data/pi3aplus/aarch64/try/c/gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/morus640128v1/ref/work/encrypt.c:107: undefined reference to `morus_stateupdate'
try.c: /usr/bin/ld: libcrypto_aead_morus640128v1.a(encrypt.o): in function `morus_enc_aut_partialblock':
try.c: .../supercop-data/pi3aplus/aarch64/try/c/gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/morus640128v1/ref/work/encrypt.c:160: undefined reference to `morus_stateupdate'
try.c: /usr/bin/ld: libcrypto_aead_morus640128v1.a(encrypt.o): in function `morus_dec_aut_partialblock':
try.c: .../supercop-data/pi3aplus/aarch64/try/c/gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/morus640128v1/ref/work/encrypt.c:184: undefined reference to `morus_stateupdate'
try.c: /usr/bin/ld: libcrypto_aead_morus640128v1.a(encrypt.o): in function `crypto_aead_morus640128v1_ref_timingleaks_encrypt':
try.c: .../supercop-data/pi3aplus/aarch64/try/c/gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/morus640128v1/ref/work/encrypt.c:208: undefined reference to `morus_enc_aut_step'
try.c: /usr/bin/ld: .../supercop-data/pi3aplus/aarch64/try/c/gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/morus640128v1/ref/work/encrypt.c:219: undefined reference to `morus_enc_aut_step'
try.c: /usr/bin/ld: libcrypto_aead_morus640128v1.a(encrypt.o): in function `crypto_aead_morus640128v1_ref_timingleaks_decrypt':
try.c: .../supercop-data/pi3aplus/aarch64/try/c/gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/morus640128v1/ref/work/encrypt.c:257: undefined reference to `morus_enc_aut_step'
try.c: /usr/bin/ld: .../supercop-data/pi3aplus/aarch64/try/c/gcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall/timingleaks/crypto_aead/morus640128v1/ref/work/encrypt.c:269: undefined reference to `morus_dec_aut_step'
try.c: collect2: error: ld returned 1 exit status
Number of similar (implementation,compiler) pairs: 1, namely:
Implementation | Compiler |
T:ref | gcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0) |
Compiler output
morus640128v1sse2.c: In file included from morus640128v1sse2.c:2:
morus640128v1sse2.c: In file included from /usr/lib/llvm-7/lib/clang/7.0.1/include/immintrin.h:28:
morus640128v1sse2.c: /usr/lib/llvm-7/lib/clang/7.0.1/include/mmintrin.h:64:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
morus640128v1sse2.c: return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);
morus640128v1sse2.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
morus640128v1sse2.c: /usr/lib/llvm-7/lib/clang/7.0.1/include/mmintrin.h:143:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
morus640128v1sse2.c: return (__m64)__builtin_ia32_packsswb((__v4hi)__m1, (__v4hi)__m2);
morus640128v1sse2.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
morus640128v1sse2.c: /usr/lib/llvm-7/lib/clang/7.0.1/include/mmintrin.h:173:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
morus640128v1sse2.c: return (__m64)__builtin_ia32_packssdw((__v2si)__m1, (__v2si)__m2);
morus640128v1sse2.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
morus640128v1sse2.c: /usr/lib/llvm-7/lib/clang/7.0.1/include/mmintrin.h:203:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
morus640128v1sse2.c: return (__m64)__builtin_ia32_packuswb((__v4hi)__m1, (__v4hi)__m2);
morus640128v1sse2.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
morus640128v1sse2.c: /usr/lib/llvm-7/lib/clang/7.0.1/include/mmintrin.h:230:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
morus640128v1sse2.c: return (__m64)__builtin_ia32_punpckhbw((__v8qi)__m1, (__v8qi)__m2);
morus640128v1sse2.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
morus640128v1sse2.c: /usr/lib/llvm-7/lib/clang/7.0.1/include/mmintrin.h:253:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
morus640128v1sse2.c: return (__m64)__builtin_ia32_punpckhwd((__v4hi)__m1, (__v4hi)__m2);
morus640128v1sse2.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
morus640128v1sse2.c: /usr/lib/llvm-7/lib/clang/7.0.1/include/mmintrin.h:274:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
morus640128v1sse2.c: return (__m64)__builtin_ia32_punpckhdq((__v2si)__m1, (__v2si)__m2);
morus640128v1sse2.c: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
morus640128v1sse2.c: /usr/lib/llvm-7/lib/clang/7.0.1/include/mmintrin.h:301:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
morus640128v1sse2.c: return (__m64)__builtin_ia32_punpcklbw((__v8qi)__m1, (__v8qi)__m2);
morus640128v1sse2.c: ...
Number of similar (implementation,compiler) pairs: 1, namely:
Implementation | Compiler |
T:sse2 | clang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (4.2.1_Compatible_Clang_7.0.1_(tags/RELEASE_701/final)) |
Compiler output
morus640128v1sse2.c: morus640128v1sse2.c:2:10: fatal error: immintrin.h: No such file or directory
morus640128v1sse2.c: #include <immintrin.h>
morus640128v1sse2.c: ^~~~~~~~~~~~~
morus640128v1sse2.c: compilation terminated.
Number of similar (implementation,compiler) pairs: 4, namely:
Implementation | Compiler |
T:sse2 | gcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0) |
T:sse2 | gcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0) |
T:sse2 | gcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0) |
T:sse2 | gcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0) |
Namespace violations
encrypt.o morus_dec_aut_partialblock T
encrypt.o morus_enc_aut_partialblock T
encrypt.o morus_initialization T
encrypt.o morus_tag_generation T
encrypt.o morus_tag_verification T
Number of similar (implementation,compiler) pairs: 3, namely:
Implementation | Compiler |
T:ref | gcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0) |
T:ref | gcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0) |
T:ref | gcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0) |