MCPcopy Create free account
hub / github.com/SNAS/openbmp / decode

Method decode

Server/src/md5.cpp:445–452  ·  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

443// Decodes input (unsigned char) into output (UINT4). Assumes len is
444// a multiple of 4.
445void MD5::decode (uint4 *output, uint1 *input, uint4 len){
446
447 unsigned int i, j;
448
449 for (i = 0, j = 0; j < len; i++, j += 4)
450 output[i] = ((uint4)input[j]) | (((uint4)input[j+1]) << 8) |
451 (((uint4)input[j+2]) << 16) | (((uint4)input[j+3]) << 24);
452}
453
454
455

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected