src/md5.h
changeset 6574 e1d1a12faaf7
parent 6527 f584ab6d87f8
child 6872 1c4a4a609f85
equal deleted inserted replaced
6573:7624f942237f 6574:e1d1a12faaf7
    66 
    66 
    67 typedef unsigned char md5_byte_t; /* 8-bit byte */
    67 typedef unsigned char md5_byte_t; /* 8-bit byte */
    68 typedef unsigned int md5_word_t; /* 32-bit word */
    68 typedef unsigned int md5_word_t; /* 32-bit word */
    69 
    69 
    70 /* Define the state of the MD5 Algorithm. */
    70 /* Define the state of the MD5 Algorithm. */
    71 typedef struct md5_state_s {
    71 struct md5_state_t {
    72     md5_word_t count[2]; /* message length in bits, lsw first */
    72     md5_word_t count[2]; /* message length in bits, lsw first */
    73     md5_word_t abcd[4];  /* digest buffer */
    73     md5_word_t abcd[4];  /* digest buffer */
    74     md5_byte_t buf[64];  /* accumulate block */
    74     md5_byte_t buf[64];  /* accumulate block */
    75 } md5_state_t;
    75 };
    76 
    76 
    77 /* Initialize the algorithm. */
    77 /* Initialize the algorithm. */
    78 void md5_init(md5_state_t *pms);
    78 void md5_init(md5_state_t *pms);
    79 
    79 
    80 /* Append a string to the message. */
    80 /* Append a string to the message. */