diff options
author | deraadt <> | 2014-04-17 12:14:26 +0000 |
---|---|---|
committer | deraadt <> | 2014-04-17 12:14:26 +0000 |
commit | 568af76a0d1a807b73087c7dcdc4cb57b4c044df (patch) | |
tree | af52f9c7f7962a9cca944bfe4ead5df91c5dfff3 /src/lib/libcrypto/evp | |
parent | 90d4a4eef2b7d8b8f45fbaa5423ed8f8d574ed9b (diff) | |
download | openbsd-568af76a0d1a807b73087c7dcdc4cb57b4c044df.tar.gz openbsd-568af76a0d1a807b73087c7dcdc4cb57b4c044df.tar.bz2 openbsd-568af76a0d1a807b73087c7dcdc4cb57b4c044df.zip |
Do not feed RSA private key information to the random subsystem as
entropy. It might be fed to a pluggable random subsystem....
What were they thinking?!
ok guenther
Diffstat (limited to 'src/lib/libcrypto/evp')
-rw-r--r-- | src/lib/libcrypto/evp/evp_pkey.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/lib/libcrypto/evp/evp_pkey.c b/src/lib/libcrypto/evp/evp_pkey.c index ceebf69284..c760cf1965 100644 --- a/src/lib/libcrypto/evp/evp_pkey.c +++ b/src/lib/libcrypto/evp/evp_pkey.c | |||
@@ -150,8 +150,6 @@ PKCS8_PRIV_KEY_INFO *EVP_PKEY2PKCS8_broken(EVP_PKEY *pkey, int broken) | |||
150 | EVP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM); | 150 | EVP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM); |
151 | goto error; | 151 | goto error; |
152 | } | 152 | } |
153 | RAND_add(p8->pkey->value.octet_string->data, | ||
154 | p8->pkey->value.octet_string->length, 0.0); | ||
155 | return p8; | 153 | return p8; |
156 | error: | 154 | error: |
157 | PKCS8_PRIV_KEY_INFO_free(p8); | 155 | PKCS8_PRIV_KEY_INFO_free(p8); |