1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Rename md process functions with _internal_

This commit is contained in:
Andres Amaya Garcia
2017-06-28 10:36:39 +01:00
parent 614c689e05
commit cccfe08530
14 changed files with 54 additions and 54 deletions

View File

@ -116,7 +116,7 @@ int mbedtls_md2_starts_ext( mbedtls_md2_context *ctx )
}
#if !defined(MBEDTLS_MD2_PROCESS_ALT)
int mbedtls_md2_process_ext( mbedtls_md2_context *ctx )
int mbedtls_internal_md2_process( mbedtls_md2_context *ctx )
{
int i, j;
unsigned char t = 0;
@ -179,7 +179,7 @@ int mbedtls_md2_update_ext( mbedtls_md2_context *ctx,
if( ctx->left == 16 )
{
ctx->left = 0;
if( ( ret = mbedtls_md2_process_ext( ctx ) ) != 0 )
if( ( ret = mbedtls_internal_md2_process( ctx ) ) != 0 )
return( ret );
}
}
@ -202,11 +202,11 @@ int mbedtls_md2_finish_ext( mbedtls_md2_context *ctx,
for( i = ctx->left; i < 16; i++ )
ctx->buffer[i] = x;
if( ( ret = mbedtls_md2_process_ext( ctx ) ) != 0 )
if( ( ret = mbedtls_internal_md2_process( ctx ) ) != 0 )
return( ret );
memcpy( ctx->buffer, ctx->cksum, 16 );
if( ( ret = mbedtls_md2_process_ext( ctx ) ) != 0 )
if( ( ret = mbedtls_internal_md2_process( ctx ) ) != 0 )
return( ret );
memcpy( output, ctx->state, 16 );