From 1900d48810d3cae5bd00e8b43b33f8a5232a84f2 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 28 Jun 2001 21:37:01 +0000 Subject: Oops. I forgot to check this in... -Erik --- include/crypt.h | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) (limited to 'include') diff --git a/include/crypt.h b/include/crypt.h index c589e80d1..af9aaca7a 100644 --- a/include/crypt.h +++ b/include/crypt.h @@ -41,26 +41,17 @@ extern void encrypt (char *__block, int __edflag); /* Reentrant versions of the functions above. The additional argument points to a structure where the results are placed in. */ +struct block { + unsigned char b_data[64]; +}; struct crypt_data { - /* The C and D arrays used to calculate the key schedule. */ - char C[28]; - char D[28]; - /* The key schedule. Generated from the key. */ - char KS[16][48]; - /* The E bit-selection table. */ - char E[48]; - /* The current block, divided into 2 halves. */ - char L[32], R[32]; - char tempL[32]; - char f[32]; - /* The combination of the key and the input, before selection. */ - char preS[48]; - char block[66]; - char iobuf[16]; - /* Some stuff used by the md5 routines */ + /* Stuff used by the des based routines */ + struct block key; + /* Stuff used by the md5 based routines */ char *p; const char *sp,*ep; + char KS[16][48]; }; extern char *crypt_r (const char *__key, const char *__salt, -- cgit v1.2.3