diff options
author | Guido van Rooij <guido@FreeBSD.org> | 1994-05-19 18:13:11 +0000 |
---|---|---|
committer | Guido van Rooij <guido@FreeBSD.org> | 1994-05-19 18:13:11 +0000 |
commit | 110af3d672597c7d44e65f81538e132126eaf6cd (patch) | |
tree | bea6080606e2fc5fcfcff2cb5a12f3acd66bde2e /lib/libskey/md4.h | |
parent | 9eb28b5fdec65b0956d71b947179aa8f03b93c1b (diff) | |
download | src-110af3d672597c7d44e65f81538e132126eaf6cd.tar.gz src-110af3d672597c7d44e65f81538e132126eaf6cd.zip |
1) Added s/key support .
2 Added optional excessive login logging.
3) Added login acces control on a per host/tty base.
4) See skey(1) for skey descriptions and src/usr.bin/login/README
for the logging and access control features.
-Guido
Notes
Notes:
svn path=/head/; revision=1519
Diffstat (limited to 'lib/libskey/md4.h')
-rw-r--r-- | lib/libskey/md4.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/lib/libskey/md4.h b/lib/libskey/md4.h new file mode 100644 index 000000000000..5f2e031eb551 --- /dev/null +++ b/lib/libskey/md4.h @@ -0,0 +1,50 @@ +#ifdef __STDC__ +#define __ARGS(X) X /* For ANSI C */ +#else +#define __ARGS(X) () +#endif + +/* + * + * md4.h -- Header file for implementation of MD4 Message Digest Algorithm + * Updated: 2/13/90 by Ronald L. Rivest + * (C) 1990 RSA Data Security, Inc. + * Reformatted and de-linted - 2/12/91 Phil Karn + */ + +/* MDstruct is the data structure for a message digest computation. */ +typedef struct { + unsigned long buffer[4];/* Holds 4-word result of MD computation */ + unsigned char count[8]; /* Number of bits processed so far */ + unsigned int done; /* Nonzero means MD computation finished */ +} MDstruct, *MDptr; + +/* MDbegin(MD) + * Input: MD -- an MDptr + * Initialize the MDstruct prepatory to doing a message digest computation. + */ +extern void MDbegin __ARGS((MDptr MDp)); + +/* MDupdate(MD,X,count) + * Input: MD -- an MDptr + * X -- a pointer to an array of unsigned characters. + * count -- the number of bits of X to use (an unsigned int). + * Updates MD using the first ``count'' bits of X. + * The array pointed to by X is not modified. + * If count is not a multiple of 8, MDupdate uses high bits of last byte. + * This is the basic input routine for a user. + * The routine terminates the MD computation when count < 512, so + * every MD computation should end with one call to MDupdate with a + * count less than 512. Zero is OK for a count. + */ +extern void MDupdate __ARGS((MDptr MDp,unsigned char *X,unsigned int count)); + +/* MDprint(MD) + * Input: MD -- an MDptr + * Prints message digest buffer MD as 32 hexadecimal digits. + * Order is from low-order byte of buffer[0] to high-order byte of buffer[3]. + * Each byte is printed with high-order hexadecimal digit first. + */ +extern void MDprint __ARGS((MDptr MDp)); + +/* End of md4.h */ |