diff options
author | deraadt <> | 2014-04-17 12:42:43 +0000 |
---|---|---|
committer | deraadt <> | 2014-04-17 12:42:43 +0000 |
commit | 4d7eca7b24fded9e0b845b005a0575963ff529e2 (patch) | |
tree | 08ba2fce080b157c574795c00045074d2ab02ab1 /src/lib | |
parent | 568af76a0d1a807b73087c7dcdc4cb57b4c044df (diff) | |
download | openbsd-4d7eca7b24fded9e0b845b005a0575963ff529e2.tar.gz openbsd-4d7eca7b24fded9e0b845b005a0575963ff529e2.tar.bz2 openbsd-4d7eca7b24fded9e0b845b005a0575963ff529e2.zip |
RAND_seed now does nothing, so skip the operation
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/bn/expspeed.c | 6 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/bn/expspeed.c | 6 |
2 files changed, 0 insertions, 12 deletions
diff --git a/src/lib/libcrypto/bn/expspeed.c b/src/lib/libcrypto/bn/expspeed.c index 4d5f221f33..1b434db1ab 100644 --- a/src/lib/libcrypto/bn/expspeed.c +++ b/src/lib/libcrypto/bn/expspeed.c | |||
@@ -195,8 +195,6 @@ static int sizes[NUM_SIZES]={128,256,512,1024,2048,4096,8192}; | |||
195 | 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}; | 195 | 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}; |
196 | /*static int sizes[NUM_SIZES]={59,179,299,419,539}; */ | 196 | /*static int sizes[NUM_SIZES]={59,179,299,419,539}; */ |
197 | 197 | ||
198 | #define RAND_SEED(string) { const char str[] = string; RAND_seed(string, sizeof str); } | ||
199 | |||
200 | void do_mul_exp(BIGNUM *r,BIGNUM *a,BIGNUM *b,BIGNUM *c,BN_CTX *ctx); | 198 | void do_mul_exp(BIGNUM *r,BIGNUM *a,BIGNUM *b,BIGNUM *c,BN_CTX *ctx); |
201 | 199 | ||
202 | int main(int argc, char **argv) | 200 | int main(int argc, char **argv) |
@@ -215,10 +213,6 @@ int main(int argc, char **argv) | |||
215 | c=BN_new(); | 213 | c=BN_new(); |
216 | r=BN_new(); | 214 | r=BN_new(); |
217 | 215 | ||
218 | while (!RAND_status()) | ||
219 | /* not enough bits */ | ||
220 | RAND_SEED("I demand a manual recount!"); | ||
221 | |||
222 | do_mul_exp(r,a,b,c,ctx); | 216 | do_mul_exp(r,a,b,c,ctx); |
223 | return 0; | 217 | return 0; |
224 | } | 218 | } |
diff --git a/src/lib/libssl/src/crypto/bn/expspeed.c b/src/lib/libssl/src/crypto/bn/expspeed.c index 4d5f221f33..1b434db1ab 100644 --- a/src/lib/libssl/src/crypto/bn/expspeed.c +++ b/src/lib/libssl/src/crypto/bn/expspeed.c | |||
@@ -195,8 +195,6 @@ static int sizes[NUM_SIZES]={128,256,512,1024,2048,4096,8192}; | |||
195 | 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}; | 195 | 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}; |
196 | /*static int sizes[NUM_SIZES]={59,179,299,419,539}; */ | 196 | /*static int sizes[NUM_SIZES]={59,179,299,419,539}; */ |
197 | 197 | ||
198 | #define RAND_SEED(string) { const char str[] = string; RAND_seed(string, sizeof str); } | ||
199 | |||
200 | void do_mul_exp(BIGNUM *r,BIGNUM *a,BIGNUM *b,BIGNUM *c,BN_CTX *ctx); | 198 | void do_mul_exp(BIGNUM *r,BIGNUM *a,BIGNUM *b,BIGNUM *c,BN_CTX *ctx); |
201 | 199 | ||
202 | int main(int argc, char **argv) | 200 | int main(int argc, char **argv) |
@@ -215,10 +213,6 @@ int main(int argc, char **argv) | |||
215 | c=BN_new(); | 213 | c=BN_new(); |
216 | r=BN_new(); | 214 | r=BN_new(); |
217 | 215 | ||
218 | while (!RAND_status()) | ||
219 | /* not enough bits */ | ||
220 | RAND_SEED("I demand a manual recount!"); | ||
221 | |||
222 | do_mul_exp(r,a,b,c,ctx); | 216 | do_mul_exp(r,a,b,c,ctx); |
223 | return 0; | 217 | return 0; |
224 | } | 218 | } |