[7451] in Kerberos

home help back first fref pref prev next nref lref last post

beta 6 -- enctype vs keytype

daemon@ATHENA.MIT.EDU (michael shiplett)
Tue Jun 11 01:13:58 1996

To: kerberos@MIT.EDU
Date: 10 Jun 1996 17:10:25 -0400
From: michael shiplett <walrus@ans.net>

Howdy,

  Just built K5b6 under Solaris 2.4 w/gcc. My question, however does
not concern the build or K4/K5 interoperability. Instead this regards
a change to the krb5_keyblock structure.

I find that krb5_keytype has disappeared from
${prefix}/include/krb5.h. What was

    typedef struct _krb5_keyblock {
	krb5_magic magic;
	krb5_keytype keytype;
	krb5_enctype etype; /* hint of what encryption type to use */
	int length;
	krb5_octet FAR *contents;
    } krb5_keyblock;

is now

    typedef struct _krb5_keyblock {
	krb5_magic magic;
	krb5_enctype enctype;
	int length;
	krb5_octet FAR *contents;
    } krb5_keyblock;

Not only did keytype disappear, but the `etype' was renamed to
`enctype'.


Reading src/include/ChangeLog I came across these entries:

Wed Sep 06 14:20:57 1995   Chris Provenzano (proven@mit.edu)

        * k5-int.h krb5.hin : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

Tue Sep 05 22:10:34 1995   Chris Provenzano (proven@mit.edu)

        * k5-int.h, krb5.hin : Remove krb5_enctype references, and
                 replace with krb5_keytype where appropriate.

This looks as though the enctype references were changed to keytype,
then re-changed to enctype (althought doc/api/*.tex has not been so
changed).


Where can I find the answers to
    what is the difference between a keytype & an enctype?
    if they are the same, why did keyblock have both a keytype & a etype?
    why was keytype deleted?

If all that matters is all keytype references should now be enctype,
that's fine too.


michael

home help back first fref pref prev next nref lref last post