diff options
Diffstat (limited to 'src/lib/libcrypto/cast/c_ecb.c')
-rw-r--r-- | src/lib/libcrypto/cast/c_ecb.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/lib/libcrypto/cast/c_ecb.c b/src/lib/libcrypto/cast/c_ecb.c index f0f2f4df0e..33182f2b71 100644 --- a/src/lib/libcrypto/cast/c_ecb.c +++ b/src/lib/libcrypto/cast/c_ecb.c | |||
@@ -56,22 +56,20 @@ | |||
56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
57 | */ | 57 | */ |
58 | 58 | ||
59 | #include "cast.h" | 59 | #include <openssl/cast.h> |
60 | #include "cast_lcl.h" | 60 | #include "cast_lcl.h" |
61 | #include <openssl/opensslv.h> | ||
61 | 62 | ||
62 | char *CAST_version="CAST part of SSLeay 0.9.0b 29-Jun-1998"; | 63 | char *CAST_version="CAST" OPENSSL_VERSION_PTEXT; |
63 | 64 | ||
64 | void CAST_ecb_encrypt(in, out, ks, encrypt) | 65 | void CAST_ecb_encrypt(const unsigned char *in, unsigned char *out, |
65 | unsigned char *in; | 66 | CAST_KEY *ks, int enc) |
66 | unsigned char *out; | ||
67 | CAST_KEY *ks; | ||
68 | int encrypt; | ||
69 | { | 67 | { |
70 | CAST_LONG l,d[2]; | 68 | CAST_LONG l,d[2]; |
71 | 69 | ||
72 | n2l(in,l); d[0]=l; | 70 | n2l(in,l); d[0]=l; |
73 | n2l(in,l); d[1]=l; | 71 | n2l(in,l); d[1]=l; |
74 | if (encrypt) | 72 | if (enc) |
75 | CAST_encrypt(d,ks); | 73 | CAST_encrypt(d,ks); |
76 | else | 74 | else |
77 | CAST_decrypt(d,ks); | 75 | CAST_decrypt(d,ks); |