summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2014-04-17 12:42:43 +0000
committerderaadt <deraadt@openbsd.org>2014-04-17 12:42:43 +0000
commitde2f1b52b8f6e065479b60c81d400a4c3735df4a (patch)
tree3511b76e4ab2a0cb518269ebda286f2340212648 /lib/libssl/src
parentDo not feed RSA private key information to the random subsystem as (diff)
downloadwireguard-openbsd-de2f1b52b8f6e065479b60c81d400a4c3735df4a.tar.xz
wireguard-openbsd-de2f1b52b8f6e065479b60c81d400a4c3735df4a.zip
RAND_seed now does nothing, so skip the operation
Diffstat (limited to 'lib/libssl/src')
-rw-r--r--lib/libssl/src/crypto/bn/expspeed.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/libssl/src/crypto/bn/expspeed.c b/lib/libssl/src/crypto/bn/expspeed.c
index 4d5f221f33a..1b434db1ab9 100644
--- a/lib/libssl/src/crypto/bn/expspeed.c
+++ b/lib/libssl/src/crypto/bn/expspeed.c
@@ -195,8 +195,6 @@ static int sizes[NUM_SIZES]={128,256,512,1024,2048,4096,8192};
static int mul_c[NUM_SIZES]={8*8*8*8*8*8,8*8*8*8*8,8*8*8*8,8*8*8,8*8,8,1};
/*static int sizes[NUM_SIZES]={59,179,299,419,539}; */
-#define RAND_SEED(string) { const char str[] = string; RAND_seed(string, sizeof str); }
-
void do_mul_exp(BIGNUM *r,BIGNUM *a,BIGNUM *b,BIGNUM *c,BN_CTX *ctx);
int main(int argc, char **argv)
@@ -215,10 +213,6 @@ int main(int argc, char **argv)
c=BN_new();
r=BN_new();
- while (!RAND_status())
- /* not enough bits */
- RAND_SEED("I demand a manual recount!");
-
do_mul_exp(r,a,b,c,ctx);
return 0;
}