3 Apr 2002 16:23
Re: DES key derivation
Ron Hoffman <rhoffman <at> stny.rr.com>
2002-04-03 14:23:08 GMT
2002-04-03 14:23:08 GMT
It is taken directly from the MIT Kerberos V5 1.2.2 code. Look at k5_des_make_key() in src/lib/crypto/enc_provider/des.c. This is the situation where the key is derived from 56 bits of key material. The algorithm is different when the key is derived from a password string (mit_des_string_to_key()). I'll take a look at the DES FIPS since I think that would be the correct way to generate the key for DES-MAC and DES-CBC. Ron ----- Original Message ----- From: "Ted Anderson" <ota <at> transarc.com> To: "nfsv4-wg" <nfsv4-wg <at> sunroof.eng.sun.com>; "Ron Hoffman" <rhoffman <at> stny.rr.com> Sent: Wednesday, April 03, 2002 7:38 AM Subject: Re: DES key derivation > This description doesn't match my recollection of how Kerberos 4 works. > In the AFS implementation of the Kerberos server, which interoperates > with the MIT version, the keys are derived by hashing the password then > forcing odd parity. This latter function[1] computes the parity of each > byte and stores it in the least significant bit. I recall that this > mapping from 56 to 64 bits is specified in the original DES FIPS[2]. > While it is possible that this changed in K5, I doubt it. > > On Tue, 26 Mar 2002 16:42:29 -0500 "Ron Hoffman" <rhoffman <at> stny.rr.com> wrote:(Continue reading)
RSS Feed