Implementation notes: amd64, cel02, crypto_sign/ecdonaldp224

Computer: cel02
Architecture: amd64
CPU ID: GenuineIntel-00050657-bfebfbff
SUPERCOP version: 20201130
Operation: crypto_sign
Primitive: ecdonaldp224

Compiler output

Implementation: T:openssl
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
signatureofshorthash.c: signatureofshorthash.c:54:24: error: incomplete definition of type 'struct ECDSA_SIG_st'
signatureofshorthash.c: len = BN_num_bytes(rs->r); if (len > PRIME_BYTES) goto rserror;
signatureofshorthash.c: ~~^
signatureofshorthash.c: /usr/include/openssl/bn.h:193:40: note: expanded from macro 'BN_num_bytes'
signatureofshorthash.c: # define BN_num_bytes(a) ((BN_num_bits(a)+7)/8)
signatureofshorthash.c: ^
signatureofshorthash.c: /usr/include/openssl/ec.h:1039:16: note: forward declaration of 'struct ECDSA_SIG_st'
signatureofshorthash.c: typedef struct ECDSA_SIG_st ECDSA_SIG;
signatureofshorthash.c: ^
signatureofshorthash.c: signatureofshorthash.c:55:15: error: incomplete definition of type 'struct ECDSA_SIG_st'
signatureofshorthash.c: BN_bn2bin(rs->r,sm + PRIME_BYTES - len); sm += PRIME_BYTES;
signatureofshorthash.c: ~~^
signatureofshorthash.c: /usr/include/openssl/ec.h:1039:16: note: forward declaration of 'struct ECDSA_SIG_st'
signatureofshorthash.c: typedef struct ECDSA_SIG_st ECDSA_SIG;
signatureofshorthash.c: ^
signatureofshorthash.c: signatureofshorthash.c:57:24: error: incomplete definition of type 'struct ECDSA_SIG_st'
signatureofshorthash.c: len = BN_num_bytes(rs->s); if (len > PRIME_BYTES) goto rserror;
signatureofshorthash.c: ~~^
signatureofshorthash.c: /usr/include/openssl/bn.h:193:40: note: expanded from macro 'BN_num_bytes'
signatureofshorthash.c: # define BN_num_bytes(a) ((BN_num_bits(a)+7)/8)
signatureofshorthash.c: ^
signatureofshorthash.c: /usr/include/openssl/ec.h:1039:16: note: forward declaration of 'struct ECDSA_SIG_st'
signatureofshorthash.c: typedef struct ECDSA_SIG_st ECDSA_SIG;
signatureofshorthash.c: ^
signatureofshorthash.c: signatureofshorthash.c:58:15: error: incomplete definition of type 'struct ECDSA_SIG_st'
signatureofshorthash.c: ...

Number of similar (compiler,implementation) pairs: 5, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:openssl
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:openssl
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:openssl
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:openssl
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
signatureofshorthash.c: In file included from /usr/include/openssl/asn1.h:24:0,
signatureofshorthash.c: from /usr/include/openssl/objects.h:916,
signatureofshorthash.c: from signatureofshorthash.c:2:
signatureofshorthash.c: signatureofshorthash.c: In function 'crypto_sign_ecdonaldp224_openssl_timingleaks_signatureofshorthash':
signatureofshorthash.c: signatureofshorthash.c:54:24: error: dereferencing pointer to incomplete type 'ECDSA_SIG {aka struct ECDSA_SIG_st}'
signatureofshorthash.c: len = BN_num_bytes(rs->r); if (len > PRIME_BYTES) goto rserror;
signatureofshorthash.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

Compiler output

Implementation: T:opensslnew
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
signatureofshorthash.c: signatureofshorthash.c:56:7: warning: implicit declaration of function 'ECDSA_SIG_get0_r' is invalid in C99 [-Wimplicit-function-declaration]
signatureofshorthash.c: z = ECDSA_SIG_get0_r(rs);
signatureofshorthash.c: ^
signatureofshorthash.c: signatureofshorthash.c:56:5: warning: incompatible integer to pointer conversion assigning to 'const BIGNUM *' (aka 'const struct bignum_st *') from 'int' [-Wint-conversion]
signatureofshorthash.c: z = ECDSA_SIG_get0_r(rs);
signatureofshorthash.c: ^ ~~~~~~~~~~~~~~~~~~~~
signatureofshorthash.c: signatureofshorthash.c:61:7: warning: implicit declaration of function 'ECDSA_SIG_get0_s' is invalid in C99 [-Wimplicit-function-declaration]
signatureofshorthash.c: z = ECDSA_SIG_get0_s(rs);
signatureofshorthash.c: ^
signatureofshorthash.c: signatureofshorthash.c:61:5: warning: incompatible integer to pointer conversion assigning to 'const BIGNUM *' (aka 'const struct bignum_st *') from 'int' [-Wint-conversion]
signatureofshorthash.c: z = ECDSA_SIG_get0_s(rs);
signatureofshorthash.c: ^ ~~~~~~~~~~~~~~~~~~~~
signatureofshorthash.c: 4 warnings generated.
try.c: fatal error: error in backend: Cannot select: 0x561e127a7e70: v4i64 = X86ISD::VTRUNC 0x561e127a7d40
try.c: 0x561e127a7d40: v16i32 = vselect 0x561e127ccd70, 0x561e12760580, 0x561e127a7c10
try.c: 0x561e127ccd70: v4i1 = X86ISD::PCMPGTM 0x561e127a3850, 0x561e1279f3e0
try.c: 0x561e127a3850: v4i64 = X86ISD::VBROADCAST 0x561e1275d720
try.c: 0x561e1275d720: i64,ch = load<LD8[%lsr.iv6971]> 0x561e126b4900, 0x561e1278d610, undef:i64
try.c: 0x561e1278d610: i64,ch = CopyFromReg 0x561e126b4900, Register:i64 %vreg50
try.c: 0x561e1279f640: i64 = Register %vreg50
try.c: 0x561e1275ebf0: i64 = undef
try.c: 0x561e1279f3e0: v4i64,ch = CopyFromReg 0x561e126b4900, Register:v4i64 %vreg13
try.c: 0x561e127a40a0: v4i64 = Register %vreg13
try.c: 0x561e12760580: v16i32 = X86ISD::VBROADCAST 0x561e127a3ab0
try.c: 0x561e127a3ab0: i32,ch = load<LD4[ConstantPool]> 0x561e126b4900, 0x561e1274b220, undef:i64
try.c: 0x561e1274b220: i64 = X86ISD::WrapperRIP TargetConstantPool:i64<i32 1> 0
try.c: 0x561e1278e810: i64 = TargetConstantPool<i32 1> 0
try.c: 0x561e1275ebf0: i64 = undef
try.c: 0x561e127a7c10: v16i32 = BUILD_VECTOR Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>
try.c: 0x561e127a7ae0: i32 = Constant<0>
try.c: 0x561e127a7ae0: i32 = Constant<0>
try.c: 0x561e127a7ae0: i32 = Constant<0>
try.c: 0x561e127a7ae0: i32 = Constant<0>
try.c: 0x561e127a7ae0: i32 = Constant<0>
try.c: 0x561e127a7ae0: i32 = Constant<0>
try.c: 0x561e127a7ae0: i32 = Constant<0>
try.c: 0x561e127a7ae0: i32 = Constant<0>
try.c: 0x561e127a7ae0: i32 = Constant<0>
try.c: ...

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

Compiler output

Implementation: T:opensslnew
Security model: timingleaks
Compiler: clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
signatureofshorthash.c: signatureofshorthash.c:56:7: warning: implicit declaration of function 'ECDSA_SIG_get0_r' is invalid in C99 [-Wimplicit-function-declaration]
signatureofshorthash.c: z = ECDSA_SIG_get0_r(rs);
signatureofshorthash.c: ^
signatureofshorthash.c: signatureofshorthash.c:56:5: warning: incompatible integer to pointer conversion assigning to 'const BIGNUM *' (aka 'const struct bignum_st *') from 'int' [-Wint-conversion]
signatureofshorthash.c: z = ECDSA_SIG_get0_r(rs);
signatureofshorthash.c: ^ ~~~~~~~~~~~~~~~~~~~~
signatureofshorthash.c: signatureofshorthash.c:61:7: warning: implicit declaration of function 'ECDSA_SIG_get0_s' is invalid in C99 [-Wimplicit-function-declaration]
signatureofshorthash.c: z = ECDSA_SIG_get0_s(rs);
signatureofshorthash.c: ^
signatureofshorthash.c: signatureofshorthash.c:61:5: warning: incompatible integer to pointer conversion assigning to 'const BIGNUM *' (aka 'const struct bignum_st *') from 'int' [-Wint-conversion]
signatureofshorthash.c: z = ECDSA_SIG_get0_s(rs);
signatureofshorthash.c: ^ ~~~~~~~~~~~~~~~~~~~~
signatureofshorthash.c: 4 warnings generated.
try.c: fatal error: error in backend: Cannot select: 0x562f304afe90: v4i64 = X86ISD::VTRUNC 0x562f304afd60
try.c: 0x562f304afd60: v16i32 = vselect 0x562f3048ef70, 0x562f30420f30, 0x562f304afc30
try.c: 0x562f3048ef70: v4i1 = X86ISD::PCMPGTM 0x562f3048bf50, 0x562f30487ae0
try.c: 0x562f3048bf50: v4i64 = X86ISD::VBROADCAST 0x562f304213f0
try.c: 0x562f304213f0: i64,ch = load<LD8[%lsr.iv6971]> 0x562f30385a40, 0x562f304276c0, undef:i64
try.c: 0x562f304276c0: i64,ch = CopyFromReg 0x562f30385a40, Register:i64 %vreg50
try.c: 0x562f30487d40: i64 = Register %vreg50
try.c: 0x562f30404c50: i64 = undef
try.c: 0x562f30487ae0: v4i64,ch = CopyFromReg 0x562f30385a40, Register:v4i64 %vreg13
try.c: 0x562f3048c7a0: v4i64 = Register %vreg13
try.c: 0x562f30420f30: v16i32 = X86ISD::VBROADCAST 0x562f3048c1b0
try.c: 0x562f3048c1b0: i32,ch = load<LD4[ConstantPool]> 0x562f30385a40, 0x562f3042ece0, undef:i64
try.c: 0x562f3042ece0: i64 = X86ISD::WrapperRIP TargetConstantPool:i64<i32 1> 0
try.c: 0x562f304055d0: i64 = TargetConstantPool<i32 1> 0
try.c: 0x562f30404c50: i64 = undef
try.c: 0x562f304afc30: v16i32 = BUILD_VECTOR Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>
try.c: 0x562f304afb00: i32 = Constant<0>
try.c: 0x562f304afb00: i32 = Constant<0>
try.c: 0x562f304afb00: i32 = Constant<0>
try.c: 0x562f304afb00: i32 = Constant<0>
try.c: 0x562f304afb00: i32 = Constant<0>
try.c: 0x562f304afb00: i32 = Constant<0>
try.c: 0x562f304afb00: i32 = Constant<0>
try.c: 0x562f304afb00: i32 = Constant<0>
try.c: 0x562f304afb00: i32 = Constant<0>
try.c: ...

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

Compiler output

Implementation: T:opensslnew
Security model: timingleaks
Compiler: clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
signatureofshorthash.c: signatureofshorthash.c:56:7: warning: implicit declaration of function 'ECDSA_SIG_get0_r' is invalid in C99 [-Wimplicit-function-declaration]
signatureofshorthash.c: z = ECDSA_SIG_get0_r(rs);
signatureofshorthash.c: ^
signatureofshorthash.c: signatureofshorthash.c:56:5: warning: incompatible integer to pointer conversion assigning to 'const BIGNUM *' (aka 'const struct bignum_st *') from 'int' [-Wint-conversion]
signatureofshorthash.c: z = ECDSA_SIG_get0_r(rs);
signatureofshorthash.c: ^ ~~~~~~~~~~~~~~~~~~~~
signatureofshorthash.c: signatureofshorthash.c:61:7: warning: implicit declaration of function 'ECDSA_SIG_get0_s' is invalid in C99 [-Wimplicit-function-declaration]
signatureofshorthash.c: z = ECDSA_SIG_get0_s(rs);
signatureofshorthash.c: ^
signatureofshorthash.c: signatureofshorthash.c:61:5: warning: incompatible integer to pointer conversion assigning to 'const BIGNUM *' (aka 'const struct bignum_st *') from 'int' [-Wint-conversion]
signatureofshorthash.c: z = ECDSA_SIG_get0_s(rs);
signatureofshorthash.c: ^ ~~~~~~~~~~~~~~~~~~~~
signatureofshorthash.c: 4 warnings generated.
try.c: fatal error: error in backend: Cannot select: 0x55de61215570: v4i64 = X86ISD::VTRUNC 0x55de61215440
try.c: 0x55de61215440: v16i32 = vselect 0x55de6120ff40, 0x55de611adc20, 0x55de61215310
try.c: 0x55de6120ff40: v4i1 = X86ISD::PCMPGTM 0x55de6120ef30, 0x55de6120aac0
try.c: 0x55de6120ef30: v4i64 = X86ISD::VBROADCAST 0x55de611b4c90
try.c: 0x55de611b4c90: i64,ch = load<LD8[%lsr.iv6971]> 0x55de6111f950, 0x55de612012b0, undef:i64
try.c: 0x55de612012b0: i64,ch = CopyFromReg 0x55de6111f950, Register:i64 %vreg50
try.c: 0x55de6120ad20: i64 = Register %vreg50
try.c: 0x55de611b6160: i64 = undef
try.c: 0x55de6120aac0: v4i64,ch = CopyFromReg 0x55de6111f950, Register:v4i64 %vreg13
try.c: 0x55de6120f780: v4i64 = Register %vreg13
try.c: 0x55de611adc20: v16i32 = X86ISD::VBROADCAST 0x55de6120f190
try.c: 0x55de6120f190: i32,ch = load<LD4[ConstantPool]> 0x55de6111f950, 0x55de611b3090, undef:i64
try.c: 0x55de611b3090: i64 = X86ISD::WrapperRIP TargetConstantPool:i64<i32 1> 0
try.c: 0x55de611c3a80: i64 = TargetConstantPool<i32 1> 0
try.c: 0x55de611b6160: i64 = undef
try.c: 0x55de61215310: v16i32 = BUILD_VECTOR Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>, Constant:i32<0>
try.c: 0x55de612151e0: i32 = Constant<0>
try.c: 0x55de612151e0: i32 = Constant<0>
try.c: 0x55de612151e0: i32 = Constant<0>
try.c: 0x55de612151e0: i32 = Constant<0>
try.c: 0x55de612151e0: i32 = Constant<0>
try.c: 0x55de612151e0: i32 = Constant<0>
try.c: 0x55de612151e0: i32 = Constant<0>
try.c: 0x55de612151e0: i32 = Constant<0>
try.c: 0x55de612151e0: i32 = Constant<0>
try.c: ...

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

Compiler output

Implementation: T:opensslnew
Security model: timingleaks
Compiler: clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
signatureofshorthash.c: signatureofshorthash.c:56:7: warning: implicit declaration of function 'ECDSA_SIG_get0_r' is invalid in C99 [-Wimplicit-function-declaration]
signatureofshorthash.c: z = ECDSA_SIG_get0_r(rs);
signatureofshorthash.c: ^
signatureofshorthash.c: signatureofshorthash.c:56:5: warning: incompatible integer to pointer conversion assigning to 'const BIGNUM *' (aka 'const struct bignum_st *') from 'int' [-Wint-conversion]
signatureofshorthash.c: z = ECDSA_SIG_get0_r(rs);
signatureofshorthash.c: ^ ~~~~~~~~~~~~~~~~~~~~
signatureofshorthash.c: signatureofshorthash.c:61:7: warning: implicit declaration of function 'ECDSA_SIG_get0_s' is invalid in C99 [-Wimplicit-function-declaration]
signatureofshorthash.c: z = ECDSA_SIG_get0_s(rs);
signatureofshorthash.c: ^
signatureofshorthash.c: signatureofshorthash.c:61:5: warning: incompatible integer to pointer conversion assigning to 'const BIGNUM *' (aka 'const struct bignum_st *') from 'int' [-Wint-conversion]
signatureofshorthash.c: z = ECDSA_SIG_get0_s(rs);
signatureofshorthash.c: ^ ~~~~~~~~~~~~~~~~~~~~
signatureofshorthash.c: 4 warnings generated.
try.c: crypto_sign_ecdonaldp224.a(signatureofshorthash.o): In function `crypto_sign_ecdonaldp224_opensslnew_timingleaks_signatureofshorthash':
try.c: signatureofshorthash.c:(.text+0x...): undefined reference to `ECDSA_SIG_get0_r'
try.c: signatureofshorthash.c:(.text+0x...): undefined reference to `ECDSA_SIG_get0_s'
try.c: clang: error: linker command failed with exit code 1 (use -v to see invocation)

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

Compiler output

Implementation: T:opensslnew
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
signatureofshorthash.c: signatureofshorthash.c: In function 'crypto_sign_ecdonaldp224_opensslnew_timingleaks_signatureofshorthash':
signatureofshorthash.c: signatureofshorthash.c:56:7: warning: implicit declaration of function 'ECDSA_SIG_get0_r' [-Wimplicit-function-declaration]
signatureofshorthash.c: z = ECDSA_SIG_get0_r(rs);
signatureofshorthash.c: ^~~~~~~~~~~~~~~~
signatureofshorthash.c: signatureofshorthash.c:56:5: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
signatureofshorthash.c: z = ECDSA_SIG_get0_r(rs);
signatureofshorthash.c: ^
signatureofshorthash.c: signatureofshorthash.c:61:7: warning: implicit declaration of function 'ECDSA_SIG_get0_s' [-Wimplicit-function-declaration]
signatureofshorthash.c: z = ECDSA_SIG_get0_s(rs);
signatureofshorthash.c: ^~~~~~~~~~~~~~~~
signatureofshorthash.c: signatureofshorthash.c:61:5: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
signatureofshorthash.c: z = ECDSA_SIG_get0_s(rs);
signatureofshorthash.c: ^
try.c: crypto_sign_ecdonaldp224.a(signatureofshorthash.o): In function `crypto_sign_ecdonaldp224_opensslnew_timingleaks_signatureofshorthash':
try.c: signatureofshorthash.c:(.text+0x...): undefined reference to `ECDSA_SIG_get0_r'
try.c: signatureofshorthash.c:(.text+0x...): undefined reference to `ECDSA_SIG_get0_s'
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:opensslnew
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:opensslnew
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE T:opensslnew
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE T:opensslnew