forked from Imagelibrary/rtems
Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
57 lines
2.0 KiB
C
57 lines
2.0 KiB
C
/*
|
|
** ********************************************************************
|
|
** 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. **
|
|
** ********************************************************************
|
|
*/
|
|
|
|
#include <stdint.h>
|
|
|
|
/* MDstruct is the data structure for a message digest computation.
|
|
*/
|
|
typedef struct {
|
|
uint32_t buffer[4]; /* Holds 4-word result of MD computation */
|
|
uint8_t count[8]; /* Number of bits processed so far */
|
|
uint32_t done; /* Nonzero means MD computation finished */
|
|
} MD4_CTX;
|
|
|
|
/* MD4Init(MD4_CTX *)
|
|
** Initialize the MD4_CTX prepatory to doing a message digest
|
|
** computation.
|
|
*/
|
|
extern void MD4Init(MD4_CTX *MD);
|
|
|
|
/* MD4Update(MD,X,count)
|
|
** Input: 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, MD4Update 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 MD4Update with a
|
|
** count less than 512. Zero is OK for a count.
|
|
*/
|
|
extern void MD4Update(MD4_CTX *MD, unsigned char *X, unsigned int count);
|
|
|
|
/* MD4Print(MD)
|
|
** 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 MD4Print(MD4_CTX *);
|
|
|
|
/* MD4Final(buf, MD)
|
|
** Returns message digest from MD and terminates the message
|
|
** digest computation.
|
|
*/
|
|
extern void MD4Final(unsigned char *, MD4_CTX *);
|
|
|
|
/*
|
|
** End of md4.h
|
|
****************************(cut)***********************************/
|