summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2003-12-22 18:13:59 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2003-12-22 18:13:59 +0000
commit37f3f900c1cfdbe9851f389abbcded23384ab805 (patch)
tree0673ea8f6aacb120e34db3257e7683d3de8dc676
parent0268722e75e716d20c07f414825a94818e53467c (diff)
use AES_BLOCK_SIZE only for USE_AES; report martti.kuparinen@iki.fi; ok ho@
-rw-r--r--sbin/isakmpd/crypto.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sbin/isakmpd/crypto.h b/sbin/isakmpd/crypto.h
index 05cdb3164d9..13c799b3e20 100644
--- a/sbin/isakmpd/crypto.h
+++ b/sbin/isakmpd/crypto.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: crypto.h,v 1.11 2003/09/24 11:12:31 markus Exp $ */
+/* $OpenBSD: crypto.h,v 1.12 2003/12/22 18:13:58 markus Exp $ */
/* $EOM: crypto.h,v 1.12 2000/10/15 21:56:41 niklas Exp $ */
/*
@@ -93,7 +93,11 @@
*/
#define BLOCKSIZE 8
+#ifdef USE_AES
#define MAXBLK AES_BLOCK_SIZE
+#else
+#define MAXBLK BLOCKSIZE
+#endif
struct keystate {
struct crypto_xf *xf; /* Back pointer */