MCPcopy Create free account
hub / github.com/F-Stack/f-stack / Encode

Function Encode

freebsd/kern/md5c.c:59–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 */
58
59static void
60Encode (unsigned char *output, u_int32_t *input, unsigned int len)
61{
62 unsigned int i;
63 uint32_t ip;
64
65 for (i = 0; i < len / 4; i++) {
66 ip = input[i];
67 *output++ = ip;
68 *output++ = ip >> 8;
69 *output++ = ip >> 16;
70 *output++ = ip >> 24;
71 }
72}
73
74/*
75 * Decodes input (unsigned char) into output (u_int32_t). Assumes len is

Callers 4

MD5PadFunction · 0.70
MD5FinalFunction · 0.70
SHA2FinalFunction · 0.50
SHA1FinalFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected