summaryrefslogtreecommitdiffstats
path: root/sys/netipsec/xform_esp.c
diff options
context:
space:
mode:
authorgnn <gnn@FreeBSD.org>2007-05-09 19:37:02 +0000
committergnn <gnn@FreeBSD.org>2007-05-09 19:37:02 +0000
commit38b76f06232a188e2b053370458b6901b745948b (patch)
treeab6a97da261f87bb2e97c008d467da3311010b9e /sys/netipsec/xform_esp.c
parent4941ee4a2accc1d1a5d38148ec1378487b9e1cf0 (diff)
downloadFreeBSD-src-38b76f06232a188e2b053370458b6901b745948b.zip
FreeBSD-src-38b76f06232a188e2b053370458b6901b745948b.tar.gz
Integrate the Camellia Block Cipher. For more information see RFC 4132
and its bibliography. Submitted by: Tomoyuki Okazaki <okazaki at kick dot gr dot jp> MFC after: 1 month
Diffstat (limited to 'sys/netipsec/xform_esp.c')
-rw-r--r--sys/netipsec/xform_esp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/netipsec/xform_esp.c b/sys/netipsec/xform_esp.c
index fad3547..36bd01e 100644
--- a/sys/netipsec/xform_esp.c
+++ b/sys/netipsec/xform_esp.c
@@ -113,6 +113,8 @@ esp_algorithm_lookup(int alg)
return &enc_xform_skipjack;
case SADB_EALG_NULL:
return &enc_xform_null;
+ case SADB_X_EALG_CAMELLIACBC:
+ return &enc_xform_camellia;
}
return NULL;
}
@@ -1006,6 +1008,7 @@ esp_attach(void)
MAXIV(enc_xform_cast5); /* SADB_X_EALG_CAST128CBC */
MAXIV(enc_xform_skipjack); /* SADB_X_EALG_SKIPJACK */
MAXIV(enc_xform_null); /* SADB_EALG_NULL */
+ MAXIV(enc_xform_camellia); /* SADB_X_EALG_CAMELLIACBC */
xform_register(&esp_xformsw);
#undef MAXIV
OpenPOWER on IntegriCloud