diff options
author | Kevin Coffman <kwc@citi.umich.edu> | 2010-03-17 13:03:05 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-05-14 15:09:20 -0400 |
commit | 5af46547ec451918f3ba51efe59b317d33adf701 (patch) | |
tree | 0878529858a5ded9224e633dd13b431e6b69e28c /net/sunrpc/auth_gss/gss_krb5_mech.c | |
parent | 1dbd9029f3024d058da1cf6c6658c28aac2e4e1c (diff) |
gss_krb5: Use confounder length in wrap code
All encryption types use a confounder at the beginning of the
wrap token. In all encryption types except arcfour-hmac, the
confounder is the same as the blocksize. arcfour-hmac has a
blocksize of one, but uses an eight byte confounder.
Add an entry to the crypto framework definitions for the
confounder length and change the wrap/unwrap code to use
the confounder length rather than assuming it is always
the blocksize.
Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Signed-off-by: Steve Dickson <steved@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/auth_gss/gss_krb5_mech.c')
-rw-r--r-- | net/sunrpc/auth_gss/gss_krb5_mech.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/sunrpc/auth_gss/gss_krb5_mech.c b/net/sunrpc/auth_gss/gss_krb5_mech.c index 893fad71e306..ef6b31349046 100644 --- a/net/sunrpc/auth_gss/gss_krb5_mech.c +++ b/net/sunrpc/auth_gss/gss_krb5_mech.c | |||
@@ -68,6 +68,7 @@ static const struct gss_krb5_enctype supported_gss_krb5_enctypes[] = { | |||
68 | .keybytes = 7, | 68 | .keybytes = 7, |
69 | .keylength = 8, | 69 | .keylength = 8, |
70 | .blocksize = 8, | 70 | .blocksize = 8, |
71 | .conflen = 8, | ||
71 | .cksumlength = 8, | 72 | .cksumlength = 8, |
72 | .keyed_cksum = 0, | 73 | .keyed_cksum = 0, |
73 | }, | 74 | }, |
@@ -88,6 +89,7 @@ static const struct gss_krb5_enctype supported_gss_krb5_enctypes[] = { | |||
88 | .keybytes = 21, | 89 | .keybytes = 21, |
89 | .keylength = 24, | 90 | .keylength = 24, |
90 | .blocksize = 8, | 91 | .blocksize = 8, |
92 | .conflen = 8, | ||
91 | .cksumlength = 20, | 93 | .cksumlength = 20, |
92 | .keyed_cksum = 1, | 94 | .keyed_cksum = 1, |
93 | }, | 95 | }, |
@@ -110,6 +112,7 @@ static const struct gss_krb5_enctype supported_gss_krb5_enctypes[] = { | |||
110 | .keybytes = 16, | 112 | .keybytes = 16, |
111 | .keylength = 16, | 113 | .keylength = 16, |
112 | .blocksize = 16, | 114 | .blocksize = 16, |
115 | .conflen = 16, | ||
113 | .cksumlength = 12, | 116 | .cksumlength = 12, |
114 | .keyed_cksum = 1, | 117 | .keyed_cksum = 1, |
115 | }, | 118 | }, |
@@ -132,6 +135,7 @@ static const struct gss_krb5_enctype supported_gss_krb5_enctypes[] = { | |||
132 | .keybytes = 32, | 135 | .keybytes = 32, |
133 | .keylength = 32, | 136 | .keylength = 32, |
134 | .blocksize = 16, | 137 | .blocksize = 16, |
138 | .conflen = 16, | ||
135 | .cksumlength = 12, | 139 | .cksumlength = 12, |
136 | .keyed_cksum = 1, | 140 | .keyed_cksum = 1, |
137 | }, | 141 | }, |