summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/hash.h
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2006-06-10 20:10:03 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2006-06-10 20:10:03 +0000
commit78cad3b0ede805ac7d530e8f3a3086f6693c72f6 (patch)
tree857167c57f4c50866c11e042a191a6ef3bb4c6a5 /sbin/isakmpd/hash.h
parent858192e677ef663ff6ccbe184fe7af6cae73fa5f (diff)
support sha2 for main mode hmacs and aesctr for quick mode encryption.
ok markus@ ho@
Diffstat (limited to 'sbin/isakmpd/hash.h')
-rw-r--r--sbin/isakmpd/hash.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/sbin/isakmpd/hash.h b/sbin/isakmpd/hash.h
index 3af23508138..426c899a4c5 100644
--- a/sbin/isakmpd/hash.h
+++ b/sbin/isakmpd/hash.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: hash.h,v 1.7 2004/04/15 18:39:25 deraadt Exp $ */
+/* $OpenBSD: hash.h,v 1.8 2006/06/10 20:10:02 hshoexer Exp $ */
/* $EOM: hash.h,v 1.6 1998/07/25 22:04:36 niklas Exp $ */
/*
@@ -36,11 +36,17 @@
#define MD5_SIZE 16
#define SHA1_SIZE 20
-#define HASH_MAX SHA1_SIZE
+#define SHA2_256_SIZE 32
+#define SHA2_384_SIZE 48
+#define SHA2_512_SIZE 64
+#define HASH_MAX SHA2_512_SIZE
enum hashes {
HASH_MD5 = 0,
- HASH_SHA1
+ HASH_SHA1,
+ HASH_SHA2_256,
+ HASH_SHA2_384,
+ HASH_SHA2_512
};
struct hash {