summaryrefslogtreecommitdiffstats
path: root/sys/opencrypto
diff options
context:
space:
mode:
authorvanhu <vanhu@FreeBSD.org>2011-02-25 09:29:32 +0000
committervanhu <vanhu@FreeBSD.org>2011-02-25 09:29:32 +0000
commit53fef1cd60a1d8419e81e6ac991406eb2098d6d2 (patch)
treebc65503710fa67a11a2b112be2f05f77efb5d512 /sys/opencrypto
parentc8765c79d9e7ba4c2cf9f213a1dcbe146abfebf1 (diff)
downloadFreeBSD-src-53fef1cd60a1d8419e81e6ac991406eb2098d6d2.zip
FreeBSD-src-53fef1cd60a1d8419e81e6ac991406eb2098d6d2.tar.gz
fixed size of AH_ALEN_MAX, which is 64 bytes for SHA-512.
Obtained from: Matthias Drochner <M.Drochner@fz-juelich.de> MFC after: 3d
Diffstat (limited to 'sys/opencrypto')
-rw-r--r--sys/opencrypto/xform.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/opencrypto/xform.h b/sys/opencrypto/xform.h
index 0a7f981..8df7b07 100644
--- a/sys/opencrypto/xform.h
+++ b/sys/opencrypto/xform.h
@@ -43,7 +43,8 @@ struct auth_hash {
void (*Final) (u_int8_t *, void *);
};
-#define AH_ALEN_MAX 20 /* max authenticator hash length */
+/* XXX use a define common with other hash stuff ! */
+#define AH_ALEN_MAX 64 /* max authenticator hash length */
struct enc_xform {
int type;
OpenPOWER on IntegriCloud