X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fcast%2Fc_ecb.c;h=33182f2b7126191836dc84a852e98d233602b7c2;hb=f846335657f090ed7cc45face7b9955f6684fd5d;hp=fe34bd17e773cf42b37a6fa922318c8651f4091a;hpb=31b8d8684441e6cd5138832bb1b2ddb10acd6ba6;p=oweals%2Fopenssl.git diff --git a/crypto/cast/c_ecb.c b/crypto/cast/c_ecb.c index fe34bd17e7..33182f2b71 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 SSLeay 0.9.1a 06-Jul-1998"; +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);