• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/staging/rt2860/common/

Lines Matching defs:pMD5_CTX

73     pMD5_CTX        Pointer to Md5_CTX_STRUC
82 void MD5_Init(struct rt_md5_ctx_struc *pMD5_CTX)
84 NdisMoveMemory(pMD5_CTX->HashValue, MD5_DefaultHashValue,
86 NdisZeroMemory(pMD5_CTX->Block, MD5_BLOCK_SIZE);
87 pMD5_CTX->BlockLen = 0;
88 pMD5_CTX->MessageLen = 0;
97 pMD5_CTX Pointer to Md5_CTX_STRUC
106 void MD5_Hash(struct rt_md5_ctx_struc *pMD5_CTX)
113 NdisMoveMemory(X, pMD5_CTX->Block, MD5_BLOCK_SIZE);
120 a = pMD5_CTX->HashValue[0];
121 b = pMD5_CTX->HashValue[1];
122 c = pMD5_CTX->HashValue[2];
123 d = pMD5_CTX->HashValue[3];
214 pMD5_CTX->HashValue[0] += a;
215 pMD5_CTX->HashValue[1] += b;
216 pMD5_CTX->HashValue[2] += c;
217 pMD5_CTX->HashValue[3] += d;
219 NdisZeroMemory(pMD5_CTX->Block, MD5_BLOCK_SIZE);
220 pMD5_CTX->BlockLen = 0;
230 pMD5_CTX Pointer to struct rt_md5_ctx_struc
241 void MD5_Append(struct rt_md5_ctx_struc *pMD5_CTX,
249 if ((pMD5_CTX->BlockLen + diffLen) < MD5_BLOCK_SIZE) {
250 NdisMoveMemory(pMD5_CTX->Block + pMD5_CTX->BlockLen,
252 pMD5_CTX->BlockLen += diffLen;
255 NdisMoveMemory(pMD5_CTX->Block + pMD5_CTX->BlockLen,
257 MD5_BLOCK_SIZE - pMD5_CTX->BlockLen);
258 appendLen += (MD5_BLOCK_SIZE - pMD5_CTX->BlockLen);
259 pMD5_CTX->BlockLen = MD5_BLOCK_SIZE;
260 MD5_Hash(pMD5_CTX);
263 pMD5_CTX->MessageLen += MessageLen;
274 pMD5_CTX Pointer to struct rt_md5_ctx_struc
283 void MD5_End(struct rt_md5_ctx_struc *pMD5_CTX, u8 DigestMessage[])
289 NdisFillMemory(pMD5_CTX->Block + pMD5_CTX->BlockLen, 1, 0x80);
292 if (pMD5_CTX->BlockLen > 55)
293 MD5_Hash(pMD5_CTX);
297 message_length_bits = pMD5_CTX->MessageLen * 8;
299 NdisMoveMemory(&pMD5_CTX->Block[56], &message_length_bits, 8);
300 MD5_Hash(pMD5_CTX);
304 pMD5_CTX->HashValue[index] =
305 cpu2le32(pMD5_CTX->HashValue[index]);
307 NdisMoveMemory(DigestMessage, pMD5_CTX->HashValue, MD5_DIGEST_SIZE);