summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-06-28 21:37:01 +0000
committerEric Andersen <andersen@codepoet.org>2001-06-28 21:37:01 +0000
commit1900d48810d3cae5bd00e8b43b33f8a5232a84f2 (patch)
treea804174d7d5372a607de6e167ce83f1c0bb5f7b6
parentaa4ceea1dab667919d148437d303b6014f070ed9 (diff)
Oops. I forgot to check this in...
-Erik
-rw-r--r--include/crypt.h23
1 files changed, 7 insertions, 16 deletions
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,