VMS support.
[openssl.git] / crypto / bf / bf_cfb64.c
index 92fc682..1fb8905 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(unsigned char *in, unsigned char *out, long length,
+            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);