+Sun Feb 16 23:29:09 1997 Richard Basch <basch@lehman.com>
+
+ * pcbc_encrypt.c: Export des_pcbc_encrypt (win16/win32)
+
Thu Nov 21 11:55:16 EST 1996 Richard Basch <basch@lehman.com>
* Makefile.in: win32 build
KRB5_DLLIMP void KRB5_CALLCONV des_set_random_generator_seed();
void des_set_sequence_number();
void des_generate_random_block();
-int des_pcbc_encrypt();
-unsigned long des_quad_cksum();
+KRB5_DLLIMP int KRB5_CALLCONV des_pcbc_encrypt();
+KRB5_DLLIMP unsigned long KRB5_CALLCONV des_quad_cksum();
int des_random_key();
krb5_error_code des_read_password();
-int des_string_to_key();
+KRB5_DLLIMP int KRB5_CALLCONV des_string_to_key();
int des_is_weak_key();
#endif /* DES_DEFS */
/*
* des_pcbc_encrypt - {en,de}crypt a stream in PCBC mode
*/
-int
+KRB5_DLLIMP int KRB5_CALLCONV
des_pcbc_encrypt(in, out, length, schedule, ivec, encrypt)
des_cblock *in;
des_cblock *out;
/*** Routines ***************************************************** */
-unsigned long
+KRB5_DLLIMP unsigned long KRB5_CALLCONV
des_quad_cksum(in,out,length,out_count,c_seed)
- mit_des_cblock *c_seed; /* secret seed, 8 bytes */
- unsigned char *in; /* input block */
- unsigned KRB_INT32 *out; /* optional longer output */
- int out_count; /* number of iterations */
- long length; /* original length in bytes */
+ mit_des_cblock FAR *c_seed; /* secret seed, 8 bytes */
+ unsigned char FAR *in; /* input block */
+ unsigned KRB_INT32 FAR *out; /* optional longer output */
+ int out_count; /* number of iterations */
+ long length; /* original length in bytes */
{
/*
/*
* convert an arbitrary length string to a DES key
*/
-int
+KRB5_DLLIMP int KRB5_CALLCONV
des_string_to_key(str,key)
char *str;
- register mit_des_cblock *key;
+ register mit_des_cblock key;
{
register char *in_str;
register unsigned temp;