Implementation notes: aarch64, minimac, crypto_stream/aes128ctr

Computer: minimac
Architecture: aarch64
CPU ID: unknown CPU ID
SUPERCOP version: 20211108
Operation: crypto_stream
Primitive: aes128ctr
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
667? ? ?? ? ?T:dolbeau/armv8cryptoclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2021053020210529

Compiler output

Implementation: T:cryptopp
Security model: timingleaks
Compiler: g++ -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
stream.cpp: stream.cpp:1:10: fatal error: cryptopp/aes.h: No such file or directory
stream.cpp: 1 | #include <cryptopp/aes.h>
stream.cpp: | ^~~~~~~~~~~~~~~~
stream.cpp: compilation terminated.

Number of similar (compiler,implementation) pairs: 4, namely:
CompilerImplementations
g++ -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:cryptopp
g++ -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:cryptopp
g++ -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE T:cryptopp
g++ -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE T:cryptopp

Compiler output

Implementation: T:dolbeau/armv8crypto
Security model: timingleaks
Compiler: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
try.c: ld: warning: object file (/Users/djb/supercop-20210529/supercop-data/minimac/aarch64/lib/kernelrandombytes.o) was built for newer macOS version (11.3) than being linked (11.0)
try.c: ld: warning: object file (/Users/djb/supercop-20210529/supercop-data/minimac/aarch64/lib/cpucycles.o) was built for newer macOS version (11.3) than being linked (11.0)
try.c: ld: warning: could not create compact unwind for _init: registers 21 and 22 not saved contiguously in frame
try.c: ld: warning: object file (/Users/djb/supercop-20210529/supercop-data/minimac/aarch64/lib/kernelrandombytes.o) was built for newer macOS version (11.3) than being linked (11.0)
try.c: ld: warning: object file (/Users/djb/supercop-20210529/supercop-data/minimac/aarch64/lib/cpucycles.o) was built for newer macOS version (11.3) than being linked (11.0)
try.c: ld: warning: could not create compact unwind for _init: registers 21 and 22 not saved contiguously in frame
measure.c: ld: warning: object file (/Users/djb/supercop-20210529/supercop-data/minimac/aarch64/lib/kernelrandombytes.o) was built for newer macOS version (11.3) than being linked (11.0)
measure.c: ld: warning: object file (/Users/djb/supercop-20210529/supercop-data/minimac/aarch64/lib/cpucycles.o) was built for newer macOS version (11.3) than being linked (11.0)
measure.c: ld: warning: could not create compact unwind for _init: registers 21 and 22 not saved contiguously in frame

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:dolbeau/armv8crypto

Compiler output

Implementation: T:dolbeau/armv8crypto
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
armv8crypto.c: In file included from armv8crypto.c:11:
armv8crypto.c: armv8crypto.c: In function 'aesni_encrypt8':
armv8crypto.c: /opt/homebrew/Cellar/gcc/10.2.0_4/lib/gcc/10/gcc/aarch64-apple-darwin20/10.2.1/include/arm_neon.h:12332:1: error: inlining failed in call to 'always_inline' 'vaesmcq_u8': target specific option mismatch
armv8crypto.c: 12332 | vaesmcq_u8 (uint8x16_t data)
armv8crypto.c: | ^~~~~~~~~~
armv8crypto.c: armv8crypto.c:49:119: note: called from here
armv8crypto.c: 49 | temp##a = vreinterpretq_u32_u8(vaeseq_u8(vreinterpretq_u8_u32(temp##a), vreinterpretq_u8_u32(rkeys[i])));temp##a = vreinterpretq_u32_u8(vaesmcq_u8(vreinterpretq_u8_u32(temp##a)))
armv8crypto.c: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
armv8crypto.c: armv8crypto.c:49:119: note: in definition of macro 'AESENCx'
armv8crypto.c: 49 | temp##a = vreinterpretq_u32_u8(vaeseq_u8(vreinterpretq_u8_u32(temp##a), vreinterpretq_u8_u32(rkeys[i])));temp##a = vreinterpretq_u32_u8(vaesmcq_u8(vreinterpretq_u8_u32(temp##a)))
armv8crypto.c: | ^~~~~~~~~~~~~~~~~~~~
armv8crypto.c: armv8crypto.c:105:7: note: in expansion of macro 'MAKE8'
armv8crypto.c: 105 | MAKEN(AESENCx); \
armv8crypto.c: | ^~~~~
armv8crypto.c: armv8crypto.c:115:1: note: in expansion of macro 'FUNC'
armv8crypto.c: 115 | FUNC(8, MAKE8)
armv8crypto.c: | ^~~~
armv8crypto.c: In file included from armv8crypto.c:11:
armv8crypto.c: /opt/homebrew/Cellar/gcc/10.2.0_4/lib/gcc/10/gcc/aarch64-apple-darwin20/10.2.1/include/arm_neon.h:12318:1: error: inlining failed in call to 'always_inline' 'vaeseq_u8': target specific option mismatch
armv8crypto.c: 12318 | vaeseq_u8 (uint8x16_t data, uint8x16_t key)
armv8crypto.c: | ^~~~~~~~~
armv8crypto.c: armv8crypto.c:49:14: note: called from here
armv8crypto.c: 49 | temp##a = vreinterpretq_u32_u8(vaeseq_u8(vreinterpretq_u8_u32(temp##a), vreinterpretq_u8_u32(rkeys[i])));temp##a = vreinterpretq_u32_u8(vaesmcq_u8(vreinterpretq_u8_u32(temp##a)))
armv8crypto.c: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
armv8crypto.c: armv8crypto.c:74:18: note: in expansion of macro 'AESENCx'
armv8crypto.c: ...

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

Compiler output

Implementation: T:openssl
Security model: timingleaks
Compiler: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
stream.c: stream.c:2:10: fatal error: 'openssl/evp.h' file not found
stream.c: #include <openssl/evp.h>
stream.c: ^~~~~~~~~~~~~~~
stream.c: 1 error generated.

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:openssl

Compiler output

Implementation: T:openssl
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
stream.c: stream.c:2:10: fatal error: openssl/evp.h: No such file or directory
stream.c: 2 | #include <openssl/evp.h>
stream.c: | ^~~~~~~~~~~~~~~
stream.c: compilation terminated.

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