Skip to content

Add new enctypes for gss_krb5 (Round 5)

[email protected] linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest23 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/23gss_krb5: Introduce encryption type frameworkinclude/linux/sunrpc/gss_krb5.h net/sunrpc/auth_gss/auth_gss.c net/sunrpc/auth_gss/gss_krb5_crypto.c +1 more+66 -50 replies
2/23gss_krb5: Added and improved code commentsnet/sunrpc/auth_gss/auth_gss.c net/sunrpc/auth_gss/gss_mech_switch.c net/sunrpc/auth_gss/svcauth_gss.c+38 -31 reply
3/23gss_krb5: Don't expect blocksize to always be 8 when calculating paddingnet/sunrpc/auth_gss/gss_krb5_wrap.c+1 -40 replies
4/23gss_krb5: split up functions in preparation of adding new enctypesinclude/linux/sunrpc/gss_krb5.h net/sunrpc/auth_gss/gss_krb5_mech.c net/sunrpc/auth_gss/gss_krb5_seal.c +2 more+69 -120 replies
5/23gss_krb5: prepare for new context formatnet/sunrpc/auth_gss/gss_krb5_mech.c+40 -240 replies
6/23gss_krb5: introduce encryption type frameworkinclude/linux/sunrpc/gss_krb5.h net/sunrpc/auth_gss/gss_krb5_crypto.c net/sunrpc/auth_gss/gss_krb5_mech.c +3 more+206 -700 replies
7/23gss_krb5: add ability to have a keyed checksum (hmac)include/linux/sunrpc/gss_krb5.h net/sunrpc/auth_gss/gss_krb5_crypto.c net/sunrpc/auth_gss/gss_krb5_mech.c +3 more+88 -340 replies
8/23gss_krb5: import functionality to derive keys into the kernelinclude/linux/sunrpc/gss_krb5.h net/sunrpc/auth_gss/Makefile net/sunrpc/auth_gss/gss_krb5_keys.c +1 more+285 -10 replies
9/23gss_krb5: handle new context format from gssdinclude/linux/sunrpc/gss_krb5.h net/sunrpc/auth_gss/gss_krb5_keys.c net/sunrpc/auth_gss/gss_krb5_mech.c+258 -40 replies
10/23gss_krb5: add support for triple-des encryptioninclude/linux/sunrpc/gss_krb5.h net/sunrpc/auth_gss/gss_krb5_crypto.c net/sunrpc/auth_gss/gss_krb5_keys.c +4 more+88 -00 replies
11/23Add new pipefs file indicating which Kerberos enctypes the kernel supportsnet/sunrpc/rpc_pipe.c+27 -00 replies
12/23Update pipefs file indicating which Kerberos enctypes the kernel supportsnet/sunrpc/rpc_pipe.c+1 -10 replies
13/23xdr: Add an export for the helper function write_bytes_to_xdr_buf()net/sunrpc/xdr.c+1 -00 replies
14/23gss_krb5: add support for new token formats in rfc4121include/linux/sunrpc/gss_krb5.h net/sunrpc/auth_gss/gss_krb5_crypto.c net/sunrpc/auth_gss/gss_krb5_seal.c +2 more+477 -00 replies
15/23gss_krb5: add remaining pieces to enable AES encryption supportinclude/linux/sunrpc/gss_krb5.h net/sunrpc/auth_gss/gss_krb5_crypto.c net/sunrpc/auth_gss/gss_krb5_keys.c +2 more+376 -100 replies
16/23gss_krb5: Update pipefs filenet/sunrpc/rpc_pipe.c+1 -10 replies
17/23gssd_krb5: arcfour-hmac supportinclude/linux/sunrpc/gss_krb5.h net/sunrpc/auth_gss/gss_krb5_crypto.c net/sunrpc/auth_gss/gss_krb5_seal.c +2 more+32 -160 replies
18/23gss_krb5: Save the raw session key in the contextinclude/linux/sunrpc/gss_krb5.h net/sunrpc/auth_gss/gss_krb5_mech.c+14 -140 replies
19/23gssd_krb5: More arcfour-hmac supportinclude/linux/sunrpc/gss_krb5.h net/sunrpc/auth_gss/gss_krb5_seal.c net/sunrpc/auth_gss/gss_krb5_seqnum.c +2 more+14 -110 replies
20/23gss_krb5: Use confounder length in wrap codeinclude/linux/sunrpc/gss_krb5.h net/sunrpc/auth_gss/gss_krb5_crypto.c net/sunrpc/auth_gss/gss_krb5_mech.c +1 more+17 -80 replies
21/23gss_krb5: Add support for rc4-hmac encryptioninclude/linux/sunrpc/gss_krb5.h net/sunrpc/auth_gss/gss_krb5_crypto.c net/sunrpc/auth_gss/gss_krb5_mech.c +4 more+492 -130 replies
22/23Update the pipefs filenet/sunrpc/rpc_pipe.c+1 -10 replies
23/23Fixed a typo in gss_verify_mic_v2()net/sunrpc/auth_gss/gss_krb5_unseal.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/23] Add new enctypes for gss_krb5 (Round 5)

From: Steve Dickson <[email protected]>

Here is the next round of Kevin Coffman's encryption patches. This series includes all of the review comments from the previous posting except for one.

Its the question as to why there were two occurrences of GSS_KRB5_TOK_HDR_LEN define in the GSS_KRB5_MAX_SLACK_NEEDED macro. Since Kevin is traveling and the reason didn't seem obvious plus I didn't see it as being a showstopper (due to all the recent testing), I decided to proceed as. If later its deemed a supplemental patch is needed, I'll post the patch

Again, the details of the original patches are at:
http://marc.info/?l=linux-nfs&m=121010783625159&w=2

steved.

J. Bruce Fields (1):
gss_krb5: Don't expect blocksize to always be 8 when calculating
padding

Kevin Coffman (21):
gss_krb5: Introduce encryption type framework
gss_krb5: Added and improved code comments
gss_krb5: split up functions in preparation of adding new enctypes
gss_krb5: prepare for new context format
gss_krb5: introduce encryption type framework
gss_krb5: add ability to have a keyed checksum (hmac)
gss_krb5: import functionality to derive keys into the kernel
gss_krb5: handle new context format from gssd
gss_krb5: add support for triple-des encryption
Add new pipefs file indicating which Kerberos enctypes the kernel
supports
Update pipefs file indicating which Kerberos enctypes the kernel
supports
xdr: Add an export for the helper function write_bytes_to_xdr_buf()
gss_krb5: add support for new token formats in rfc4121
gss_krb5: add remaining pieces to enable AES encryption support
gss_krb5: Update pipefs file
gssd_krb5: arcfour-hmac support
gss_krb5: Save the raw session key in the context
gssd_krb5: More arcfour-hmac support
gss_krb5: Use confounder length in wrap code
gss_krb5: Add support for rc4-hmac encryption
Update the pipefs file

Peter Staubach (1):
Fixed a typo in gss_verify_mic_v2()

 include/linux/sunrpc/gss_krb5.h       |  183 +++++++++-
 net/sunrpc/auth_gss/Makefile          |    2 +-
 net/sunrpc/auth_gss/auth_gss.c        |   14 +-
 net/sunrpc/auth_gss/gss_krb5_crypto.c |  697 ++++++++++++++++++++++++++++++++-
 net/sunrpc/auth_gss/gss_krb5_keys.c   |  335 ++++++++++++++++
 net/sunrpc/auth_gss/gss_krb5_mech.c   |  582 +++++++++++++++++++++++++--
 net/sunrpc/auth_gss/gss_krb5_seal.c   |  155 ++++++--
 net/sunrpc/auth_gss/gss_krb5_seqnum.c |   83 ++++-
 net/sunrpc/auth_gss/gss_krb5_unseal.c |  113 +++++-
 net/sunrpc/auth_gss/gss_krb5_wrap.c   |  473 ++++++++++++++++++++---
 net/sunrpc/auth_gss/gss_mech_switch.c |   14 +
 net/sunrpc/auth_gss/svcauth_gss.c     |   15 +
 net/sunrpc/rpc_pipe.c                 |   27 ++
 net/sunrpc/xdr.c                      |    1 +
 14 files changed, 2527 insertions(+), 167 deletions(-)
 create mode 100644 net/sunrpc/auth_gss/gss_krb5_keys.c