Implementation notes: aarch64, pi3aplus, crypto_aead/kiasuneq128v1

Computer: pi3aplus
Microarchitecture: aarch64; Cortex-A53 (410fd034)
Architecture: aarch64
CPU ID: 410fd034
SUPERCOP version: 20240716
Operation: crypto_aead
Primitive: kiasuneq128v1
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
29309421628 0 035104 864 864T:refgcc_-march=native_-mtune=native_-O3_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024072120240716
30294119444 0 033237 768 856T:refclang_-mcpu=native_-O3_-fwrapv_-Qunused-arguments_-fPIC_-fPIE_-gdwarf-4_-Wall2024072120240716
34915119760 0 031976 864 848T:refgcc_-march=native_-mtune=native_-O2_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024072120240716
51452518708 0 030168 848 840T:refgcc_-march=native_-mtune=native_-Os_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024072120240716
67520319272 0 031752 864 848T:refgcc_-march=native_-mtune=native_-O_-fwrapv_-fPIC_-fPIE_-gdwarf-4_-Wall2024072120240716

Compiler output


kiasu.c: kiasu.c:256:13: error: unknown type name 'block'
kiasu.c:   ALIGN(16) block Auth;                         /* Auth value during the mode */
kiasu.c:             ^
kiasu.c: kiasu.c:257:13: error: unknown type name 'block'
kiasu.c:   ALIGN(16) block Checksum;                     /* Checksum on the plaintext blocks */
kiasu.c:             ^
kiasu.c: kiasu.c:258:13: error: unknown type name 'block'
kiasu.c:   ALIGN(16) block PaddedBlock;          /* Padded blocks if needed, otherwise the zero bock */
kiasu.c:             ^
kiasu.c: kiasu.c:259:13: error: unknown type name 'block'
kiasu.c:   ALIGN(16) block ta[BPI];                      /* 8 blocks for parallel processing */
kiasu.c:             ^
kiasu.c: kiasu.c:260:19: error: unknown type name 'block'
kiasu.c:   ALIGN(16) const block* adp;           /* Pointer to the blocks to process */
kiasu.c:                   ^
kiasu.c: kiasu.c:262:13: error: unknown type name '__m128i'
kiasu.c:   ALIGN(16) __m128i tmpblock;
kiasu.c:             ^
kiasu.c: kiasu.c:271:17: error: expected expression
kiasu.c:   adp = (block *)ad;
kiasu.c:                 ^
kiasu.c: kiasu.c:271:10: error: use of undeclared identifier 'block'; did you mean 'lockf'?
kiasu.c:   adp = (block *)ad;
kiasu.c:          ^~~~~
kiasu.c:          lockf
kiasu.c: ...

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
T:bitsliceclang -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


kiasu.c: kiasu.c: In function 'kiasu_aead_encrypt':
kiasu.c: kiasu.c:256:13: error: unknown type name 'block'
kiasu.c:    ALIGN(16) block Auth;    /* Auth value during the mode */
kiasu.c:              ^~~~~
kiasu.c: kiasu.c:257:13: error: unknown type name 'block'
kiasu.c:    ALIGN(16) block Checksum;   /* Checksum on the plaintext blocks */
kiasu.c:              ^~~~~
kiasu.c: kiasu.c:258:13: error: unknown type name 'block'
kiasu.c:    ALIGN(16) block PaddedBlock;  /* Padded blocks if needed, otherwise the zero bock */
kiasu.c:              ^~~~~
kiasu.c: kiasu.c:259:13: error: unknown type name 'block'
kiasu.c:    ALIGN(16) block ta[BPI];   /* 8 blocks for parallel processing */
kiasu.c:              ^~~~~
kiasu.c: kiasu.c:260:19: error: unknown type name 'block'
kiasu.c:    ALIGN(16) const block* adp;  /* Pointer to the blocks to process */
kiasu.c:                    ^~~~~
kiasu.c: kiasu.c:262:13: error: unknown type name '__m128i'
kiasu.c:    ALIGN(16) __m128i tmpblock;
kiasu.c:              ^~~~~~~
kiasu.c: kiasu.c:271:10: error: 'block' undeclared (first use in this function); did you mean 'lockf'?
kiasu.c:    adp = (block *)ad;
kiasu.c:           ^~~~~
kiasu.c:           lockf
kiasu.c: kiasu.c:271:10: note: each undeclared identifier is reported only once for each function it appears in
kiasu.c: kiasu.c:271:17: error: expected expression before ')' token
kiasu.c: ...

Number of similar (implementation,compiler) pairs: 4, namely:
ImplementationCompiler
T:bitslicegcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0)
T:bitslicegcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0)
T:bitslicegcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0)
T:bitslicegcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0)

Compiler output


encrypt.c: encrypt.c:70:12: warning: unused variable 'outlen' [-Wunused-variable]
encrypt.c:     size_t outlen = 0;
encrypt.c:            ^
encrypt.c: 1 warning generated.
kiasu.c: In file included from kiasu.c:26:
kiasu.c: In file included from /usr/lib/llvm-7/lib/clang/7.0.1/include/xmmintrin.h:27:
kiasu.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
kiasu.c:     return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);
kiasu.c:            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kiasu.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
kiasu.c:     return (__m64)__builtin_ia32_packsswb((__v4hi)__m1, (__v4hi)__m2);
kiasu.c:            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kiasu.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
kiasu.c:     return (__m64)__builtin_ia32_packssdw((__v2si)__m1, (__v2si)__m2);
kiasu.c:            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kiasu.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
kiasu.c:     return (__m64)__builtin_ia32_packuswb((__v4hi)__m1, (__v4hi)__m2);
kiasu.c:            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kiasu.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
kiasu.c:     return (__m64)__builtin_ia32_punpckhbw((__v8qi)__m1, (__v8qi)__m2);
kiasu.c:            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kiasu.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
kiasu.c:     return (__m64)__builtin_ia32_punpckhwd((__v4hi)__m1, (__v4hi)__m2);
kiasu.c:            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kiasu.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
kiasu.c:     return (__m64)__builtin_ia32_punpckhdq((__v2si)__m1, (__v2si)__m2);
kiasu.c:            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kiasu.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
kiasu.c:     return (__m64)__builtin_ia32_punpcklbw((__v8qi)__m1, (__v8qi)__m2);
kiasu.c: ...

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
T:optclang -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 'crypto_aead_kiasuneq128v1_opt_timingleaks_decrypt':
encrypt.c: encrypt.c:70:12: warning: unused variable 'outlen' [-Wunused-variable]
encrypt.c:      size_t outlen = 0;
encrypt.c:             ^~~~~~
kiasu.c: kiasu.c:26:10: fatal error: xmmintrin.h: No such file or directory
kiasu.c:  #include <xmmintrin.h>              /* SSE instructions and _mm_malloc */
kiasu.c:           ^~~~~~~~~~~~~
kiasu.c: compilation terminated.

Number of similar (implementation,compiler) pairs: 4, namely:
ImplementationCompiler
T:optgcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0)
T:optgcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0)
T:optgcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0)
T:optgcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0)

Compiler output


kiasu.c: kiasu.c: In function 'kiasu_aead_decrypt':
kiasu.c: kiasu.c:53:21: warning: 'tweak' is used uninitialized in this function [-Wuninitialized]
kiasu.c:      tweak[0]= (tweak[0]&0xe0)  ^ (nonce[0] >> 3);
kiasu.c:                 ~~~~~^~~

Number of similar (implementation,compiler) pairs: 1, namely:
ImplementationCompiler
T:refgcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0)

Namespace violations


kiasu.o kiasu_aead_decrypt T
kiasu.o kiasu_aead_encrypt T
tweakable_aes.o aesTweakDecrypt T
tweakable_aes.o aesTweakEncrypt T

Number of similar (implementation,compiler) pairs: 5, namely:
ImplementationCompiler
T:refclang -mcpu=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (4.2.1_Compatible_Clang_7.0.1_(tags/RELEASE_701/final))
T:refgcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0)
T:refgcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0)
T:refgcc -march=native -mtune=native -O -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0)
T:refgcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (8.3.0)