Add functions to set ECDSA_METHOD structure.
[openssl.git] / crypto / bn / bn_add.c
index fa27ff77b77f2cdaa7fed7366ee489c4f1130af4..f8e6729a47746ed5fd98f39c6b203a97e9f0ddc2 100644 (file)
@@ -56,6 +56,8 @@
  * [including the GNU Public Licence.]
  */
 
+#define OPENSSL_FIPSAPI
+
 #include <stdio.h>
 #include "cryptlib.h"
 #include "bn_lcl.h"
@@ -104,7 +106,7 @@ int BN_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b)
 /* unsigned add of b to a */
 int BN_uadd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b)
        {
-       size_t max,min,dif;
+       int max,min,dif;
        BN_ULONG *ap,*bp,*rp,carry,t1,t2;
        const BIGNUM *tmp;
 
@@ -165,7 +167,7 @@ int BN_uadd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b)
 /* unsigned subtraction of b from a, a must be larger than b. */
 int BN_usub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b)
        {
-       size_t max,min,dif;
+       int max,min,dif;
        register BN_ULONG t1,t2,*ap,*bp,*rp;
        int i,carry;
 #if defined(IRIX_CC_BUG) && !defined(LINT)
@@ -262,7 +264,7 @@ int BN_usub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b)
 
 int BN_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b)
        {
-       size_t max;
+       int max;
        int add=0,neg=0;
        const BIGNUM *tmp;