Exclude the option for passing parameters pre-computed in unverified way.

This commit is contained in:
Andy Polyakov
2005-04-29 13:36:50 +00:00
parent c7e7d382d5
commit 9aa260ab57
2 changed files with 2 additions and 12 deletions

View File

@@ -153,17 +153,7 @@ static DSA_SIG *dsa_do_sign(const unsigned char *dgst, FIPS_DSA_SIZE_T dlen, DSA
ctx=BN_CTX_new();
if (ctx == NULL) goto err;
if ((dsa->kinv == NULL) || (dsa->r == NULL))
{
if (!DSA_sign_setup(dsa,ctx,&kinv,&r)) goto err;
}
else
{
kinv=dsa->kinv;
dsa->kinv=NULL;
r=dsa->r;
dsa->r=NULL;
}
if (!DSA_sign_setup(dsa,ctx,&kinv,&r)) goto err;
if (BN_bin2bn(dgst,dlen,&m) == NULL) goto err;