#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,
+ const CAST_KEY *ks, int enc)
{
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);
l=d[1]; l2n(l,out);
l=d[0]=d[1]=0;
}
-