summaryrefslogtreecommitdiff
path: root/sys/crypto/xform.h
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-07-24 08:03:21 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2003-07-24 08:03:21 +0000
commitea317ae3d0bef8a5fdf61b6dcbb1413e46cc336b (patch)
treeb9e29db64e3ef83852b269e3a43371ea54164f95 /sys/crypto/xform.h
parentb7a6a9b3191243be9b4fc439ff12ee73b9512178 (diff)
hmac-sha2-{256,384,512} support in AH/ESP auth. markus ok
Diffstat (limited to 'sys/crypto/xform.h')
-rw-r--r--sys/crypto/xform.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/crypto/xform.h b/sys/crypto/xform.h
index 330e6931a35..43bc67065be 100644
--- a/sys/crypto/xform.h
+++ b/sys/crypto/xform.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: xform.h,v 1.12 2003/02/15 22:57:58 jason Exp $ */
+/* $OpenBSD: xform.h,v 1.13 2003/07/24 08:03:19 itojun Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu)
@@ -27,6 +27,7 @@
#include <sys/md5k.h>
#include <crypto/sha1.h>
#include <crypto/rmd160.h>
+#include <crypto/sha2.h>
/* Declarations */
struct auth_hash {
@@ -64,6 +65,9 @@ union authctx {
MD5_CTX md5ctx;
SHA1_CTX sha1ctx;
RMD160_CTX rmd160ctx;
+ SHA256_CTX sha2_256ctx;
+ SHA384_CTX sha2_384ctx;
+ SHA512_CTX sha2_512ctx;
};
extern struct enc_xform enc_xform_des;
@@ -82,6 +86,9 @@ extern struct auth_hash auth_hash_key_sha1;
extern struct auth_hash auth_hash_hmac_md5_96;
extern struct auth_hash auth_hash_hmac_sha1_96;
extern struct auth_hash auth_hash_hmac_ripemd_160_96;
+extern struct auth_hash auth_hash_hmac_sha2_256_96;
+extern struct auth_hash auth_hash_hmac_sha2_384_96;
+extern struct auth_hash auth_hash_hmac_sha2_512_96;
extern struct comp_algo comp_algo_deflate;
extern struct comp_algo comp_algo_lzs;