mirror of
https://github.com/curl/curl.git
synced 2026-07-23 13:47:16 +03:00
md4: replace bcopy usage with memcpy
This commit is contained in:
parent
52beeb2c9f
commit
45456135d5
1 changed files with 2 additions and 2 deletions
|
|
@ -122,7 +122,7 @@ static void MD4Update(MD4_CTX *context, const unsigned char *input,
|
|||
/* Transform as many times as possible.
|
||||
*/
|
||||
if (inputLen >= partLen) {
|
||||
bcopy(input, &context->buffer[bufindex], partLen);
|
||||
memcpy((void *)&context->buffer[bufindex], (void *)input, partLen);
|
||||
MD4Transform (context->state, context->buffer);
|
||||
|
||||
for (i = partLen; i + 63 < inputLen; i += 64)
|
||||
|
|
@ -134,7 +134,7 @@ static void MD4Update(MD4_CTX *context, const unsigned char *input,
|
|||
i = 0;
|
||||
|
||||
/* Buffer remaining input */
|
||||
bcopy(&input[i], &context->buffer[bufindex], inputLen-i);
|
||||
memcpy((void *)&context->buffer[bufindex], (void *)&input[i], inputLen-i);
|
||||
}
|
||||
|
||||
/* MD4 padding. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue