projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc90f64
)
When adding positive elements, we can use BN_uadd() instead of BN_add().
author
Geoff Thorpe
<geoff@openssl.org>
Sun, 22 Feb 2004 19:30:41 +0000
(19:30 +0000)
committer
Geoff Thorpe
<geoff@openssl.org>
Sun, 22 Feb 2004 19:30:41 +0000
(19:30 +0000)
Submitted by: Nils Larsch
Reviewed by: Geoff Thorpe
crypto/bn/bn_mod.c
patch
|
blob
|
history
diff --git
a/crypto/bn/bn_mod.c
b/crypto/bn/bn_mod.c
index 61b72550985487790368cd304a4928268d0c74d1..77d6ddb91a5fc9fe1b89ec1caa9579d1c95baa10 100644
(file)
--- a/
crypto/bn/bn_mod.c
+++ b/
crypto/bn/bn_mod.c
@@
-149,7
+149,7
@@
int BN_mod_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, BN_
* and less than m */
int BN_mod_add_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m)
{
- if (!BN_add(r, a, b)) return 0;
+ if (!BN_
u
add(r, a, b)) return 0;
if (BN_ucmp(r, m) >= 0)
return BN_usub(r, r, m);
return 1;