X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fcast%2Fc_ecb.c;h=0b3da9ad871784d0504396fdee3cc4aef19e9579;hp=aefc7baabd8047958743ebc1bc244363f68b9701;hb=9d1a01be8f84143618fc862e1222eb714949fdc1;hpb=320a14cb5b12cbdd2ff4d81c1e9a2ea7a139a038 diff --git a/crypto/cast/c_ecb.c b/crypto/cast/c_ecb.c index aefc7baabd..0b3da9ad87 100644 --- a/crypto/cast/c_ecb.c +++ b/crypto/cast/c_ecb.c @@ -56,22 +56,20 @@ * [including the GNU Public Licence.] */ -#include "cast.h" +#include #include "cast_lcl.h" +#include -char *CAST_version="CAST part of OpenSSL 0.9.1c 23-Dec-1998"; +const char *CAST_version="CAST" OPENSSL_VERSION_PTEXT; -void CAST_ecb_encrypt(in, out, ks, 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; - if (encrypt) + if (enc) CAST_encrypt(d,ks); else CAST_decrypt(d,ks);