diff options
author | beck <> | 2000-12-15 02:58:47 +0000 |
---|---|---|
committer | beck <> | 2000-12-15 02:58:47 +0000 |
commit | 9200bb13d15da4b2a23e6bc92c20e95b74aa2113 (patch) | |
tree | 5c52d628ec1e34be76e7ef2a4235d248b7c44d24 /src/lib/libcrypto/bn/bn_mul.c | |
parent | e131d25072e3d4197ba4b9bcc0d1b27d34d6488d (diff) | |
download | openbsd-9200bb13d15da4b2a23e6bc92c20e95b74aa2113.tar.gz openbsd-9200bb13d15da4b2a23e6bc92c20e95b74aa2113.tar.bz2 openbsd-9200bb13d15da4b2a23e6bc92c20e95b74aa2113.zip |
openssl-engine-0.9.6 merge
Diffstat (limited to 'src/lib/libcrypto/bn/bn_mul.c')
-rw-r--r-- | src/lib/libcrypto/bn/bn_mul.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libcrypto/bn/bn_mul.c b/src/lib/libcrypto/bn/bn_mul.c index 3e8baaad9a..3e8d8b9567 100644 --- a/src/lib/libcrypto/bn/bn_mul.c +++ b/src/lib/libcrypto/bn/bn_mul.c | |||
@@ -631,7 +631,6 @@ int BN_mul(BIGNUM *r, BIGNUM *a, BIGNUM *b, BN_CTX *ctx) | |||
631 | 631 | ||
632 | al=a->top; | 632 | al=a->top; |
633 | bl=b->top; | 633 | bl=b->top; |
634 | r->neg=a->neg^b->neg; | ||
635 | 634 | ||
636 | if ((al == 0) || (bl == 0)) | 635 | if ((al == 0) || (bl == 0)) |
637 | { | 636 | { |
@@ -647,6 +646,7 @@ int BN_mul(BIGNUM *r, BIGNUM *a, BIGNUM *b, BN_CTX *ctx) | |||
647 | } | 646 | } |
648 | else | 647 | else |
649 | rr = r; | 648 | rr = r; |
649 | rr->neg=a->neg^b->neg; | ||
650 | 650 | ||
651 | #if defined(BN_MUL_COMBA) || defined(BN_RECURSION) | 651 | #if defined(BN_MUL_COMBA) || defined(BN_RECURSION) |
652 | i = al-bl; | 652 | i = al-bl; |