_lrotl and _lrotr are defined in MSVC but nowhere else that we know
[openssl.git] / crypto / cast / c_ecb.c
index 4b523ffc7576e2be783d35c56ff2c668634747a9..0b3da9ad871784d0504396fdee3cc4aef19e9579 100644 (file)
 #include "cast_lcl.h"
 #include <openssl/opensslv.h>
 
 #include "cast_lcl.h"
 #include <openssl/opensslv.h>
 
-char *CAST_version="CAST" OPENSSL_VERSION_PTEXT;
+const char *CAST_version="CAST" OPENSSL_VERSION_PTEXT;
 
 
-void CAST_ecb_encrypt(unsigned char *in, unsigned char *out, CAST_KEY *ks,
-            int encrypt)
+void CAST_ecb_encrypt(const unsigned char *in, unsigned char *out,
+                     CAST_KEY *ks, int enc)
        {
        CAST_LONG l,d[2];
 
        n2l(in,l); d[0]=l;
        n2l(in,l); d[1]=l;
        {
        CAST_LONG l,d[2];
 
        n2l(in,l); d[0]=l;
        n2l(in,l); d[1]=l;
-       if (encrypt)
+       if (enc)
                CAST_encrypt(d,ks);
        else
                CAST_decrypt(d,ks);
                CAST_encrypt(d,ks);
        else
                CAST_decrypt(d,ks);