22 #define dump_signature(a,b,c)
23 #define dump_dsa_sig(a,b)
38 BIGNUM *
p=NULL,*
q=NULL,*
a=NULL,*
b=NULL,*x=NULL,*y=NULL;
69 fprintf(stderr,
"Set params index %d oid %s\nq=",
101 BIGNUM *r=NULL,*s=NULL,*
X=NULL,*tmp=NULL,*tmp2=NULL, *
k=NULL,*
e=NULL;
119 fprintf(stderr,
"digest as bignum=");
121 fprintf(stderr,
"\ndigest mod q=");
123 fprintf(stderr,
"\n");
190 BIGNUM *md = NULL,*
e=NULL,*R=NULL,*v=NULL,*z1=NULL,*z2=NULL;
219 fprintf(stderr,
"digest as bignum: ");
221 fprintf(stderr,
"\ndigest mod q: ");
230 fprintf(stderr,
"\nInverted digest value: ");
232 fprintf(stderr,
"\nz1: ");
234 fprintf(stderr,
"\nz2: ");
250 fprintf(stderr,
"\nX=");
252 fprintf(stderr,
"\nX mod q=");
254 fprintf(stderr,
"\n");
280 const BIGNUM *priv_key=NULL;
298 if (!
EC_POINT_mul(group,pub_key,priv_key,NULL,NULL,ctx))