Changeset View
Changeset View
Standalone View
Standalone View
head/lib/libmd/md4c.c
Show First 20 Lines • Show All 177 Lines • ▼ Show 20 Lines | MD4_CTX *context; /* context */ | ||||
/* Do padding */ | /* Do padding */ | ||||
MD4Pad (context); | MD4Pad (context); | ||||
/* Store state in digest */ | /* Store state in digest */ | ||||
Encode (digest, context->state, 16); | Encode (digest, context->state, 16); | ||||
/* Zeroize sensitive information. | /* Zeroize sensitive information. | ||||
*/ | */ | ||||
memset ((POINTER)context, 0, sizeof (*context)); | explicit_bzero(context, sizeof(*context)); | ||||
} | } | ||||
/* MD4 basic transformation. Transforms state based on block. | /* MD4 basic transformation. Transforms state based on block. | ||||
*/ | */ | ||||
static void MD4Transform (state, block) | static void MD4Transform (state, block) | ||||
UINT4 state[4]; | UINT4 state[4]; | ||||
const unsigned char block[64]; | const unsigned char block[64]; | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 116 Lines • Show Last 20 Lines |