-void des_ecb_encrypt(const des_cblock input,des_cblock output,
- des_key_schedule ks,int enc);
-void des_encrypt(DES_LONG *data,des_key_schedule ks, int enc);
-void des_encrypt2(DES_LONG *data,des_key_schedule ks, int enc);
-void des_encrypt3(DES_LONG *data, des_key_schedule ks1,
- des_key_schedule ks2, des_key_schedule ks3);
-void des_decrypt3(DES_LONG *data, des_key_schedule ks1,
- des_key_schedule ks2, des_key_schedule ks3);
+void des_ecb_encrypt(const_des_cblock *input,des_cblock *output,
+ des_key_schedule *ks,int enc);
+
+/* This is the DES encryption function that gets called by just about
+ every other DES routine in the library. You should not use this
+ function except to implement 'modes' of DES. I say this because the
+ functions that call this routine do the conversion from 'char *' to
+ long, and this needs to be done to make sure 'non-aligned' memory
+ access do not occur. The characters are loaded 'little endian'.
+ Data is a pointer to 2 unsigned long's and ks is the
+ des_key_schedule to use. enc, is non zero specifies encryption,
+ zero if decryption. */
+void des_encrypt1(DES_LONG *data,des_key_schedule *ks, int enc);
+
+/* This functions is the same as des_encrypt1() except that the DES
+ initial permutation (IP) and final permutation (FP) have been left
+ out. As for des_encrypt1(), you should not use this function.
+ It is used by the routines in the library that implement triple DES.
+ IP() des_encrypt2() des_encrypt2() des_encrypt2() FP() is the same
+ as des_encrypt1() des_encrypt1() des_encrypt1() except faster :-). */
+void des_encrypt2(DES_LONG *data,des_key_schedule *ks, int enc);
+
+void des_encrypt3(DES_LONG *data, des_key_schedule *ks1,
+ des_key_schedule *ks2, des_key_schedule *ks3);
+void des_decrypt3(DES_LONG *data, des_key_schedule *ks1,
+ des_key_schedule *ks2, des_key_schedule *ks3);