Please note the following legal notice. This function is derived from the RSA Data Security, Inc. MD5 Message-Digest Algorithm Encodes input. Assumes len is xple of 4 Returns: None
| Return Type | Function name | Arguments |
|---|---|---|
| void | _md5_encode | (unsigned char*,uint32_t*,uint32_t,) |
Declared and defined in file: hzCodec.cpp
Function Logic:
Function body:
void _md5_encode (unsigned char* out)uint32_t* in, uint32_t len,
{
// Category: Codec
//
// Please note the following legal notice. This function is derived from the RSA Data Security, Inc. MD5 Message-Digest Algorithm
//
// Encodes input. Assumes len is xple of 4
//
// Arguments: 1) out Pointer into output buffer
// 2) in Pointer into input buffer
// 3) len Buffer length
//
// Returns: None
_hzfunc(__func__) ;
uint32_t x ; // Interim value
uint32_t n ; // Counter
for (n = 0; n < len ; n++)
{
x = *in++ ;
*out++ = x ;
*out++ = x >> 8;
*out++ = x >> 16;
*out++ = x >> 24;
}
}