diff options
author | Bodo Möller <bodo@openssl.org> | 2000-01-24 09:32:20 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2000-01-24 09:32:20 +0000 |
commit | f13b93d3b46d5fa0a2b0c4ec9854a3962a73d198 (patch) | |
tree | 319f71b450998ed4e5fe084e2b4ce62ffb48f675 /apps/enc.c | |
parent | 7be5af1ddf7491a2d089bd9f90fbd74bc28fd849 (diff) | |
download | openssl-new-f13b93d3b46d5fa0a2b0c4ec9854a3962a73d198.tar.gz |
RAND_pseudo_bytes is good enough for encryption IVs,
we should not need RAND_bytes (and we cannot use the latter
unless we load a seed file)
Diffstat (limited to 'apps/enc.c')
-rw-r--r-- | apps/enc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/enc.c b/apps/enc.c index 6c93e1722d..842036697c 100644 --- a/apps/enc.c +++ b/apps/enc.c @@ -448,11 +448,8 @@ bad: "invalid hex salt value\n"); goto end; } - } else if (RAND_bytes(salt, PKCS5_SALT_LEN) <= 0) { - BIO_printf(bio_err, - "prng not seeded\n"); + } else if (RAND_pseudo_bytes(salt, PKCS5_SALT_LEN) <= 0) goto end; - } /* If -P option then don't bother writing */ if((printkey != 2) && (BIO_write(wbio,magic, |