Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nettle
nettle
Commits
02f8d551
Commit
02f8d551
authored
Mar 12, 1999
by
Niels Möller
Browse files
* src/symmetric/include/cast.h, src/symmetric/cast.c: Added consts.
Added cast_selftest(). (Ray) Rev: src/symmetric/include/cast.h:1.3
parent
ad0dcd9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/cast.h
View file @
02f8d551
...
...
@@ -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 */
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment