projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT2210: Add missing EVP_cleanup to example
[oweals/openssl.git]
/
crypto
/
bn
/
bn_mod.c
diff --git
a/crypto/bn/bn_mod.c
b/crypto/bn/bn_mod.c
index 61b72550985487790368cd304a4928268d0c74d1..49c74fbb834daee5605531e4b3f8cc3dadf456f6 100644
(file)
--- a/
crypto/bn/bn_mod.c
+++ b/
crypto/bn/bn_mod.c
@@
-111,6
+111,8
@@
* [including the GNU Public Licence.]
*/
* [including the GNU Public Licence.]
*/
+#define OPENSSL_FIPSAPI
+
#include "cryptlib.h"
#include "bn_lcl.h"
#include "cryptlib.h"
#include "bn_lcl.h"
@@
-149,7
+151,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)
{
* 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;
if (BN_ucmp(r, m) >= 0)
return BN_usub(r, r, m);
return 1;