Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107169906
D11055.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D11055.diff
View Options
Index: head/lib/libmd/md5c.c
===================================================================
--- head/lib/libmd/md5c.c
+++ head/lib/libmd/md5c.c
@@ -127,8 +127,7 @@
/* MD5 initialization. Begins an MD5 operation, writing a new context. */
void
-MD5Init (context)
- MD5_CTX *context;
+MD5Init (MD5_CTX *context)
{
context->count[0] = context->count[1] = 0;
@@ -147,10 +146,7 @@
*/
void
-MD5Update (context, in, inputLen)
- MD5_CTX *context;
- const void *in;
- unsigned int inputLen;
+MD5Update (MD5_CTX *context, const void *in, unsigned int inputLen)
{
unsigned int i, idx, partLen;
const unsigned char *input = in;
@@ -190,8 +186,7 @@
*/
void
-MD5Pad (context)
- MD5_CTX *context;
+MD5Pad (MD5_CTX *context)
{
unsigned char bits[8];
unsigned int idx, padLen;
@@ -214,9 +209,7 @@
*/
void
-MD5Final (digest, context)
- unsigned char digest[16];
- MD5_CTX *context;
+MD5Final (unsigned char digest[16], MD5_CTX *context)
{
/* Do padding. */
MD5Pad (context);
@@ -231,9 +224,7 @@
/* MD5 basic transformation. Transforms state based on block. */
static void
-MD5Transform (state, block)
- u_int32_t state[4];
- const unsigned char block[64];
+MD5Transform (u_int32_t state[4], const unsigned char block[64])
{
u_int32_t a = state[0], b = state[1], c = state[2], d = state[3], x[16];
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 12, 4:49 AM (21 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15761342
Default Alt Text
D11055.diff (1 KB)
Attached To
Mode
D11055: ANSIfy md5 functions
Attached
Detach File
Event Timeline
Log In to Comment