From: Li Yewang <lyw@cn.fujitsu.com>
To: netdev@vger.kernel.org
Subject: [PATCH][XFRM] Use the simple name when adding SAD with ip xfrm state
Date: Mon, 18 Jan 2010 16:42:17 +0800 [thread overview]
Message-ID: <4B541EE9.9010803@cn.fujitsu.com> (raw)
The encryption name such as "rfc3686(ctr(aes))" is too complex.
I think simple name is better for user when using "ip xfrm state ..." command.
Signed-off-by: Li Yewang <lyw@cn.fujitsu.com>
---
net/xfrm/xfrm_algo.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/net/xfrm/xfrm_algo.c b/net/xfrm/xfrm_algo.c
index 743c013..6de2780 100644
--- a/net/xfrm/xfrm_algo.c
+++ b/net/xfrm/xfrm_algo.c
@@ -31,6 +31,7 @@
static struct xfrm_algo_desc aead_list[] = {
{
.name = "rfc4106(gcm(aes))",
+ .compat = "gcm",
.uinfo = {
.aead = {
@@ -47,6 +48,7 @@ static struct xfrm_algo_desc aead_list[] = {
},
{
.name = "rfc4106(gcm(aes))",
+ .compat = "gcm",
.uinfo = {
.aead = {
@@ -63,6 +65,7 @@ static struct xfrm_algo_desc aead_list[] = {
},
{
.name = "rfc4106(gcm(aes))",
+ .compat = "gcm",
.uinfo = {
.aead = {
@@ -79,6 +82,7 @@ static struct xfrm_algo_desc aead_list[] = {
},
{
.name = "rfc4309(ccm(aes))",
+ .compat = "gcm",
.uinfo = {
.aead = {
@@ -95,6 +99,7 @@ static struct xfrm_algo_desc aead_list[] = {
},
{
.name = "rfc4309(ccm(aes))",
+ .compat = "ccm",
.uinfo = {
.aead = {
@@ -111,6 +116,7 @@ static struct xfrm_algo_desc aead_list[] = {
},
{
.name = "rfc4309(ccm(aes))",
+ .compat = "ccm",
.uinfo = {
.aead = {
@@ -201,6 +207,7 @@ static struct xfrm_algo_desc aalg_list[] = {
},
{
.name = "hmac(sha384)",
+ .compat = "sha384",
.uinfo = {
.auth = {
@@ -218,6 +225,7 @@ static struct xfrm_algo_desc aalg_list[] = {
},
{
.name = "hmac(sha512)",
+ .compat = "sha512",
.uinfo = {
.auth = {
@@ -253,6 +261,7 @@ static struct xfrm_algo_desc aalg_list[] = {
},
{
.name = "xcbc(aes)",
+ .compat = "aes-xcbc",
.uinfo = {
.auth = {
@@ -435,6 +444,7 @@ static struct xfrm_algo_desc ealg_list[] = {
},
{
.name = "rfc3686(ctr(aes))",
+ .compat = "aes-ctr",
.uinfo = {
.encr = {
--
1.6.4.1
next reply other threads:[~2010-01-18 8:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-18 8:42 Li Yewang [this message]
2010-01-18 8:48 ` [PATCH][XFRM] Use the simple name when adding SAD with ip xfrm state Li Yewang
2010-01-19 2:20 ` Herbert Xu
2010-01-19 8:25 ` Li Yewang
2010-01-19 8:30 ` David Miller
2010-01-21 5:22 ` Li Yewang
2010-01-21 9:10 ` Herbert Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B541EE9.9010803@cn.fujitsu.com \
--to=lyw@cn.fujitsu.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).