diff options
Diffstat (limited to 'src/lib/libcrypto/bn')
-rw-r--r-- | src/lib/libcrypto/bn/Makefile.ssl | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/bn/asm/bn-586.pl | 2 | ||||
-rw-r--r-- | src/lib/libcrypto/bn/bn_lcl.h | 17 | ||||
-rw-r--r-- | src/lib/libcrypto/bn/bn_lib.c | 8 | ||||
-rw-r--r-- | src/lib/libcrypto/bn/bn_print.c | 4 |
5 files changed, 18 insertions, 16 deletions
diff --git a/src/lib/libcrypto/bn/Makefile.ssl b/src/lib/libcrypto/bn/Makefile.ssl index 0c6e796d17..50892ef44c 100644 --- a/src/lib/libcrypto/bn/Makefile.ssl +++ b/src/lib/libcrypto/bn/Makefile.ssl | |||
@@ -120,6 +120,9 @@ asm/ia64-cpp.o: asm/ia64.S | |||
120 | 120 | ||
121 | asm/x86_64-gcc.o: asm/x86_64-gcc.c | 121 | asm/x86_64-gcc.o: asm/x86_64-gcc.c |
122 | 122 | ||
123 | asm/pa-risc2W.o: asm/pa-risc2W.s | ||
124 | /usr/ccs/bin/as -o asm/pa-rics2W.o asm/pa-risc2W.s | ||
125 | |||
123 | files: | 126 | files: |
124 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | 127 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO |
125 | 128 | ||
diff --git a/src/lib/libcrypto/bn/asm/bn-586.pl b/src/lib/libcrypto/bn/asm/bn-586.pl index 9a78f63be1..c4de4a2bee 100644 --- a/src/lib/libcrypto/bn/asm/bn-586.pl +++ b/src/lib/libcrypto/bn/asm/bn-586.pl | |||
@@ -11,7 +11,7 @@ require "x86asm.pl"; | |||
11 | &bn_div_words("bn_div_words"); | 11 | &bn_div_words("bn_div_words"); |
12 | &bn_add_words("bn_add_words"); | 12 | &bn_add_words("bn_add_words"); |
13 | &bn_sub_words("bn_sub_words"); | 13 | &bn_sub_words("bn_sub_words"); |
14 | &bn_sub_part_words("bn_sub_part_words") unless $main'openbsd; | 14 | #&bn_sub_part_words("bn_sub_part_words"); |
15 | 15 | ||
16 | &asm_finish(); | 16 | &asm_finish(); |
17 | 17 | ||
diff --git a/src/lib/libcrypto/bn/bn_lcl.h b/src/lib/libcrypto/bn/bn_lcl.h index 5614bc6164..253e195e23 100644 --- a/src/lib/libcrypto/bn/bn_lcl.h +++ b/src/lib/libcrypto/bn/bn_lcl.h | |||
@@ -433,19 +433,18 @@ void bn_sqr_comba4(BN_ULONG *r,const BN_ULONG *a); | |||
433 | int bn_cmp_words(const BN_ULONG *a,const BN_ULONG *b,int n); | 433 | int bn_cmp_words(const BN_ULONG *a,const BN_ULONG *b,int n); |
434 | int bn_cmp_part_words(const BN_ULONG *a, const BN_ULONG *b, | 434 | int bn_cmp_part_words(const BN_ULONG *a, const BN_ULONG *b, |
435 | int cl, int dl); | 435 | int cl, int dl); |
436 | #if 0 | 436 | #ifdef BN_RECURSION |
437 | /* bn_mul.c rollback <appro> */ | 437 | void bn_mul_recursive(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int n2, |
438 | void bn_mul_recursive(BN_ULONG *r,BN_ULONG *a,BN_ULONG *b,int n2, | 438 | BN_ULONG *t); |
439 | int dna,int dnb,BN_ULONG *t); | 439 | void bn_mul_part_recursive(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int tn, |
440 | void bn_mul_part_recursive(BN_ULONG *r,BN_ULONG *a,BN_ULONG *b, | 440 | int n, BN_ULONG *t); |
441 | int n,int tna,int tnb,BN_ULONG *t); | ||
442 | #endif | ||
443 | void bn_sqr_recursive(BN_ULONG *r,const BN_ULONG *a, int n2, BN_ULONG *t); | ||
444 | void bn_mul_low_normal(BN_ULONG *r,BN_ULONG *a,BN_ULONG *b, int n); | ||
445 | void bn_mul_low_recursive(BN_ULONG *r,BN_ULONG *a,BN_ULONG *b,int n2, | 441 | void bn_mul_low_recursive(BN_ULONG *r,BN_ULONG *a,BN_ULONG *b,int n2, |
446 | BN_ULONG *t); | 442 | BN_ULONG *t); |
447 | void bn_mul_high(BN_ULONG *r,BN_ULONG *a,BN_ULONG *b,BN_ULONG *l,int n2, | 443 | void bn_mul_high(BN_ULONG *r,BN_ULONG *a,BN_ULONG *b,BN_ULONG *l,int n2, |
448 | BN_ULONG *t); | 444 | BN_ULONG *t); |
445 | void bn_sqr_recursive(BN_ULONG *r,const BN_ULONG *a, int n2, BN_ULONG *t); | ||
446 | #endif | ||
447 | void bn_mul_low_normal(BN_ULONG *r,BN_ULONG *a,BN_ULONG *b, int n); | ||
449 | 448 | ||
450 | #ifdef __cplusplus | 449 | #ifdef __cplusplus |
451 | } | 450 | } |
diff --git a/src/lib/libcrypto/bn/bn_lib.c b/src/lib/libcrypto/bn/bn_lib.c index 463463cfcb..e1660450bc 100644 --- a/src/lib/libcrypto/bn/bn_lib.c +++ b/src/lib/libcrypto/bn/bn_lib.c | |||
@@ -145,11 +145,11 @@ char *BN_options(void) | |||
145 | { | 145 | { |
146 | init++; | 146 | init++; |
147 | #ifdef BN_LLONG | 147 | #ifdef BN_LLONG |
148 | snprintf(data,sizeof data,"bn(%d,%d)",(int)sizeof(BN_ULLONG)*8, | 148 | BIO_snprintf(data,sizeof data,"bn(%d,%d)", |
149 | (int)sizeof(BN_ULONG)*8); | 149 | (int)sizeof(BN_ULLONG)*8,(int)sizeof(BN_ULONG)*8); |
150 | #else | 150 | #else |
151 | snprintf(data,sizeof data,"bn(%d,%d)",(int)sizeof(BN_ULONG)*8, | 151 | BIO_snprintf(data,sizeof data,"bn(%d,%d)", |
152 | (int)sizeof(BN_ULONG)*8); | 152 | (int)sizeof(BN_ULONG)*8,(int)sizeof(BN_ULONG)*8); |
153 | #endif | 153 | #endif |
154 | } | 154 | } |
155 | return(data); | 155 | return(data); |
diff --git a/src/lib/libcrypto/bn/bn_print.c b/src/lib/libcrypto/bn/bn_print.c index ad80dab325..acba7ed7ee 100644 --- a/src/lib/libcrypto/bn/bn_print.c +++ b/src/lib/libcrypto/bn/bn_print.c | |||
@@ -140,12 +140,12 @@ char *BN_bn2dec(const BIGNUM *a) | |||
140 | /* We now have a series of blocks, BN_DEC_NUM chars | 140 | /* We now have a series of blocks, BN_DEC_NUM chars |
141 | * in length, where the last one needs truncation. | 141 | * in length, where the last one needs truncation. |
142 | * The blocks need to be reversed in order. */ | 142 | * The blocks need to be reversed in order. */ |
143 | snprintf(p,BUF_REMAIN,BN_DEC_FMT1,*lp); | 143 | BIO_snprintf(p,BUF_REMAIN,BN_DEC_FMT1,*lp); |
144 | while (*p) p++; | 144 | while (*p) p++; |
145 | while (lp != bn_data) | 145 | while (lp != bn_data) |
146 | { | 146 | { |
147 | lp--; | 147 | lp--; |
148 | snprintf(p,BUF_REMAIN,BN_DEC_FMT2,*lp); | 148 | BIO_snprintf(p,BUF_REMAIN,BN_DEC_FMT2,*lp); |
149 | while (*p) p++; | 149 | while (*p) p++; |
150 | } | 150 | } |
151 | } | 151 | } |