![]() | ![]() | ![]() | UCL Common Library Reference | ![]() |
---|
#include <md5.h> MD5_CTX;void MD5Init (MD5_CTX *context);void MD5Update (MD5_CTX *context, unsignedchar *input, unsignedint inputLen);void MD5Final (unsignedchar digest[16], MD5_CTX *context);
typedef struct { uint32_t state[4]; /* state (ABCD) */ uint32_t count[2]; /* number of bits, modulo 2^64 (lsb first) */ unsigned char buffer[64]; /* input buffer */ } MD5_CTX;
void MD5Init (MD5_CTX *context);
Initializes MD5 context for the start of message digest computation.
context : | MD5 context to be initialized. |
void MD5Update (MD5_CTX *context, unsignedchar *input, unsignedint inputLen);
MD5 block update operation. Continues an MD5 message-digest operation, processing another message block, and updating the context.
context : | MD5 context to be updated. |
input : | pointer to data to be fed into MD5 algorithm. |
inputLen : | size of |
void MD5Final (unsignedchar digest[16], MD5_CTX *context);
Ends an MD5 message-digest operation, writing the the message
digest and zeroing the context. The context must be initialized
with MD5Init()
before being used for other MD5 checksum calculations.
digest : | 16-byte buffer to write MD5 checksum. |
context : | MD5 context to be finalized. |
<<< hmac | net_udp >>> |