Enhance consistency by using BIO_flush() instead of fflush().
[openssl.git] / crypto / bn / test.c
index 46fdc9c27e259b0ebc9e17e35a9490ddd35aba26..b12fde35511a5cfed117b6106e5e01af119be470 100644 (file)
@@ -1,3 +1,5 @@
+/* unused */
+
 #include <stdio.h>
 #include "cryptlib.h"
 #include "bn_lcl.h"
@@ -50,9 +52,7 @@ main()
        }
 
 #if 0
-int bn_mul_high(r,a,b,low,words)
-BIGNUM *r,*a,*b,*low;
-int words;
+int bn_mul_high(BIGNUM *r, BIGNUM *a, BIGNUM *b, BIGNUM *low, int words)
        {
        int i;
        BIGNUM t1,t2,t3,h,ah,al,bh,bl,m,s0,s1;
@@ -151,10 +151,8 @@ t3.max=t3.top;
        BN_free(&m); BN_free(&h);
        }
 
-int BN_mod_mul_montgomery(r,a,b,mont,ctx)
-BIGNUM *r,*a,*b;
-BN_MONT_CTX *mont;
-BN_CTX *ctx;
+int BN_mod_mul_montgomery(BIGNUM *r, BIGNUM *a, BIGNUM *b, BN_MONT_CTX *mont,
+            BN_CTX *ctx)
        {
        BIGNUM *tmp;
 
@@ -176,11 +174,7 @@ err:
        return(0);
        }
 
-int BN_from_montgomery(r,a,mont,ctx)
-BIGNUM *r;
-BIGNUM *a;
-BN_MONT_CTX *mont;
-BN_CTX *ctx;
+int BN_from_montgomery(BIGNUM *r, BIGNUM *a, BN_MONT_CTX *mont, BN_CTX *ctx)
        {
        BIGNUM z1;
        BIGNUM *t1,*t2;
@@ -217,10 +211,7 @@ err:
        return(0);
        }
 
-int BN_MONT_CTX_set(mont,mod,ctx)
-BN_MONT_CTX *mont;
-BIGNUM *mod;
-BN_CTX *ctx;
+int BN_MONT_CTX_set(BN_MONT_CTX *mont, BIGNUM *mod, BN_CTX *ctx)
        {
        BIGNUM *Ri=NULL,*R=NULL;