Linux NFS development
 help / color / mirror / Atom feed
* [enctypes round 3: PATCH 00/24] Add new enctypes for gss_krb5
@ 2008-05-06 21:03 Kevin Coffman
       [not found] ` <20080506210156.3770.95914.stgit-zTNJhAanYLVZN1qrTdtDg5Vzexx5G7lz@public.gmane.org>
  0 siblings, 1 reply; 26+ messages in thread
From: Kevin Coffman @ 2008-05-06 21:03 UTC (permalink / raw)
  To: bfields; +Cc: linux-nfs

This is round 3.

This set of patches adds kernel support for triple-DES (des3-cbc-sha1),
arcfour (rc4-hmac), and AES (aes128-cts, aes256-cts) encryption to the
kernel's Kerberos rpcsec_gss code.

These are currently based on Trond's tree as of 05/06/08.

This still includes the first couple of patches you've already applied
(I couldn't find them in your public git, so I assume I'm missing
something, or they are applied to your local development git, or
I'm still missing something...)

This round removes the two patches that use global OIDs.  Instead,
krb5 contexts created from the new v2 context format from gssd copy
the OID from the gss_kerberos_mech structure.

Two issues remain:

1) The patch to add krb5_info will eventually be replaced with an
updated upcall which will include the supported enctype information.
I have split out these portions of the patches to (hopefully) make
that transition easier.

2) There is currently no code to handle the possiblity of rotated
data in the version two tokens.  I don't expect we'll see rotated
data in normal operation, but this should be done eventually for
completeness.

There are two nfs-utils patches required with this.  The first reads
and parses the list of kernel supported enctypes.  The second
implements the new context format from user-land to kernel.
These are included in the recent nfs-utils-1.1.2-CITI_NFS4_ALL-1 patches.


------------------

Note: for AES support, the following patch for MIT Kerberos is needed
to get the right key when there is an acceptor_subkey.  [mea culpa]

This fix is scheduled to be included in MIT release 1.6.4, currently
in beta testing.

This patch should also apply to releases 1.4.0 to 1.6.3.

Index: src/lib/gssapi/krb5/lucid_context.c
===================================================================
--- src/lib/gssapi/krb5/lucid_context.c (revision 20174)
+++ src/lib/gssapi/krb5/lucid_context.c (revision 20175)
@@ -231,7 +231,7 @@
                                        &lctx->cfx_kd.ctx_key)))
            goto error_out;
        if (gctx->have_acceptor_subkey) {
-           if ((retval = copy_keyblock_to_lucid_key(gctx->enc,
+           if ((retval = copy_keyblock_to_lucid_key(gctx->acceptor_subkey,
                                        &lctx->cfx_kd.acceptor_subkey)))
                goto error_out;
            lctx->cfx_kd.have_acceptor_subkey = 1;

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2008-05-07 14:42 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-06 21:03 [enctypes round 3: PATCH 00/24] Add new enctypes for gss_krb5 Kevin Coffman
     [not found] ` <20080506210156.3770.95914.stgit-zTNJhAanYLVZN1qrTdtDg5Vzexx5G7lz@public.gmane.org>
2008-05-06 21:03   ` [enctypes round 3: PATCH 01/24] gss_krb5: create a define for token header size and clean up ptr location Kevin Coffman
2008-05-06 21:03   ` [enctypes round 3: PATCH 02/24] gss_krb5: move gss_krb5_crypto into the krb5 module Kevin Coffman
2008-05-06 21:03   ` [enctypes round 3: PATCH 03/24] rpcauth: update and document available space in xdr_buf when doing privacy Kevin Coffman
2008-05-06 21:03   ` [enctypes round 3: PATCH 04/24] gss_krb5: Use random value to initialize confounder Kevin Coffman
2008-05-06 21:03   ` [enctypes round 3: PATCH 05/24] Don't expect blocksize to always be 8 when calculating padding Kevin Coffman
2008-05-06 21:04   ` [enctypes round 3: PATCH 06/24] gss_krb5: split up functions in preparation of adding new enctypes Kevin Coffman
2008-05-06 21:04   ` [enctypes round 3: PATCH 07/24] gss_krb5: prepare for new context format Kevin Coffman
2008-05-06 21:04   ` [enctypes round 3: PATCH 08/24] gss_krb5: introduce encryption type framework Kevin Coffman
2008-05-06 21:04   ` [enctypes round 3: PATCH 09/24] gss_krb5: add ability to have a keyed checksum (hmac) Kevin Coffman
2008-05-06 21:04   ` [enctypes round 3: PATCH 10/24] gss_krb5: import functionality to derive keys into the kernel Kevin Coffman
2008-05-06 21:04   ` [enctypes round 3: PATCH 11/24] gss_krb5: handle new context format from gssd Kevin Coffman
2008-05-06 21:04   ` [enctypes round 3: PATCH 12/24] gss_krb5: add support for triple-des encryption Kevin Coffman
2008-05-06 21:04   ` [enctypes round 3: PATCH 13/24] Add new pipefs file indicating which Kerberos enctypes the kernel supports Kevin Coffman
2008-05-06 21:04   ` [enctypes round 3: PATCH 14/24] gss_krb5: add DES3 to the list of supported enctypes Kevin Coffman
2008-05-06 21:04   ` [enctypes round 3: PATCH 15/24] sunrpc: Export function write_bytes_to_xdr_buf Kevin Coffman
2008-05-06 21:04   ` [enctypes round 3: PATCH 16/24] gss_krb5: add support for new token formats in rfc4121 Kevin Coffman
2008-05-06 21:04   ` [enctypes round 3: PATCH 17/24] gss_krb5: add remaining pieces to enable AES encryption support Kevin Coffman
2008-05-06 21:05   ` [enctypes round 3: PATCH 18/24] gss_krb5: add AES to the list of supported enctypes Kevin Coffman
2008-05-06 21:05   ` [enctypes round 3: PATCH 19/24] gss_krb5: add a usage parameter to the make_checksum function Kevin Coffman
2008-05-06 21:05   ` [enctypes round 3: PATCH 20/24] gss_krb5: add "raw" session key to context to be used for deriving keys Kevin Coffman
2008-05-06 21:05   ` [enctypes round 3: PATCH 21/24] gss_krb5: pass struct krb5_ctx pointer to sequence number functions Kevin Coffman
2008-05-06 21:05   ` [enctypes round 3: PATCH 22/24] gss_krb5: add confounder length to kerberos enctype framework Kevin Coffman
2008-05-06 21:05   ` [enctypes round 3: PATCH 23/24] gss_krb5: Add support for rc4-hmac encryption type described in rfc4757 Kevin Coffman
2008-05-06 21:05   ` [enctypes round 3: PATCH 24/24] gss_krb5: add RC4 to the list of supported enctypes Kevin Coffman
2008-05-07 14:41   ` [enctypes round 3: PATCH 00/24] Add new enctypes for gss_krb5 J. Bruce Fields

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox