Constify
[openssl.git] / crypto / bf / bf_ecb.c
index d8d6fff0ff5f1544a8577462c893db8a356447e7..341991636f4ab3634174df44717404a50c846db2 100644 (file)
@@ -78,17 +78,17 @@ const char *BF_options(void)
 #endif
        }
 
-void BF_ecb_encrypt(unsigned char *in, unsigned char *out, BF_KEY *ks,
-            int encrypt)
+void BF_ecb_encrypt(const unsigned char *in, unsigned char *out,
+            const BF_KEY *key, int encrypt)
        {
        BF_LONG l,d[2];
 
        n2l(in,l); d[0]=l;
        n2l(in,l); d[1]=l;
        if (encrypt)
-               BF_encrypt(d,ks);
+               BF_encrypt(d,key);
        else
-               BF_decrypt(d,ks);
+               BF_decrypt(d,key);
        l=d[0]; l2n(l,out);
        l=d[1]; l2n(l,out);
        l=d[0]=d[1]=0;