projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a835fc
)
ECDSA: don't clear free memory after verify.
author
Pauli
<paul.dale@oracle.com>
Wed, 20 Nov 2019 03:20:01 +0000
(13:20 +1000)
committer
Pauli
<paul.dale@oracle.com>
Thu, 21 Nov 2019 04:28:37 +0000
(14:28 +1000)
Verifications are public, there is no need to clear the used storage before
freeing it.
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10475)
crypto/ec/ecdsa_ossl.c
patch
|
blob
|
history
diff --git
a/crypto/ec/ecdsa_ossl.c
b/crypto/ec/ecdsa_ossl.c
index 5593d5d68c750e30c560ec9f1f0dce0c60aad845..8de22ba910d2480d341ca57332bc5ff3e4e5e5b0 100644
(file)
--- a/
crypto/ec/ecdsa_ossl.c
+++ b/
crypto/ec/ecdsa_ossl.c
@@
-344,7
+344,7
@@
int ossl_ecdsa_verify(int type, const unsigned char *dgst, int dgst_len,
goto err;
ret = ECDSA_do_verify(dgst, dgst_len, s, eckey);
err:
- OPENSSL_
clear_free(der, derlen
);
+ OPENSSL_
free(der
);
ECDSA_SIG_free(s);
return ret;
}