NetHack Proxy Reference Manual |
---|
Message DigestsMessage Digests — Computing message digests according to RFC 1321 (MD5) |
#include <nhproxy/nhproxy.h> nhproxy_md5_state_t; typedef nhproxy_md5_byte_t; typedef nhproxy_md5_word_t; void nhproxy_md5_init (nhproxy_md5_state_t *pms); void nhproxy_md5_append (nhproxy_md5_state_t *pms, const nhproxy_md5_byte_t *data, int nbytes); void nhproxy_md5_finish (nhproxy_md5_state_t *pms, nhproxy_md5_byte_t digest[16]);
typedef struct { nhproxy_md5_word_t count[2]; /* message length in bits, lsw first */ nhproxy_md5_word_t abcd[4]; /* digest buffer */ nhproxy_md5_byte_t buf[64]; /* accumulate block */ } nhproxy_md5_state_t;
void nhproxy_md5_append (nhproxy_md5_state_t *pms, const nhproxy_md5_byte_t *data, int nbytes);
pms : | |
data : | |
nbytes : |
void nhproxy_md5_finish (nhproxy_md5_state_t *pms, nhproxy_md5_byte_t digest[16]);
pms : | |
digest : |
<< Low Level Functionality | Glyph Use >> |