summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2014-04-17 12:42:44 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2014-04-17 12:42:44 +0000
commitf758b2b15eb5feb3d8ca139d5dff9bc6ef1a7870 (patch)
tree37974f79e80dad2c741881eea66a638cac2cc0ab
parenta86a394c3825014592fa4e54eb0fe570eb274710 (diff)
RAND_seed now does nothing, so skip the operation
-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;
}