Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/crypto/rijndael Take a couple more opportunities to cons...
details: https://anonhg.NetBSD.org/src/rev/bfd02b9fe219
branches: trunk
changeset: 550982:bfd02b9fe219
user: thorpej <thorpej%NetBSD.org@localhost>
date: Tue Aug 26 20:07:59 2003 +0000
description:
Take a couple more opportunities to const poison.
diffstat:
sys/crypto/rijndael/rijndael.c | 8 ++++----
sys/crypto/rijndael/rijndael.h | 6 +++---
2 files changed, 7 insertions(+), 7 deletions(-)
diffs (54 lines):
diff -r 7c2ceb92a3e5 -r bfd02b9fe219 sys/crypto/rijndael/rijndael.c
--- a/sys/crypto/rijndael/rijndael.c Tue Aug 26 19:58:36 2003 +0000
+++ b/sys/crypto/rijndael/rijndael.c Tue Aug 26 20:07:59 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rijndael.c,v 1.2 2003/08/26 19:58:36 thorpej Exp $ */
+/* $NetBSD: rijndael.c,v 1.3 2003/08/26 20:07:59 thorpej Exp $ */
/**
* rijndael-alg-fst.c
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rijndael.c,v 1.2 2003/08/26 19:58:36 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rijndael.c,v 1.3 2003/08/26 20:07:59 thorpej Exp $");
#include <sys/types.h>
#include <sys/systm.h>
@@ -49,14 +49,14 @@
}
void
-rijndael_decrypt(rijndael_ctx *ctx, const u_char *src, u_char *dst)
+rijndael_decrypt(const rijndael_ctx *ctx, const u_char *src, u_char *dst)
{
rijndaelDecrypt(ctx->dk, ctx->Nr, src, dst);
}
void
-rijndael_encrypt(rijndael_ctx *ctx, const u_char *src, u_char *dst)
+rijndael_encrypt(const rijndael_ctx *ctx, const u_char *src, u_char *dst)
{
rijndaelEncrypt(ctx->ek, ctx->Nr, src, dst);
diff -r 7c2ceb92a3e5 -r bfd02b9fe219 sys/crypto/rijndael/rijndael.h
--- a/sys/crypto/rijndael/rijndael.h Tue Aug 26 19:58:36 2003 +0000
+++ b/sys/crypto/rijndael/rijndael.h Tue Aug 26 20:07:59 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rijndael.h,v 1.6 2003/08/26 19:58:37 thorpej Exp $ */
+/* $NetBSD: rijndael.h,v 1.7 2003/08/26 20:07:59 thorpej Exp $ */
/* $KAME: rijndael.h,v 1.3 2003/07/15 10:47:16 itojun Exp $ */
/**
@@ -41,7 +41,7 @@
} rijndael_ctx;
void rijndael_set_key(rijndael_ctx *, const u_char *, int, int);
-void rijndael_decrypt(rijndael_ctx *, const u_char *, u_char *);
-void rijndael_encrypt(rijndael_ctx *, const u_char *, u_char *);
+void rijndael_decrypt(const rijndael_ctx *, const u_char *, u_char *);
+void rijndael_encrypt(const rijndael_ctx *, const u_char *, u_char *);
#endif /* __RIJNDAEL_H */
Home |
Main Index |
Thread Index |
Old Index