summaryrefslogtreecommitdiffstats
path: root/sys/crypto/cryptosoft.h
diff options
context:
space:
mode:
authorhenric <henric@openbsd.org>2007-09-10 22:19:42 +0000
committerhenric <henric@openbsd.org>2007-09-10 22:19:42 +0000
commit3fccb9893ef1d6ab37a93fdb0c895bba0b0c7981 (patch)
tree5ae04486da3f22ac1fcc6df3ec16c45ef16b7f3c /sys/crypto/cryptosoft.h
parentFix a copy/pasto from last year. CMI9880 should work now. (diff)
downloadwireguard-openbsd-3fccb9893ef1d6ab37a93fdb0c895bba0b0c7981.tar.xz
wireguard-openbsd-3fccb9893ef1d6ab37a93fdb0c895bba0b0c7981.zip
Make the hmac ipad/opad globals "const" and fixup the crypto functions
to match. ok deraadt@
Diffstat (limited to 'sys/crypto/cryptosoft.h')
-rw-r--r--sys/crypto/cryptosoft.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/crypto/cryptosoft.h b/sys/crypto/cryptosoft.h
index 7a98cbb9e5e..b5764fc8830 100644
--- a/sys/crypto/cryptosoft.h
+++ b/sys/crypto/cryptosoft.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cryptosoft.h,v 1.10 2002/04/22 23:10:09 deraadt Exp $ */
+/* $OpenBSD: cryptosoft.h,v 1.11 2007/09/10 22:19:42 henric Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu)
@@ -57,8 +57,8 @@ struct swcr_data {
};
#ifdef _KERNEL
-extern u_int8_t hmac_ipad_buffer[64];
-extern u_int8_t hmac_opad_buffer[64];
+extern const u_int8_t hmac_ipad_buffer[64];
+extern const u_int8_t hmac_opad_buffer[64];
int swcr_encdec(struct cryptodesc *, struct swcr_data *, caddr_t, int);
int swcr_authcompute(struct cryptop *, struct cryptodesc *, struct swcr_data *,