Group PJLIB_UTIL_MD5

group PJLIB_UTIL_MD5

Functions

void pj_md5_init(pj_md5_context *pms)

Initialize the algorithm.

Parameters:

pms – MD5 context.

void pj_md5_update(pj_md5_context *pms, const pj_uint8_t *data, unsigned nbytes)

Append a string to the message.

Parameters:
  • pms – MD5 context.

  • data – Data.

  • nbytes – Length of data.

void pj_md5_final(pj_md5_context *pms, pj_uint8_t digest[16])

Finish the message and return the digest.

Parameters:
  • pms – MD5 context.

  • digest – 16 byte digest.

struct pj_md5_context
#include <md5.h>

MD5 context.

Public Members

pj_uint32_t buf[4]

buf

pj_uint32_t bits[2]

bits

pj_uint8_t in[64]

in