提交 f13b93d3 编写于 作者: B Bodo Möller

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)
上级 7be5af1d
...@@ -448,11 +448,8 @@ bad: ...@@ -448,11 +448,8 @@ bad:
"invalid hex salt value\n"); "invalid hex salt value\n");
goto end; goto end;
} }
} else if (RAND_bytes(salt, PKCS5_SALT_LEN) <= 0) { } else if (RAND_pseudo_bytes(salt, PKCS5_SALT_LEN) <= 0)
BIO_printf(bio_err,
"prng not seeded\n");
goto end; goto end;
}
/* If -P option then don't bother writing */ /* If -P option then don't bother writing */
if((printkey != 2) if((printkey != 2)
&& (BIO_write(wbio,magic, && (BIO_write(wbio,magic,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册