From f13b93d3b46d5fa0a2b0c4ec9854a3962a73d198 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bodo=20M=C3=B6ller?= Date: Mon, 24 Jan 2000 09:32:20 +0000 Subject: [PATCH] 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) --- apps/enc.c | 5 +---- 1 file changed, 1 insertion(+), 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,