Clear the secret point in ecdh_simple_compute_key
Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/8501)
This commit is contained in:
parent
5743d1268d
commit
1ff2c992c2
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ int ecdh_simple_compute_key(unsigned char **pout, size_t *poutlen,
|
||||||
ret = 1;
|
ret = 1;
|
||||||
|
|
||||||
err:
|
err:
|
||||||
EC_POINT_free(tmp);
|
EC_POINT_clear_free(tmp);
|
||||||
if (ctx)
|
if (ctx)
|
||||||
BN_CTX_end(ctx);
|
BN_CTX_end(ctx);
|
||||||
BN_CTX_free(ctx);
|
BN_CTX_free(ctx);
|
||||||
|
|
Loading…
Reference in a new issue