Browse Source

[PROV][KEYMGMT][DH][DSA] use BN_clear_free for secrets

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/10631)
master
Nicola Tuveri 2 years ago
parent
commit
afa2b389bc
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      providers/implementations/keymgmt/dh_kmgmt.c
  2. +1
    -1
      providers/implementations/keymgmt/dsa_kmgmt.c

+ 1
- 1
providers/implementations/keymgmt/dh_kmgmt.c View File

@ -111,7 +111,7 @@ static int params_to_key(DH *dh, const OSSL_PARAM params[])
return 1;
err:
BN_free(priv_key);
BN_clear_free(priv_key);
BN_free(pub_key);
return 0;
}


+ 1
- 1
providers/implementations/keymgmt/dsa_kmgmt.c View File

@ -123,7 +123,7 @@ static int params_to_key(DSA *dsa, const OSSL_PARAM params[])
return 1;
err:
BN_free(priv_key);
BN_clear_free(priv_key);
BN_free(pub_key);
return 0;
}


Loading…
Cancel
Save