diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2008-06-09 07:49:46 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2008-06-09 07:49:46 +0000 |
commit | 6073e521a5e744bfb2b795fab6836fa12502fa56 (patch) | |
tree | f1f11e1554de81aec6a2b5424c9a942044a36ea0 /sys/crypto/rijndael.h | |
parent | dbc8994d667f55793aa0ca89944b34e9b027ccad (diff) |
constify arguments in wrapper functions; the lower level functions
were already done
Diffstat (limited to 'sys/crypto/rijndael.h')
-rw-r--r-- | sys/crypto/rijndael.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/crypto/rijndael.h b/sys/crypto/rijndael.h index f9811956f44..845d23076da 100644 --- a/sys/crypto/rijndael.h +++ b/sys/crypto/rijndael.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rijndael.h,v 1.12 2007/05/27 05:43:17 tedu Exp $ */ +/* $OpenBSD: rijndael.h,v 1.13 2008/06/09 07:49:45 djm Exp $ */ /** * rijndael-alg-fst.h @@ -45,10 +45,10 @@ typedef struct { u32 dk[4*(AES_MAXROUNDS + 1)]; /* decrypt key schedule */ } rijndael_ctx; -int rijndael_set_key(rijndael_ctx *, u_char *, int); -int rijndael_set_key_enc_only(rijndael_ctx *, u_char *, int); -void rijndael_decrypt(rijndael_ctx *, u_char *, u_char *); -void rijndael_encrypt(rijndael_ctx *, u_char *, u_char *); +int rijndael_set_key(rijndael_ctx *, const u_char *, int); +int rijndael_set_key_enc_only(rijndael_ctx *, const u_char *, int); +void rijndael_decrypt(rijndael_ctx *, const u_char *, u_char *); +void rijndael_encrypt(rijndael_ctx *, const u_char *, u_char *); int rijndaelKeySetupEnc(unsigned int [], const unsigned char [], int); int rijndaelKeySetupDec(unsigned int [], const unsigned char [], int); |