Implementation notes: aarch64, ten64, crypto_dh/claus

Computer: ten64
Architecture: aarch64
CPU ID: 410fd034
SUPERCOP version: 20210604
Operation: crypto_dh
Primitive: claus
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
207539841204 0 020781 1024 1568T:opensslnewgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021082720210604
207719041496 0 022221 1040 1584T:opensslnewgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021082720210604
209452801304 0 022101 1040 1584T:opensslnewgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021082720210604
209939201304 0 022901 1040 1600T:opensslnewgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021082720210604
236872961911 16 0195411 1136 1584T:gmpg++_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021082720210604
237500801857 16 0195269 1136 1584T:gmpg++_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021082720210604
237723521911 16 0196211 1136 1600T:gmpg++_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021082720210604
238837121885 16 0194133 1120 1568T:gmpg++_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021082720210604
242504323640 336 2393892 2712 3120T:ntlg++_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021082720210604
242801923645 336 2393797 2712 3120T:ntlg++_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021082720210604
279240962797 16 1681638590 144401 16096T:cryptoppg++_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021082720210604
279868802797 16 1681633630 144401 16080T:cryptoppg++_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021082720210604
280697602093 16 1681627822 144385 16080T:cryptoppg++_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021082720210604
282005122889 16 1681641814 144401 16080T:cryptoppg++_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2021082720210604

Compiler output

Implementation: T:ntl
Security model: timingleaks
Compiler: g++ -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE
try.cpp: /usr/bin/ld: /home/ubuntu/supercop-20210604/supercop-data/ten64/aarch64/lib/libsupercop.a(crypto_rng_chacha20_ref_constbranchindex-rng.o): invalid string offset 5373952 >= 159 for section `.strtab'
try.cpp: /usr/bin/ld: /home/ubuntu/supercop-20210604/supercop-data/ten64/aarch64/lib/libsupercop.a(crypto_rng_chacha20_ref_constbranchindex-rng.o): invalid string offset 1114112 >= 159 for section `.strtab'
try.cpp: /usr/bin/ld: /home/ubuntu/supercop-20210604/supercop-data/ten64/aarch64/lib/libsupercop.a(crypto_stream_chacha20_dolbeau_arm_neon_constbranchindex-chacha.o): invalid string offset 65186308 >= 518 for section `.strtab'
try.cpp: /usr/bin/ld: error in /home/ubuntu/supercop-20210604/supercop-data/ten64/aarch64/lib/libsupercop.a(crypto_rng_chacha20_ref_constbranchindex-rng.o)(.eh_frame); no .eh_frame_hdr table will be created
try.cpp: /usr/bin/ld: error in /home/ubuntu/supercop-20210604/supercop-data/ten64/aarch64/lib/libsupercop.a(crypto_stream_chacha20_dolbeau_arm_neon_constbranchindex-api.o)(.eh_frame); no .eh_frame_hdr table will be created
try.cpp: /usr/bin/ld: error in /home/ubuntu/supercop-20210604/supercop-data/ten64/aarch64/lib/libsupercop.a(crypto_stream_chacha20_dolbeau_arm_neon_constbranchindex-chacha.o)(.eh_frame); no .eh_frame_hdr table will be created
try.cpp: /usr/bin/ld: /home/ubuntu/supercop-20210604/supercop-data/ten64/aarch64/lib/libsupercop.a(crypto_rng_chacha20_ref_constbranchindex-rng.o): invalid string offset 5373952 >= 159 for section `.strtab'
try.cpp: collect2: error: ld returned 1 exit status

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
g++ -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ntl

Compiler output

Implementation: T:ntl
Security model: timingleaks
Compiler: g++ -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE
try.cpp: /usr/bin/ld: error in /home/ubuntu/supercop-20210604/supercop-data/ten64/aarch64/lib/libsupercop.a(crypto_rng_chacha20_ref_constbranchindex-rng.o)(.eh_frame); no .eh_frame_hdr table will be created
try.cpp: /usr/bin/ld: error in /home/ubuntu/supercop-20210604/supercop-data/ten64/aarch64/lib/libsupercop.a(crypto_stream_chacha20_dolbeau_arm_neon_constbranchindex-api.o)(.eh_frame); no .eh_frame_hdr table will be created
try.cpp: /usr/bin/ld: error in /home/ubuntu/supercop-20210604/supercop-data/ten64/aarch64/lib/libsupercop.a(crypto_stream_chacha20_dolbeau_arm_neon_constbranchindex-chacha.o)(.eh_frame); no .eh_frame_hdr table will be created
try.cpp: /usr/bin/ld: /usr/bin/ld: /home/ubuntu/supercop-20210604/supercop-data/ten64/aarch64/lib/libsupercop.a(crypto_rng_chacha20_ref_constbranchindex-rng.o): invalid string offset 540226864 >= 159 for section `.strtab'
try.cpp: /usr/bin/ld: /home/ubuntu/supercop-20210604/supercop-data/ten64/aarch64/lib/libsupercop.a(crypto_rng_chacha20_ref_constbranchindex-rng.o): invalid string offset 540024864 >= 159 for section `.strtab'
try.cpp: /usr/bin/ld: /home/ubuntu/supercop-20210604/supercop-data/ten64/aarch64/lib/libsupercop.a(crypto_rng_chacha20_ref_constbranchindex-rng.o): invalid string offset 538981945 >= 159 for section `.strtab'
try.cpp: /usr/bin/ld: /home/ubuntu/supercop-20210604/supercop-data/ten64/aarch64/lib/libsupercop.a(crypto_rng_chacha20_ref_constbranchindex-rng.o): invalid string offset 65536 >= 159 for section `.strtab'
try.cpp: /usr/bin/ld: /home/ubuntu/supercop-20210604/supercop-data/ten64/aarch64/lib/libsupercop.a(crypto_rng_chacha20_ref_constbranchindex-rng.o): invalid string offset 82837504 >= 159 for section `.strtab'
try.cpp: /usr/bin/ld: /home/ubuntu/supercop-20210604/supercop-data/ten64/aarch64/lib/libsupercop.a(crypto_rng_chacha20_ref_constbranchindex-rng.o): invalid string offset 3288268812 >= 159 for section `.strtab'
try.cpp: /usr/bin/ld: /home/ubuntu/supercop-20210604/supercop-data/ten64/aarch64/lib/libsupercop.a(crypto_rng_chacha20_ref_constbranchindex-rng.o): invalid string offset 2079717696 >= 159 for section `.strtab'
try.cpp: /usr/bin/ld: /home/ubuntu/supercop-20210604/supercop-data/ten64/aarch64/lib/libsupercop.a(crypto_rng_chacha20_ref_constbranchindex-rng.o): invalid string offset 1610721794 >= 159 for section `.strtab'
try.cpp: /usr/bin/ld: /home/ubuntu/supercop-20210604/supercop-data/ten64/aarch64/lib/libsupercop.a(crypto_rng_chacha20_ref_constbranchindex-rng.o): invalid string offset 241346883 >= 159 for section `.strtab'
try.cpp: /usr/bin/ld: /home/ubuntu/supercop-20210604/supercop-data/ten64/aarch64/lib/libsupercop.a(crypto_rng_chacha20_ref_constbranchindex-rng.o): invalid string offset 43541 >= 159 for section `.strtab'
try.cpp: /usr/bin/ld: /home/ubuntu/supercop-20210604/supercop-data/ten64/aarch64/lib/libsupercop.a(crypto_rng_chacha20_ref_constbranchindex-rng.o): invalid string offset 191234 >= 159 for section `.strtab'
try.cpp: /home/ubuntu/supercop-20210604/supercop-data/ten64/aarch64/lib/libsupercop.a(crypto_rng_chacha20_ref_constbranchindex-rng.o): in function `no symbol':
try.cpp: (.text+0x...): undefined reference to `no symbol'
try.cpp: /usr/bin/ld: (.text+0x...): undefined reference to `no symbol'
try.cpp: /usr/bin/ld: /home/ubuntu/supercop-20210604/supercop-data/ten64/aarch64/lib/libsupercop.a(crypto_rng_chacha20_ref_constbranchindex-rng.o):(.eh_frame+0x1c): undefined reference to `no symbol'
try.cpp: /usr/bin/ld: /usr/bin/ld: /home/ubuntu/supercop-20210604/supercop-data/ten64/aarch64/lib/libsupercop.a(crypto_stream_chacha20_dolbeau_arm_neon_constbranchindex-api.o): invalid string offset 1677175299 >= 790 for section `.strtab'
try.cpp: /usr/bin/ld: /home/ubuntu/supercop-20210604/supercop-data/ten64/aarch64/lib/libsupercop.a(crypto_stream_chacha20_dolbeau_arm_neon_constbranchindex-api.o): invalid string offset 1340602688 >= 790 for section `.strtab'
try.cpp: /usr/bin/ld: /home/ubuntu/supercop-20210604/supercop-data/ten64/aarch64/lib/libsupercop.a(crypto_stream_chacha20_dolbeau_arm_neon_constbranchindex-api.o): invalid string offset 65098368 >= 790 for section `.strtab'
try.cpp: /usr/bin/ld: /home/ubuntu/supercop-20210604/supercop-data/ten64/aarch64/lib/libsupercop.a(crypto_stream_chacha20_dolbeau_arm_neon_constbranchindex-api.o): invalid string offset 1124045824 >= 790 for section `.strtab'
try.cpp: /usr/bin/ld: /home/ubuntu/supercop-20210604/supercop-data/ten64/aarch64/lib/libsupercop.a(crypto_stream_chacha20_dolbeau_arm_neon_constbranchindex-api.o): invalid string offset 4281969176 >= 790 for section `.strtab'
try.cpp: /usr/bin/ld: /home/ubuntu/supercop-20210604/supercop-data/ten64/aarch64/lib/libsupercop.a(crypto_stream_chacha20_dolbeau_arm_neon_constbranchindex-api.o): invalid string offset 1114876436 >= 790 for section `.strtab'
try.cpp: /usr/bin/ld: /home/ubuntu/supercop-20210604/supercop-data/ten64/aarch64/lib/libsupercop.a(crypto_stream_chacha20_dolbeau_arm_neon_constbranchindex-api.o): invalid string offset 4278315798 >= 790 for section `.strtab'
try.cpp: ...

Number of similar (compiler,implementation) pairs: 1, namely:
CompilerImplementations
g++ -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ntl

Compiler output

Implementation: T:openssl
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
keypair.c: keypair.c: In function 'crypto_dh_claus_openssl_timingleaks_keypair':
keypair.c: keypair.c:25:5: error: invalid use of incomplete typedef 'DH' {aka 'struct dh_st'}
keypair.c: 25 | dh->p = BN_new(); if (!dh->p) goto error;
keypair.c: | ^~
keypair.c: keypair.c:25:28: error: invalid use of incomplete typedef 'DH' {aka 'struct dh_st'}
keypair.c: 25 | dh->p = BN_new(); if (!dh->p) goto error;
keypair.c: | ^~
keypair.c: keypair.c:26:5: error: invalid use of incomplete typedef 'DH' {aka 'struct dh_st'}
keypair.c: 26 | dh->g = BN_new(); if (!dh->g) goto error;
keypair.c: | ^~
keypair.c: keypair.c:26:28: error: invalid use of incomplete typedef 'DH' {aka 'struct dh_st'}
keypair.c: 26 | dh->g = BN_new(); if (!dh->g) goto error;
keypair.c: | ^~
keypair.c: keypair.c:28:39: error: invalid use of incomplete typedef 'DH' {aka 'struct dh_st'}
keypair.c: 28 | if (!BN_bin2bn(prime,sizeof prime,dh->p)) goto error;
keypair.c: | ^~
keypair.c: keypair.c:29:22: error: invalid use of incomplete typedef 'DH' {aka 'struct dh_st'}
keypair.c: 29 | if (!BN_set_word(dh->g,2)) goto error;
keypair.c: | ^~
keypair.c: In file included from keypair.c:2:
keypair.c: keypair.c:33:24: error: invalid use of incomplete typedef 'DH' {aka 'struct dh_st'}
keypair.c: 33 | len = BN_num_bytes(dh->pub_key); if (len > PUBLICKEY_BYTES) goto error;
keypair.c: | ^~
keypair.c: keypair.c:34:15: error: invalid use of incomplete typedef 'DH' {aka 'struct dh_st'}
keypair.c: 34 | BN_bn2bin(dh->pub_key,pk + PUBLICKEY_BYTES - len);
keypair.c: ...

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