summaryrefslogtreecommitdiff
path: root/sys/crypto/sha1.c
diff options
context:
space:
mode:
authorHenric Jungheim <henric@cvs.openbsd.org>2007-09-10 22:19:43 +0000
committerHenric Jungheim <henric@cvs.openbsd.org>2007-09-10 22:19:43 +0000
commit744ccd1f3c568ba9fe2b0e7ed2f4276f452f3d03 (patch)
tree6e9b618a45a8669cbbe47c04bd8dc760a64cdf75 /sys/crypto/sha1.c
parent3b428e6c73860ae6c1adb47ca0a84a733f516c2c (diff)
Make the hmac ipad/opad globals "const" and fixup the crypto functions
to match. ok deraadt@
Diffstat (limited to 'sys/crypto/sha1.c')
-rw-r--r--sys/crypto/sha1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/crypto/sha1.c b/sys/crypto/sha1.c
index 211d804c45c..d50ecf6d30e 100644
--- a/sys/crypto/sha1.c
+++ b/sys/crypto/sha1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sha1.c,v 1.7 2007/07/20 19:54:01 otto Exp $ */
+/* $OpenBSD: sha1.c,v 1.8 2007/09/10 22:19:42 henric Exp $ */
/*
* SHA-1 in C
@@ -47,7 +47,7 @@
/* Hash a single 512-bit block. This is the core of the algorithm. */
void
-SHA1Transform(u_int32_t state[5], unsigned char buffer[SHA1_BLOCK_LENGTH])
+SHA1Transform(u_int32_t state[5], const unsigned char buffer[SHA1_BLOCK_LENGTH])
{
u_int32_t a, b, c, d, e;
typedef union {
@@ -121,7 +121,7 @@ SHA1Init(SHA1_CTX *context)
/* Run your data through this. */
void
-SHA1Update(SHA1_CTX *context, unsigned char *data, unsigned int len)
+SHA1Update(SHA1_CTX *context, const unsigned char *data, unsigned int len)
{
unsigned int i;
unsigned int j;