Clean-up GAS targets: get rid of "cpp" stuff and replace it with "purified"
[openssl.git] / crypto / bf / bf_cfb64.c
index 92fc68261baaf46247e957f7a05f48e71d4dbba9..6451c8d407f7fcd7a27f6de515d81f9deb5aa6b7 100644 (file)
@@ -1,5 +1,5 @@
 /* crypto/bf/bf_cfb64.c */
-/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
+/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  * All rights reserved.
  *
  * This package is an SSL implementation written
@@ -56,7 +56,7 @@
  * [including the GNU Public Licence.]
  */
 
-#include "blowfish.h"
+#include <openssl/blowfish.h>
 #include "bf_locl.h"
 
 /* The input and output encrypted as though 64bit cfb mode is being
  * 64bit block we have used is contained in *num;
  */
 
-void BF_cfb64_encrypt(in, out, length, schedule, ivec, num, encrypt)
-unsigned char *in;
-unsigned char *out;
-long length;
-BF_KEY *schedule;
-unsigned char *ivec;
-int *num;
-int encrypt;
+void BF_cfb64_encrypt(const unsigned char *in, unsigned char *out, long length,
+            const BF_KEY *schedule, unsigned char *ivec, int *num, int encrypt)
        {
        register BF_LONG v0,v1,t;
        register int n= *num;
@@ -88,7 +82,7 @@ int encrypt;
                                {
                                n2l(iv,v0); ti[0]=v0;
                                n2l(iv,v1); ti[1]=v1;
-                               BF_encrypt((BF_LONG *)ti,schedule,BF_ENCRYPT);
+                               BF_encrypt((BF_LONG *)ti,schedule);
                                iv=(unsigned char *)ivec;
                                t=ti[0]; l2n(t,iv);
                                t=ti[1]; l2n(t,iv);
@@ -108,7 +102,7 @@ int encrypt;
                                {
                                n2l(iv,v0); ti[0]=v0;
                                n2l(iv,v1); ti[1]=v1;
-                               BF_encrypt((BF_LONG *)ti,schedule,BF_ENCRYPT);
+                               BF_encrypt((BF_LONG *)ti,schedule);
                                iv=(unsigned char *)ivec;
                                t=ti[0]; l2n(t,iv);
                                t=ti[1]; l2n(t,iv);