mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 22:15:43 +01:00
- Fixed HMAC-MD2 by modifying md2_starts(), so that the required HMAC ipad and opad variables are not cleared!
This commit is contained in:
parent
396c52f711
commit
2fd71f0757
@ -9,6 +9,8 @@ Features
|
|||||||
and X509parse.
|
and X509parse.
|
||||||
|
|
||||||
Bug fixes
|
Bug fixes
|
||||||
|
* Fixed HMAC-MD2 by modifying md2_starts(), so that the
|
||||||
|
required HMAC ipad and opad variables are not cleared!
|
||||||
* Prevented use of long long in bignum if
|
* Prevented use of long long in bignum if
|
||||||
POLARSSL_HAVE_LONGLONG not defined (found by Giles
|
POLARSSL_HAVE_LONGLONG not defined (found by Giles
|
||||||
Bathgate).
|
Bathgate).
|
||||||
|
@ -70,7 +70,10 @@ static const unsigned char PI_SUBST[256] =
|
|||||||
*/
|
*/
|
||||||
void md2_starts( md2_context *ctx )
|
void md2_starts( md2_context *ctx )
|
||||||
{
|
{
|
||||||
memset( ctx, 0, sizeof( md2_context ) );
|
memset( ctx->cksum, 0, 16 );
|
||||||
|
memset( ctx->state, 0, 46 );
|
||||||
|
memset( ctx->buffer, 0, 16 );
|
||||||
|
ctx->left = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void md2_process( md2_context *ctx )
|
static void md2_process( md2_context *ctx )
|
||||||
|
Loading…
Reference in New Issue
Block a user