Tom's cryptosystem alias entries from 1.1 branch
authorKen Raeburn <raeburn@mit.edu>
Wed, 1 Sep 1999 20:44:39 +0000 (20:44 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 1 Sep 1999 20:44:39 +0000 (20:44 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11763 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/ChangeLog
src/lib/crypto/cksumtypes.c
src/lib/crypto/etypes.c

index 842e5ce9cf8b20aa048c7fb590e4579fdefea95b..2959956e8ac486c00a5b24c8f3d16c1af3cb7e10 100644 (file)
@@ -1,3 +1,10 @@
+1999-08-26  Tom Yu  <tlyu@mit.edu>
+
+       * etypes.c: Add aliases "des" for "des-cbc-md5", "des3-hmac-sha1"
+       and "des3-cbc-sha1-kd" for "des3-cbc-sha1".
+
+       * cksumtypes.c: Add alias "hmac-sha1-des3-kd".
+
 1999-08-18  Tom Yu  <tlyu@mit.edu>
 
        * etypes.c: Update des3-cbc-sha1 to alignt with new number
index 205b064bf42fb55c4e29dc7e368ff7763e3af8e5..8f3d211754a1134a1070201eef5b0ca293e3f527 100644 (file)
@@ -67,6 +67,10 @@ struct krb5_cksumtypes krb5_cksumtypes_list[] = {
       "hmac-sha1-des3", "HMAC-SHA1 DES3 key",
       0, NULL,
       &krb5_hash_sha1 },
+    { CKSUMTYPE_HMAC_SHA1_DES3, KRB5_CKSUMFLAG_DERIVE,
+      "hmac-sha1-des3-kd", "HMAC-SHA1 DES3 key", /* alias */
+      0, NULL,
+      &krb5_hash_sha1 },
 };
 
 int krb5_cksumtypes_length =
index 9a60a45681c6c3d42d8ae9b362de3c1e26d1a2c2..fe4b71033294f563413bb7a5a96f8c0dd558deea 100644 (file)
@@ -54,6 +54,11 @@ struct krb5_keytypes krb5_enctypes_list[] = {
       &krb5_enc_des, &krb5_hash_md5,
       krb5_old_encrypt_length, krb5_old_encrypt, krb5_old_decrypt,
       krb5_des_string_to_key },
+    { ENCTYPE_DES_CBC_MD5,
+      "des", "DES cbc mode with RSA-MD5", /* alias */
+      &krb5_enc_des, &krb5_hash_md5,
+      krb5_old_encrypt_length, krb5_old_encrypt, krb5_old_decrypt,
+      krb5_des_string_to_key },
 
     { ENCTYPE_DES_CBC_RAW,
       "des-cbc-raw", "DES cbc mode raw",
@@ -71,12 +76,27 @@ struct krb5_keytypes krb5_enctypes_list[] = {
       &krb5_enc_des3, &krb5_hash_sha1,
       krb5_dk_encrypt_length, krb5_dk_encrypt, krb5_dk_decrypt,
       krb5_dk_string_to_key },
+    { ENCTYPE_DES3_CBC_SHA1,   /* alias */
+      "des3-hmac-sha1", "Triple DES cbc mode with HMAC/sha1",
+      &krb5_enc_des3, &krb5_hash_sha1,
+      krb5_dk_encrypt_length, krb5_dk_encrypt, krb5_dk_decrypt,
+      krb5_dk_string_to_key },
+    { ENCTYPE_DES3_CBC_SHA1,   /* alias */
+      "des3-cbc-sha1-kd", "Triple DES cbc mode with HMAC/sha1",
+      &krb5_enc_des3, &krb5_hash_sha1,
+      krb5_dk_encrypt_length, krb5_dk_encrypt, krb5_dk_decrypt,
+      krb5_dk_string_to_key },
+
     { ENCTYPE_DES_HMAC_SHA1,
       "des-hmac-sha1", "DES with HMAC/sha1",
       &krb5_enc_des, &krb5_hash_sha1,
       krb5_dk_encrypt_length, krb5_dk_encrypt, krb5_dk_decrypt,
       krb5_dk_string_to_key },
 #ifdef ATHENA_DES3_KLUDGE
+    /*
+     * If you are using this, you're almost certainly doing the
+     * Wrong Thing.
+     */
     { ENCTYPE_LOCAL_DES3_HMAC_SHA1,
       "des3-marc-hmac-sha1",
       "Triple DES with HMAC/sha1 and 32-bit length code",