From 02f8d55181970f2a46e39b1b3798eebf81fd2c15 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Fri, 12 Mar 1999 17:24:45 +0100
Subject: [PATCH] * src/symmetric/include/cast.h, src/symmetric/cast.c: Added
 consts. Added cast_selftest(). (Ray)

Rev: src/symmetric/include/cast.h:1.3
---
 include/cast.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/include/cast.h b/include/cast.h
index b0483ff3..5196ffb6 100644
--- a/include/cast.h
+++ b/include/cast.h
@@ -25,12 +25,13 @@ struct cast_key {
 	unsigned rounds;		/* Number of rounds to use, 12 or 16 */
 };
 
-void cast_setkey(struct cast_key *key, UINT8 *rawkey,
+void cast_setkey(struct cast_key *key, const UINT8 * const rawkey,
 		 unsigned keybytes);
-void cast_encrypt(struct cast_key *key, UINT8 *inblock,
+void cast_encrypt(struct cast_key *key, const UINT8 * const inblock,
 		  UINT8 *outblock);
-void cast_decrypt(struct cast_key *key, UINT8 *inblock,
+void cast_decrypt(struct cast_key *key, const UINT8 * const inblock,
 		  UINT8* outblock);
+int cast_selftest(void);
 
 #endif /* ifndef _CAST_H_INCLUDED */
 
-- 
GitLab