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.c | |
parent | dbc8994d667f55793aa0ca89944b34e9b027ccad (diff) |
constify arguments in wrapper functions; the lower level functions
were already done
Diffstat (limited to 'sys/crypto/rijndael.c')
-rw-r--r-- | sys/crypto/rijndael.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/crypto/rijndael.c b/sys/crypto/rijndael.c index 1edca913680..ab61c77f295 100644 --- a/sys/crypto/rijndael.c +++ b/sys/crypto/rijndael.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rijndael.c,v 1.18 2005/05/25 05:47:53 markus Exp $ */ +/* $OpenBSD: rijndael.c,v 1.19 2008/06/09 07:49:45 djm Exp $ */ /** * rijndael-alg-fst.c @@ -1221,7 +1221,7 @@ rijndaelDecrypt(const u32 rk[/*4*(Nr + 1)*/], int Nr, const u8 ct[16], /* setup key context for encryption only */ int -rijndael_set_key_enc_only(rijndael_ctx *ctx, u_char *key, int bits) +rijndael_set_key_enc_only(rijndael_ctx *ctx, const u_char *key, int bits) { int rounds; @@ -1237,7 +1237,7 @@ rijndael_set_key_enc_only(rijndael_ctx *ctx, u_char *key, int bits) /* setup key context for both encryption and decryption */ int -rijndael_set_key(rijndael_ctx *ctx, u_char *key, int bits) +rijndael_set_key(rijndael_ctx *ctx, const u_char *key, int bits) { int rounds; @@ -1254,13 +1254,13 @@ rijndael_set_key(rijndael_ctx *ctx, u_char *key, int bits) } void -rijndael_decrypt(rijndael_ctx *ctx, u_char *src, u_char *dst) +rijndael_decrypt(rijndael_ctx *ctx, const u_char *src, u_char *dst) { rijndaelDecrypt(ctx->dk, ctx->Nr, src, dst); } void -rijndael_encrypt(rijndael_ctx *ctx, u_char *src, u_char *dst) +rijndael_encrypt(rijndael_ctx *ctx, const u_char *src, u_char *dst) { rijndaelEncrypt(ctx->ek, ctx->Nr, src, dst); } |