diff options
Diffstat (limited to 'src/lib/libcrypto/bn')
-rw-r--r-- | src/lib/libcrypto/bn/Makefile.ssl | 1 | ||||
-rw-r--r-- | src/lib/libcrypto/bn/bn_mul.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bn/Makefile.ssl b/src/lib/libcrypto/bn/Makefile.ssl index fa17d3c7d8..0c6e796d17 100644 --- a/src/lib/libcrypto/bn/Makefile.ssl +++ b/src/lib/libcrypto/bn/Makefile.ssl | |||
@@ -22,6 +22,7 @@ BN_ASM= bn_asm.o | |||
22 | #BN_ASM= bn86-elf.o | 22 | #BN_ASM= bn86-elf.o |
23 | 23 | ||
24 | CFLAGS= $(INCLUDES) $(CFLAG) | 24 | CFLAGS= $(INCLUDES) $(CFLAG) |
25 | ASFLAGS= $(INCLUDES) $(ASFLAG) | ||
25 | 26 | ||
26 | GENERAL=Makefile | 27 | GENERAL=Makefile |
27 | TEST=bntest.c exptest.c | 28 | TEST=bntest.c exptest.c |
diff --git a/src/lib/libcrypto/bn/bn_mul.c b/src/lib/libcrypto/bn/bn_mul.c index cb93ac3356..3ae3822bc2 100644 --- a/src/lib/libcrypto/bn/bn_mul.c +++ b/src/lib/libcrypto/bn/bn_mul.c | |||
@@ -224,7 +224,7 @@ void bn_mul_part_recursive(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int tn, | |||
224 | int n, BN_ULONG *t) | 224 | int n, BN_ULONG *t) |
225 | { | 225 | { |
226 | int i,j,n2=n*2; | 226 | int i,j,n2=n*2; |
227 | unsigned int c1,c2,neg,zero; | 227 | int c1,c2,neg,zero; |
228 | BN_ULONG ln,lo,*p; | 228 | BN_ULONG ln,lo,*p; |
229 | 229 | ||
230 | # ifdef BN_COUNT | 230 | # ifdef BN_COUNT |
@@ -376,7 +376,7 @@ void bn_mul_part_recursive(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int tn, | |||
376 | 376 | ||
377 | /* The overflow will stop before we over write | 377 | /* The overflow will stop before we over write |
378 | * words we should not overwrite */ | 378 | * words we should not overwrite */ |
379 | if (ln < c1) | 379 | if (ln < (BN_ULONG)c1) |
380 | { | 380 | { |
381 | do { | 381 | do { |
382 | p++; | 382 | p++; |