Add XXX_PROCESS_ALT mecchanism

This commit is contained in:
Manuel Pégourié-Gonnard 2015-03-31 18:32:50 +02:00
parent 26c9f90cae
commit 427b672551
9 changed files with 52 additions and 4 deletions

View file

@ -107,6 +107,7 @@ void md5_starts( md5_context *ctx )
ctx->state[3] = 0x10325476;
}
#if !defined(POLARSSL_MD5_PROCESS_ALT)
void md5_process( md5_context *ctx, const unsigned char data[64] )
{
uint32_t X[16], A, B, C, D;
@ -229,6 +230,7 @@ void md5_process( md5_context *ctx, const unsigned char data[64] )
ctx->state[2] += C;
ctx->state[3] += D;
}
#endif /* !POLARSSL_MD5_PROCESS_ALT */
/*
* MD5 process buffer