diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2016-03-07 18:31:00 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2016-03-07 23:15:04 +0100 |
commit | e1d9f1ab39eeab0c3c2b9415e0aaaa8c05858f77 (patch) | |
tree | ac2225dbe271f7b6250653cdddd21382c781b163 /crypto/dsa/dsa_ossl.c | |
parent | GH812: Fix for no-ui build on Windows (diff) | |
download | openssl-e1d9f1ab39eeab0c3c2b9415e0aaaa8c05858f77.tar.xz openssl-e1d9f1ab39eeab0c3c2b9415e0aaaa8c05858f77.zip |
Remove kinv/r fields from DSA structure.
The kinv/r fields in the DSA structure are not used by OpenSSL internally
and should not be used in general.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/dsa/dsa_ossl.c')
-rw-r--r-- | crypto/dsa/dsa_ossl.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/crypto/dsa/dsa_ossl.c b/crypto/dsa/dsa_ossl.c index cbc1e41bb9..0874e89141 100644 --- a/crypto/dsa/dsa_ossl.c +++ b/crypto/dsa/dsa_ossl.c @@ -158,16 +158,8 @@ static DSA_SIG *dsa_do_sign(const unsigned char *dgst, int dlen, DSA *dsa) if (ctx == NULL) goto err; redo: - if ((dsa->kinv == NULL) || (dsa->r == NULL)) { - if (!dsa_sign_setup(dsa, ctx, &kinv, &r, dgst, dlen)) - goto err; - } else { - kinv = dsa->kinv; - dsa->kinv = NULL; - r = dsa->r; - dsa->r = NULL; - noredo = 1; - } + if (!dsa_sign_setup(dsa, ctx, &kinv, &r, dgst, dlen)) + goto err; if (dlen > BN_num_bytes(dsa->q)) /* |