Implementation notes: aarch64, pi3aplus, crypto_aead/aeadaes192ocbtaglen128v1

Computer: pi3aplus
Microarchitecture: aarch64; Cortex-A53 (410fd034)
Architecture: aarch64
CPU ID: 410fd034
SUPERCOP version: 20240107
Operation: crypto_aead
Primitive: aeadaes192ocbtaglen128v1
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
2463675880 0 024366 896 864T:refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121520231212
2626256696 0 025291 800 856T:refclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2023121520231212
4376502744 0 019949 888 848T:refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121520231212
4402162080 0 019501 888 848T:refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121520231212
4409881796 0 018301 872 840T:refgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2023121520231212

Compiler output

Implementation: T:opt
Security model: timingleaks
Compiler: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
ocb.c: ocb.c:917:4: warning: implicit declaration of function 'store_block' is invalid in C99 [-Wimplicit-function-declaration]
ocb.c: store_block(&ctp[0],xor_block(ta[0], oa[0]));
ocb.c: ^
ocb.c: ocb.c:1002:12: warning: implicit declaration of function 'store_block' is invalid in C99 [-Wimplicit-function-declaration]
ocb.c: case 3: store_block(&ctp[2],xor_block(ta[2], oa[2]));
ocb.c: ^
ocb.c: ocb.c:1124:4: warning: implicit declaration of function 'store_block' is invalid in C99 [-Wimplicit-function-declaration]
ocb.c: store_block(&ptp[0],xor_block(ta[0], oa[0]));
ocb.c: ^
ocb.c: ocb.c:1209:12: warning: implicit declaration of function 'store_block' is invalid in C99 [-Wimplicit-function-declaration]
ocb.c: case 3: store_block(&ptp[2],xor_block(ta[2], oa[2]));
ocb.c: ^
ocb.c: 4 warnings generated.
try.c: /usr/bin/ld: libcrypto_aead_aeadaes192ocbtaglen128v1.a(ocb.o): in function `ae_encrypt':
try.c: ocb.c:(.text+0x...): undefined reference to `store_block'
try.c: /usr/bin/ld: ocb.c:(.text+0x...): undefined reference to `store_block'
try.c: /usr/bin/ld: ocb.c:(.text+0x...): undefined reference to `store_block'
try.c: /usr/bin/ld: ocb.c:(.text+0x...): undefined reference to `store_block'
try.c: /usr/bin/ld: ocb.c:(.text+0x...): undefined reference to `store_block'
try.c: /usr/bin/ld: libcrypto_aead_aeadaes192ocbtaglen128v1.a(ocb.o):ocb.c:(.text+0x...): more undefined references to `store_block' follow
try.c: clang: error: linker command failed with exit code 1 (use -v to see invocation)

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

Compiler output

Implementation: T:opt
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
ocb.c: ocb.c: In function 'ae_encrypt':
ocb.c: ocb.c:917:4: warning: implicit declaration of function 'store_block'; did you mean 'xor_block'? [-Wimplicit-function-declaration]
ocb.c: store_block(&ctp[0],xor_block(ta[0], oa[0]));
ocb.c: ^~~~~~~~~~~
ocb.c: xor_block
try.c: /usr/bin/ld: libcrypto_aead_aeadaes192ocbtaglen128v1.a(ocb.o): in function `ae_encrypt':
try.c: ocb.c:(.text+0x...): undefined reference to `store_block'
try.c: /usr/bin/ld: ocb.c:(.text+0x...): undefined reference to `store_block'
try.c: /usr/bin/ld: ocb.c:(.text+0x...): undefined reference to `store_block'
try.c: /usr/bin/ld: ocb.c:(.text+0x...): undefined reference to `store_block'
try.c: /usr/bin/ld: ocb.c:(.text+0x...): undefined reference to `store_block'
try.c: /usr/bin/ld: libcrypto_aead_aeadaes192ocbtaglen128v1.a(ocb.o):ocb.c:(.text+0x...): more undefined references to `store_block' 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 T:opt
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:opt
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE T:opt
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE T:opt

Namespace violations

Implementation: T:ref
Security model: timingleaks
Compiler: clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
encrypt.o ocb_decrypt T
encrypt.o ocb_encrypt T

Number of similar (compiler,implementation) pairs: 5, namely:
CompilerImplementations
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref