projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Constify version strings and some structures.
[openssl.git]
/
crypto
/
cast
/
c_ecb.c
diff --git
a/crypto/cast/c_ecb.c
b/crypto/cast/c_ecb.c
index f0f2f4df0edff25a9c000a8585960fefe48f1de8..f2dc6062267f53c5da922df60ea938038cd43e3a 100644
(file)
--- a/
crypto/cast/c_ecb.c
+++ b/
crypto/cast/c_ecb.c
@@
-56,22
+56,20
@@
* [including the GNU Public Licence.]
*/
* [including the GNU Public Licence.]
*/
-#include
"cast.h"
+#include
<openssl/cast.h>
#include "cast_lcl.h"
#include "cast_lcl.h"
+#include <openssl/opensslv.h>
-c
har *CAST_version="CAST part of SSLeay 0.9.0b 29-Jun-1998"
;
+c
onst 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;
{
CAST_LONG l,d[2];
n2l(in,l); d[0]=l;
n2l(in,l); d[1]=l;
- if (enc
rypt
)
+ if (enc)
CAST_encrypt(d,ks);
else
CAST_decrypt(d,ks);
CAST_encrypt(d,ks);
else
CAST_decrypt(d,ks);