MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / Decode

Function Decode

md5.c:303–310  ·  view source on GitHub ↗

Decodes input (unsigned char) into output (UINT4). Assumes len is a multiple of 4. */

Source from the content-addressed store, hash-verified

301 a multiple of 4.
302 */
303static void Decode (UINT4 *output, const unsigned char *input, unsigned int len)
304{
305 unsigned int i, j;
306
307 for (i = 0, j = 0; j < len; i++, j += 4)
308 output[i] = ((UINT4)input[j]) | (((UINT4)input[j+1]) << 8) |
309 (((UINT4)input[j+2]) << 16) | (((UINT4)input[j+3]) << 24);
310}
311
312/* Note: Replace "for loop" with standard memcpy if possible.
313 */

Callers 1

MD5TransformFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected