+Thu Mar 28 10:49:31 1996 Richard Basch <basch@lehman.com>
+
+ * init_rkey.c, d3_str2ky.c, d3_procky.c: Support ENCTYPE_DES3_CBC_RAW
+
+ * des_int.h: Support CKSUMTYPE_DES3_CBC_MD5
+
Wed Mar 20 22:33:40 1996 Theodore Y. Ts'o <tytso@dcl>
* u_nfold.c (mit_des_n_fold):
{
struct mit_des_ks_struct *schedule; /* pointer to key schedules */
- if (keyblock->enctype != ENCTYPE_DES3_CBC_MD5)
+ if ((keyblock->enctype != ENCTYPE_DES3_CBC_MD5) &&
+ (keyblock->enctype != ENCTYPE_DES3_CBC_RAW))
return KRB5_PROG_ETYPE_NOSUPP;
if (keyblock->length != sizeof (mit_des3_cblock))
mit_des3_key_schedule ks;
krb5_enctype enctype = eblock->crypto_entry->proto_enctype;
- if (enctype == ENCTYPE_DES3_CBC_MD5)
+ if ((enctype == ENCTYPE_DES3_CBC_MD5) ||
+ (enctype == ENCTYPE_DES3_CBC_RAW))
keyblock->length = sizeof(mit_des3_cblock);
else
return (KRB5_PROG_ETYPE_NOSUPP);
extern krb5_cs_table_entry krb5_des_crc_cst_entry;
extern krb5_cs_table_entry krb5_des_md5_cst_entry;
extern krb5_cs_table_entry krb5_des3_md5_cst_entry;
-extern krb5_checksum_entry krb5_des_cbc_cksumtable_entry;
+extern krb5_cs_table_entry krb5_des3_raw_cst_entry;
+extern krb5_checksum_entry krb5_des_cbc_cksumtable_entry;
/*
* Check if k5-int.h has been included before us. If so, then check to see
if ((seedblock->enctype != ENCTYPE_DES_CBC_CRC) &&
(seedblock->enctype != ENCTYPE_DES_CBC_MD4) &&
(seedblock->enctype != ENCTYPE_DES_CBC_MD5) &&
+ (seedblock->enctype != ENCTYPE_DES_CBC_RAW) &&
(seedblock->enctype != ENCTYPE_DES3_CBC_MD5) &&
- (seedblock->enctype != ENCTYPE_DES_CBC_RAW))
+ (seedblock->enctype != ENCTYPE_DES3_CBC_RAW))
return KRB5_BAD_ENCTYPE;
if ( !(p_seed = (mit_des_random_key_seed *)
malloc(sizeof(mit_des_random_key_seed))) )