]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/des/cbc_enc.c
Change type of various DES function arguments from des_cblock
[thirdparty/openssl.git] / crypto / des / cbc_enc.c
index c989a7fd34a07c669fc56ce70fc7c15b57986e90..4ccabc911adc12cd5b54ba35f201b74ff9158269 100644 (file)
@@ -61,7 +61,7 @@
 /* Note that this is inconsistent with other DES functions, in that it doesn't
    update ivec */
 void des_cbc_encrypt(const unsigned char *in, unsigned char *out, long length,
-            des_key_schedule schedule, des_cblock ivec, int enc)
+            des_key_schedule schedule, des_cblock *ivec, int enc)
        {
        register DES_LONG tin0,tin1;
        register DES_LONG tout0,tout1,xor0,xor1;
@@ -69,7 +69,7 @@ void des_cbc_encrypt(const unsigned char *in, unsigned char *out, long length,
        DES_LONG tin[2];
        unsigned char *iv;
 
-       iv=ivec;
+       iv = &(*ivec)[0];
 
        if (enc)
                {