Implementation notes: amd64, cel02, crypto_sign/donald512

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

Compiler output

Implementation: T:openssl
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
keypair.c: keypair.c:18:4: error: incomplete definition of type 'struct dsa_st'
keypair.c: x->p = BN_new(); if (!x->p) goto error;
keypair.c: ~^
keypair.c: /usr/include/openssl/ossl_typ.h:107:16: note: forward declaration of 'struct dsa_st'
keypair.c: typedef struct dsa_st DSA;
keypair.c: ^
keypair.c: keypair.c:18:26: error: incomplete definition of type 'struct dsa_st'
keypair.c: x->p = BN_new(); if (!x->p) goto error;
keypair.c: ~^
keypair.c: /usr/include/openssl/ossl_typ.h:107:16: note: forward declaration of 'struct dsa_st'
keypair.c: typedef struct dsa_st DSA;
keypair.c: ^
keypair.c: keypair.c:19:4: error: incomplete definition of type 'struct dsa_st'
keypair.c: x->q = BN_new(); if (!x->q) goto error;
keypair.c: ~^
keypair.c: /usr/include/openssl/ossl_typ.h:107:16: note: forward declaration of 'struct dsa_st'
keypair.c: typedef struct dsa_st DSA;
keypair.c: ^
keypair.c: keypair.c:19:26: error: incomplete definition of type 'struct dsa_st'
keypair.c: x->q = BN_new(); if (!x->q) goto error;
keypair.c: ~^
keypair.c: /usr/include/openssl/ossl_typ.h:107:16: note: forward declaration of 'struct dsa_st'
keypair.c: typedef struct dsa_st DSA;
keypair.c: ^
keypair.c: keypair.c:20:4: error: incomplete definition of type 'struct dsa_st'
keypair.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
keypair.c: keypair.c: In function 'crypto_sign_donald512_openssl_timingleaks_keypair':
keypair.c: keypair.c:18:4: error: dereferencing pointer to incomplete type 'DSA {aka struct dsa_st}'
keypair.c: x->p = BN_new(); if (!x->p) goto error;
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

Compiler output

Implementation: T:opensslnew
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
keypair.c: keypair.c:34:7: warning: implicit declaration of function 'DSA_get0_pub_key' is invalid in C99 [-Wimplicit-function-declaration]
keypair.c: z = DSA_get0_pub_key(x);
keypair.c: ^
keypair.c: keypair.c:34:5: warning: incompatible integer to pointer conversion assigning to 'const BIGNUM *' (aka 'const struct bignum_st *') from 'int' [-Wint-conversion]
keypair.c: z = DSA_get0_pub_key(x);
keypair.c: ^ ~~~~~~~~~~~~~~~~~~~
keypair.c: keypair.c:40:7: warning: implicit declaration of function 'DSA_get0_priv_key' is invalid in C99 [-Wimplicit-function-declaration]
keypair.c: z = DSA_get0_priv_key(x);
keypair.c: ^
keypair.c: keypair.c:40:5: warning: incompatible integer to pointer conversion assigning to 'const BIGNUM *' (aka 'const struct bignum_st *') from 'int' [-Wint-conversion]
keypair.c: z = DSA_get0_priv_key(x);
keypair.c: ^ ~~~~~~~~~~~~~~~~~~~~
keypair.c: 4 warnings generated.
try.c: fatal error: error in backend: Cannot select: 0x561555cfb340: v4i64 = X86ISD::VTRUNC 0x561555cfb210
try.c: 0x561555cfb210: v16i32 = vselect 0x561555ccfd10, 0x561555c89a50, 0x561555cfb0e0
try.c: 0x561555ccfd10: v4i1 = X86ISD::PCMPGTM 0x561555ce09c0, 0x561555cdc550
try.c: 0x561555ce09c0: v4i64 = X86ISD::VBROADCAST 0x561555c86bf0
try.c: 0x561555c86bf0: i64,ch = load<LD8[%lsr.iv6971]> 0x561555bf1940, 0x561555cd73b0, undef:i64
try.c: 0x561555cd73b0: i64,ch = CopyFromReg 0x561555bf1940, Register:i64 %vreg50
try.c: 0x561555cdc7b0: i64 = Register %vreg50
try.c: 0x561555c880c0: i64 = undef
try.c: 0x561555cdc550: v4i64,ch = CopyFromReg 0x561555bf1940, Register:v4i64 %vreg13
try.c: 0x561555ce1210: v4i64 = Register %vreg13
try.c: 0x561555c89a50: v16i32 = X86ISD::VBROADCAST 0x561555ce0c20
try.c: 0x561555ce0c20: i32,ch = load<LD4[ConstantPool]> 0x561555bf1940, 0x561555c7f010, undef:i64
try.c: 0x561555c7f010: i64 = X86ISD::WrapperRIP TargetConstantPool:i64<i32 1> 0
try.c: 0x561555c4dd60: i64 = TargetConstantPool<i32 1> 0
try.c: 0x561555c880c0: i64 = undef
try.c: 0x561555cfb0e0: 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: 0x561555cfafb0: i32 = Constant<0>
try.c: 0x561555cfafb0: i32 = Constant<0>
try.c: 0x561555cfafb0: i32 = Constant<0>
try.c: 0x561555cfafb0: i32 = Constant<0>
try.c: 0x561555cfafb0: i32 = Constant<0>
try.c: 0x561555cfafb0: i32 = Constant<0>
try.c: 0x561555cfafb0: i32 = Constant<0>
try.c: 0x561555cfafb0: i32 = Constant<0>
try.c: 0x561555cfafb0: 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
keypair.c: keypair.c:34:7: warning: implicit declaration of function 'DSA_get0_pub_key' is invalid in C99 [-Wimplicit-function-declaration]
keypair.c: z = DSA_get0_pub_key(x);
keypair.c: ^
keypair.c: keypair.c:34:5: warning: incompatible integer to pointer conversion assigning to 'const BIGNUM *' (aka 'const struct bignum_st *') from 'int' [-Wint-conversion]
keypair.c: z = DSA_get0_pub_key(x);
keypair.c: ^ ~~~~~~~~~~~~~~~~~~~
keypair.c: keypair.c:40:7: warning: implicit declaration of function 'DSA_get0_priv_key' is invalid in C99 [-Wimplicit-function-declaration]
keypair.c: z = DSA_get0_priv_key(x);
keypair.c: ^
keypair.c: keypair.c:40:5: warning: incompatible integer to pointer conversion assigning to 'const BIGNUM *' (aka 'const struct bignum_st *') from 'int' [-Wint-conversion]
keypair.c: z = DSA_get0_priv_key(x);
keypair.c: ^ ~~~~~~~~~~~~~~~~~~~~
keypair.c: 4 warnings generated.
try.c: fatal error: error in backend: Cannot select: 0x5563a11f12b0: v4i64 = X86ISD::VTRUNC 0x5563a11f1180
try.c: 0x5563a11f1180: v16i32 = vselect 0x5563a11edc90, 0x5563a1171d30, 0x5563a11f1050
try.c: 0x5563a11edc90: v4i1 = X86ISD::PCMPGTM 0x5563a11d72f0, 0x5563a11d2e80
try.c: 0x5563a11d72f0: v4i64 = X86ISD::VBROADCAST 0x5563a11721f0
try.c: 0x5563a11721f0: i64,ch = load<LD8[%lsr.iv6971]> 0x5563a10d0a20, 0x5563a1178b10, undef:i64
try.c: 0x5563a1178b10: i64,ch = CopyFromReg 0x5563a10d0a20, Register:i64 %vreg50
try.c: 0x5563a11d30e0: i64 = Register %vreg50
try.c: 0x5563a11932c0: i64 = undef
try.c: 0x5563a11d2e80: v4i64,ch = CopyFromReg 0x5563a10d0a20, Register:v4i64 %vreg13
try.c: 0x5563a11d7b40: v4i64 = Register %vreg13
try.c: 0x5563a1171d30: v16i32 = X86ISD::VBROADCAST 0x5563a11d7550
try.c: 0x5563a11d7550: i32,ch = load<LD4[ConstantPool]> 0x5563a10d0a20, 0x5563a11770e0, undef:i64
try.c: 0x5563a11770e0: i64 = X86ISD::WrapperRIP TargetConstantPool:i64<i32 1> 0
try.c: 0x5563a1193c40: i64 = TargetConstantPool<i32 1> 0
try.c: 0x5563a11932c0: i64 = undef
try.c: 0x5563a11f1050: 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: 0x5563a11f0f20: i32 = Constant<0>
try.c: 0x5563a11f0f20: i32 = Constant<0>
try.c: 0x5563a11f0f20: i32 = Constant<0>
try.c: 0x5563a11f0f20: i32 = Constant<0>
try.c: 0x5563a11f0f20: i32 = Constant<0>
try.c: 0x5563a11f0f20: i32 = Constant<0>
try.c: 0x5563a11f0f20: i32 = Constant<0>
try.c: 0x5563a11f0f20: i32 = Constant<0>
try.c: 0x5563a11f0f20: 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
keypair.c: keypair.c:34:7: warning: implicit declaration of function 'DSA_get0_pub_key' is invalid in C99 [-Wimplicit-function-declaration]
keypair.c: z = DSA_get0_pub_key(x);
keypair.c: ^
keypair.c: keypair.c:34:5: warning: incompatible integer to pointer conversion assigning to 'const BIGNUM *' (aka 'const struct bignum_st *') from 'int' [-Wint-conversion]
keypair.c: z = DSA_get0_pub_key(x);
keypair.c: ^ ~~~~~~~~~~~~~~~~~~~
keypair.c: keypair.c:40:7: warning: implicit declaration of function 'DSA_get0_priv_key' is invalid in C99 [-Wimplicit-function-declaration]
keypair.c: z = DSA_get0_priv_key(x);
keypair.c: ^
keypair.c: keypair.c:40:5: warning: incompatible integer to pointer conversion assigning to 'const BIGNUM *' (aka 'const struct bignum_st *') from 'int' [-Wint-conversion]
keypair.c: z = DSA_get0_priv_key(x);
keypair.c: ^ ~~~~~~~~~~~~~~~~~~~~
keypair.c: 4 warnings generated.
try.c: fatal error: error in backend: Cannot select: 0x555e3ddff370: v4i64 = X86ISD::VTRUNC 0x555e3ddff240
try.c: 0x555e3ddff240: v16i32 = vselect 0x555e3de03be0, 0x555e3dda0810, 0x555e3ddff110
try.c: 0x555e3de03be0: v4i1 = X86ISD::PCMPGTM 0x555e3ddf8920, 0x555e3ddf44b0
try.c: 0x555e3ddf8920: v4i64 = X86ISD::VBROADCAST 0x555e3ddc6190
try.c: 0x555e3ddc6190: i64,ch = load<LD8[%lsr.iv6971]> 0x555e3dd09950, 0x555e3ddef310, undef:i64
try.c: 0x555e3ddef310: i64,ch = CopyFromReg 0x555e3dd09950, Register:i64 %vreg50
try.c: 0x555e3ddf4710: i64 = Register %vreg50
try.c: 0x555e3dd9ee80: i64 = undef
try.c: 0x555e3ddf44b0: v4i64,ch = CopyFromReg 0x555e3dd09950, Register:v4i64 %vreg13
try.c: 0x555e3ddf9170: v4i64 = Register %vreg13
try.c: 0x555e3dda0810: v16i32 = X86ISD::VBROADCAST 0x555e3ddf8b80
try.c: 0x555e3ddf8b80: i32,ch = load<LD4[ConstantPool]> 0x555e3dd09950, 0x555e3ddc5770, undef:i64
try.c: 0x555e3ddc5770: i64 = X86ISD::WrapperRIP TargetConstantPool:i64<i32 1> 0
try.c: 0x555e3ddde930: i64 = TargetConstantPool<i32 1> 0
try.c: 0x555e3dd9ee80: i64 = undef
try.c: 0x555e3ddff110: 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: 0x555e3ddfefe0: i32 = Constant<0>
try.c: 0x555e3ddfefe0: i32 = Constant<0>
try.c: 0x555e3ddfefe0: i32 = Constant<0>
try.c: 0x555e3ddfefe0: i32 = Constant<0>
try.c: 0x555e3ddfefe0: i32 = Constant<0>
try.c: 0x555e3ddfefe0: i32 = Constant<0>
try.c: 0x555e3ddfefe0: i32 = Constant<0>
try.c: 0x555e3ddfefe0: i32 = Constant<0>
try.c: 0x555e3ddfefe0: 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
keypair.c: keypair.c:34:7: warning: implicit declaration of function 'DSA_get0_pub_key' is invalid in C99 [-Wimplicit-function-declaration]
keypair.c: z = DSA_get0_pub_key(x);
keypair.c: ^
keypair.c: keypair.c:34:5: warning: incompatible integer to pointer conversion assigning to 'const BIGNUM *' (aka 'const struct bignum_st *') from 'int' [-Wint-conversion]
keypair.c: z = DSA_get0_pub_key(x);
keypair.c: ^ ~~~~~~~~~~~~~~~~~~~
keypair.c: keypair.c:40:7: warning: implicit declaration of function 'DSA_get0_priv_key' is invalid in C99 [-Wimplicit-function-declaration]
keypair.c: z = DSA_get0_priv_key(x);
keypair.c: ^
keypair.c: keypair.c:40:5: warning: incompatible integer to pointer conversion assigning to 'const BIGNUM *' (aka 'const struct bignum_st *') from 'int' [-Wint-conversion]
keypair.c: z = DSA_get0_priv_key(x);
keypair.c: ^ ~~~~~~~~~~~~~~~~~~~~
keypair.c: 4 warnings generated.
try.c: crypto_sign_donald512.a(keypair.o): In function `crypto_sign_donald512_opensslnew_timingleaks_keypair':
try.c: keypair.c:(.text+0x...): undefined reference to `DSA_get0_pub_key'
try.c: keypair.c:(.text+0x...): undefined reference to `DSA_get0_priv_key'
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
keypair.c: keypair.c: In function 'crypto_sign_donald512_opensslnew_timingleaks_keypair':
keypair.c: keypair.c:34:7: warning: implicit declaration of function 'DSA_get0_pub_key' [-Wimplicit-function-declaration]
keypair.c: z = DSA_get0_pub_key(x);
keypair.c: ^~~~~~~~~~~~~~~~
keypair.c: keypair.c:34:5: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
keypair.c: z = DSA_get0_pub_key(x);
keypair.c: ^
keypair.c: keypair.c:40:7: warning: implicit declaration of function 'DSA_get0_priv_key' [-Wimplicit-function-declaration]
keypair.c: z = DSA_get0_priv_key(x);
keypair.c: ^~~~~~~~~~~~~~~~~
keypair.c: keypair.c:40:5: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
keypair.c: z = DSA_get0_priv_key(x);
keypair.c: ^
try.c: crypto_sign_donald512.a(keypair.o): In function `crypto_sign_donald512_opensslnew_timingleaks_keypair':
try.c: keypair.c:(.text+0x...): undefined reference to `DSA_get0_pub_key'
try.c: keypair.c:(.text+0x...): undefined reference to `DSA_get0_priv_key'
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