Cast mit_des_ecb_encrypt args correctly
authorPaul Park <pjpark@mit.edu>
Thu, 27 Jul 1995 19:51:36 +0000 (19:51 +0000)
committerPaul Park <pjpark@mit.edu>
Thu, 27 Jul 1995 19:51:36 +0000 (19:51 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6349 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/des425/des.c
src/lib/des425/verify.c

index b044acc41508df1fd6a14d48bc8aa2d26ce4599f..482f94875609c7ee89326e970feeb3edc439f6b3 100644 (file)
@@ -58,7 +58,10 @@ des_ecb_encrypt(clear, cipher, schedule, encrypt)
     int encrypt;               /* 0 ==> decrypt, else encrypt */
     register mit_des_key_schedule schedule; /* r11 */
 {
-       return (mit_des_ecb_encrypt(clear, cipher, schedule, encrypt));
+       return (mit_des_ecb_encrypt((mit_des_cblock *) clear,
+                                   (mit_des_cblock *) cipher,
+                                   schedule,
+                                   encrypt));
 }
 
 
index 194c6c24fbc26e281876a005374fcb7e0c4cc74f..7be470d2175997ed98f7d344c422aa98736a11a1 100644 (file)
@@ -236,7 +236,7 @@ main(argc,argv)
     printf("\t\t\t68 37 88 49 9a 7c 05 f6\n");
 
     printf("ACTUAL CBC\n\tclear \"%s\"\n",input);
-    in_length = strlen(input);
+    in_length = strlen((char *) input);
     des_cbc_encrypt(input,cipher_text,(long) in_length,KS,ivec,1);
     printf("\tciphertext = (low to high bytes)\n");
     for (i = 0; i <= 7; i++) {
@@ -262,7 +262,7 @@ main(argc,argv)
     printf("\tchecksum\t58 d2 e7 7e 86 06 27 33, ");
     printf("or some part thereof\n");
     input = clear_text2;
-    des_cbc_cksum(input,cipher_text,(long) strlen(input),KS,ivec,1);
+    des_cbc_cksum(input,cipher_text,(long) strlen((char *) input),KS,ivec,1);
     printf("ACTUAL CBC checksum\n");
     printf("\t\tencrypted cksum = (low to high bytes)\n\t\t");
     for (j = 0; j<=7; j++)