* md5crypto.c : Replace KEYTYPE_DES_CBC_MD5 for KEYTYPE_DES
authorChris Provenzano <proven@mit.edu>
Wed, 6 Sep 1995 03:30:34 +0000 (03:30 +0000)
committerChris Provenzano <proven@mit.edu>
Wed, 6 Sep 1995 03:30:34 +0000 (03:30 +0000)
* t_cksum.c : Remove krb5_enctype references, and replace with
                krb5_keytype where appropriate.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6678 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/md5/ChangeLog
src/lib/crypto/md5/md5crypto.c
src/lib/crypto/md5/t_cksum.c

index 68868023c40ef6c9f6167a1b2ce7ada34bbd376c..9bda638549c73d75cde2e8a9961b6f435c2462d6 100644 (file)
@@ -1,3 +1,11 @@
+
+Tue Sep 05 22:10:34 1995   Chris Provenzano (proven@mit.edu)
+
+        * md5crypto.c : Replace KEYTYPE_DES_CBC_MD5 for KEYTYPE_DES.
+
+       * t_cksum.c : Remove krb5_enctype references, and replace with
+                krb5_keytype where appropriate.
+
 Thu Aug 24 18:40:48 1995  Theodore Y. Ts'o  <tytso@dcl>
 
        * .Sanitize: Update file list
index 1254fd82fb3179de9524db9c9b03b655a44d6eaf..3f97a61b430840e422ce971b6871c65d7c752b51 100644 (file)
@@ -61,7 +61,7 @@ krb5_checksum FAR *outcksum;
 
     keyblock.length = seed_length;
     keyblock.contents = (krb5_octet *)seed;
-    keyblock.keytype = KEYTYPE_DES;
+    keyblock.keytype = KEYTYPE_DES_CBC_MD5;
 
     if ((retval = mit_des_process_key(&eblock, &keyblock)))
        return retval;
@@ -129,7 +129,7 @@ krb5_checksum FAR *outcksum;
 
     keyblock.length = sizeof(mit_des_cblock);
     keyblock.contents = (krb5_octet *) tmpkey;
-    keyblock.keytype = KEYTYPE_DES;
+    keyblock.keytype = KEYTYPE_DES_CBC_MD5;
 
     if ((retval = mit_des_process_key(&eblock, &keyblock)))
        return retval;
@@ -196,7 +196,7 @@ size_t seed_length;
            /* Use the key "as-is" */
            keyblock.length = seed_length;
            keyblock.contents = (krb5_octet *) seed;
-           keyblock.keytype = KEYTYPE_DES;
+           keyblock.keytype = KEYTYPE_DES_CBC_MD5;
 
            if ((retval = mit_des_process_key(&eblock, &keyblock)))
                return retval;
@@ -239,7 +239,7 @@ size_t seed_length;
 
            keyblock.length = sizeof(mit_des_cblock);
            keyblock.contents = (krb5_octet *) tmpkey;
-           keyblock.keytype = KEYTYPE_DES;
+           keyblock.keytype = KEYTYPE_DES_CBC_MD5;
 
            if ((retval = mit_des_process_key(&eblock, &keyblock)))
                return retval;
index 6b0814440ed1d273b12f9af36c7065fa332f2619..683ef57ad940d9c65f70efbd2c1d8a6d8ca4ec10 100644 (file)
@@ -104,9 +104,9 @@ main(int argc, char *argv[])
   pwd = "test password";
   pwdata.length = strlen(pwd);
   pwdata.data = pwd;
-  krb5_use_cstype(kcontext, &encblock, DEFAULT_KDC_ETYPE);
+  krb5_use_keytype(kcontext, &encblock, DEFAULT_KDC_KEYTYPE);
   if (kret = mit_des_string_to_key(&encblock,
-                                  KEYTYPE_DES,
+                                  DEFAULT_KDC_KEYTYPE,
                                   &keyblock,
                                   &pwdata,
                                   (krb5_data *) NULL)) {