Make EVPs allocate context memory, thus making them extensible. Rationalise
[openssl.git] / crypto / des / ofb64enc.c
index b6a2f639eb81c250fad3bae1309cf80175782c38..11be67c46c8e1893023646e339cb082111841f28 100644 (file)
  * used.  The extra state information to record how much of the
  * 64bit block we have used is contained in *num;
  */
-void des_ofb64_encrypt(in, out, length, schedule, ivec, num)
-register const unsigned char *in;
-register unsigned char *out;
-long length;
-des_key_schedule schedule;
-des_cblock ivec;
-int *num;
+void des_ofb64_encrypt(register const unsigned char *in,
+                      register unsigned char *out, long length,
+                      des_key_schedule *schedule, des_cblock *ivec, int *num)
        {
        register DES_LONG v0,v1,t;
        register int n= *num;
@@ -79,7 +75,7 @@ int *num;
        unsigned char *iv;
        int save=0;
 
-       iv=ivec;
+       iv = &(*ivec)[0];
        c2l(iv,v0);
        c2l(iv,v1);
        ti[0]=v0;
@@ -91,7 +87,7 @@ int *num;
                {
                if (n == 0)
                        {
-                       des_encrypt(ti,schedule,DES_ENCRYPT);
+                       des_encrypt1(ti,schedule,DES_ENCRYPT);
                        dp=d;
                        t=ti[0]; l2c(t,dp);
                        t=ti[1]; l2c(t,dp);
@@ -104,7 +100,7 @@ int *num;
                {
                v0=ti[0];
                v1=ti[1];
-               iv=ivec;
+               iv = &(*ivec)[0];
                l2c(v0,iv);
                l2c(v1,iv);
                }