]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
* src/symmetric/include/cast.h, src/symmetric/cast.c: Added consts.
authorNiels Möller <nisse@lysator.liu.se>
Fri, 12 Mar 1999 16:24:45 +0000 (17:24 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Fri, 12 Mar 1999 16:24:45 +0000 (17:24 +0100)
Added cast_selftest(). (Ray)

Rev: src/symmetric/include/cast.h:1.3

include/cast.h

index b0483ff321c2b36399b9646ef3b1600aa0d6c04b..5196ffb691792e16fcc9098f93903d1266132bf1 100644 (file)
@@ -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 */