summaryrefslogtreecommitdiffstats
path: root/usr.sbin/setkey
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2003-10-12 09:41:42 +0000
committerume <ume@FreeBSD.org>2003-10-12 09:41:42 +0000
commit2da6bcd32608963a87a6204b27810701287c97c2 (patch)
tree2decf36a0c89d43e5a0e70adbde87c593c8c9376 /usr.sbin/setkey
parent430e4069d35afcda4852e4771595eeeb4b5bbe02 (diff)
downloadFreeBSD-src-2da6bcd32608963a87a6204b27810701287c97c2.zip
FreeBSD-src-2da6bcd32608963a87a6204b27810701287c97c2.tar.gz
- RIPEMD160 support
- pass size arg to ah->result (avoid assuming result buffer size) Obtained from: KAME
Diffstat (limited to 'usr.sbin/setkey')
-rw-r--r--usr.sbin/setkey/setkey.82
-rw-r--r--usr.sbin/setkey/token.l1
2 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/setkey/setkey.8 b/usr.sbin/setkey/setkey.8
index 7c8cf38..d11a6ad 100644
--- a/usr.sbin/setkey/setkey.8
+++ b/usr.sbin/setkey/setkey.8
@@ -549,6 +549,8 @@ hmac-sha2-384 384 ah: 96bit ICV (no document)
384 ah-old: 128bit ICV (no document)
hmac-sha2-512 512 ah: 96bit ICV (no document)
512 ah-old: 128bit ICV (no document)
+hmac-ripemd160 160 ah: 96bit ICV (RFC2857)
+ ah-old: 128bit ICV (no document)
.Ed
.Pp
Followings are the list of encryption algorithms that can be used as
diff --git a/usr.sbin/setkey/token.l b/usr.sbin/setkey/token.l
index 208196e..eed5190 100644
--- a/usr.sbin/setkey/token.l
+++ b/usr.sbin/setkey/token.l
@@ -170,6 +170,7 @@ keyed-sha1 { PREPROC; yylval.num = SADB_X_AALG_SHA; return(ALG_AUTH); }
hmac-sha2-256 { PREPROC; yylval.num = SADB_X_AALG_SHA2_256; return(ALG_AUTH); }
hmac-sha2-384 { PREPROC; yylval.num = SADB_X_AALG_SHA2_384; return(ALG_AUTH); }
hmac-sha2-512 { PREPROC; yylval.num = SADB_X_AALG_SHA2_512; return(ALG_AUTH); }
+hmac-ripemd160 { PREPROC; yylval.num = SADB_X_AALG_RIPEMD160HMAC; return(ALG_AUTH); }
null { PREPROC; yylval.num = SADB_X_AALG_NULL; return(ALG_AUTH); }
/* encryption alogorithm */
OpenPOWER on IntegriCloud