Reintegrate the keytype->enctype changes
authorEzra Peisach <epeisach@mit.edu>
Tue, 12 Sep 1995 00:14:28 +0000 (00:14 +0000)
committerEzra Peisach <epeisach@mit.edu>
Tue, 12 Sep 1995 00:14:28 +0000 (00:14 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6756 dc483132-0cff-0310-8789-dd5450dbe970

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

index ddabf8381ea7bb473270775f85e499e952a60f95..9fdbe69053f68b73a8dfafb7dc3956c6f4f502ed 100644 (file)
@@ -1,3 +1,10 @@
+Wed Sep 06 14:20:57 1995   Chris Provenzano (proven@mit.edu)
+
+        * md4crypto.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g
+
+Tue Sep 05 22:10:34 1995   Chris Provenzano (proven@mit.edu)
+
+        * md4crypto.c : Replace KEYTYPE_DES_CBC_MD4 for KEYTYPE_DES.
 
 Thu Jul 27 15:22:17 EDT 1995   Paul Park       (pjpark@mit.edu)
        * rsa-md4.h - Don't include k5-config.h.  No longer present or needed.
index 248f17683a0272e59ba509a4370c5c3e54e226aa..5b349a0241393375a1fe66ae68a3766c4f4d9cc0 100644 (file)
@@ -91,7 +91,7 @@ krb5_checksum FAR *outcksum;
 
     keyblock.length = seed_length;
     keyblock.contents = (krb5_octet *)seed;
-    keyblock.keytype = KEYTYPE_DES;
+    keyblock.enctype = ENCTYPE_DES_CBC_MD4;
 
     if ((retval = mit_des_process_key(&eblock, &keyblock)))
        return retval;
@@ -162,7 +162,7 @@ krb5_checksum FAR *outcksum;
 
     keyblock.length = sizeof(mit_des_cblock);
     keyblock.contents = (krb5_octet *) tmpkey;
-    keyblock.keytype = KEYTYPE_DES;
+    keyblock.enctype = ENCTYPE_DES_CBC_MD4;
 
     if ((retval = mit_des_process_key(&eblock, &keyblock)))
        return retval;
@@ -229,7 +229,7 @@ size_t seed_length;
            /* Use the key "as-is" */
            keyblock.length = seed_length;
            keyblock.contents = (krb5_octet *) seed;
-           keyblock.keytype = KEYTYPE_DES;
+           keyblock.enctype = ENCTYPE_DES_CBC_MD4;
 
            if ((retval = mit_des_process_key(&eblock, &keyblock)))
                return retval;
@@ -272,7 +272,7 @@ size_t seed_length;
 
            keyblock.length = sizeof(mit_des_cblock);
            keyblock.contents = (krb5_octet *) tmpkey;
-           keyblock.keytype = KEYTYPE_DES;
+           keyblock.enctype = ENCTYPE_DES_CBC_MD4;
 
            if ((retval = mit_des_process_key(&eblock, &keyblock)))
                return retval;
index 68868023c40ef6c9f6167a1b2ce7ada34bbd376c..383ac7c890a93620ec013cac50c4a957ba599d67 100644 (file)
@@ -1,3 +1,14 @@
+Wed Sep 06 14:20:57 1995   Chris Provenzano (proven@mit.edu)
+
+        * md5crypto.c, t_cksum.c : s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g
+
+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..0c2c49c0d4d0ba433bffdfca003b4b3942099eaa 100644 (file)
@@ -61,7 +61,7 @@ krb5_checksum FAR *outcksum;
 
     keyblock.length = seed_length;
     keyblock.contents = (krb5_octet *)seed;
-    keyblock.keytype = KEYTYPE_DES;
+    keyblock.enctype = ENCTYPE_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.enctype = ENCTYPE_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.enctype = ENCTYPE_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.enctype = ENCTYPE_DES_CBC_MD5;
 
            if ((retval = mit_des_process_key(&eblock, &keyblock)))
                return retval;
index 6b0814440ed1d273b12f9af36c7065fa332f2619..dabf9254523849265b5d5014f0c9aaf8ffbefd56 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_enctype(kcontext, &encblock, DEFAULT_KDC_ENCTYPE);
   if (kret = mit_des_string_to_key(&encblock,
-                                  KEYTYPE_DES,
+                                  DEFAULT_KDC_ENCTYPE,
                                   &keyblock,
                                   &pwdata,
                                   (krb5_data *) NULL)) {