1
0
Fork 0
mirror of https://github.com/yuzu-emu/mbedtls.git synced 2025-03-08 10:09:54 +00:00

hmac_drbg.c: Rename hmac_drbg_reseed_internal->hmac_drbg_reseed_core

This commit is contained in:
Hanno Becker 2019-08-27 09:21:44 +01:00
parent 213ae2c7a8
commit b3a06e66d8

View file

@ -148,7 +148,7 @@ int mbedtls_hmac_drbg_seed_buf( mbedtls_hmac_drbg_context *ctx,
return( 0 ); return( 0 );
} }
static int hmac_drbg_reseed_internal( mbedtls_hmac_drbg_context *ctx, static int hmac_drbg_reseed_core( mbedtls_hmac_drbg_context *ctx,
const unsigned char *additional, size_t len, const unsigned char *additional, size_t len,
int use_nonce ) int use_nonce )
{ {
@ -230,7 +230,8 @@ exit:
int mbedtls_hmac_drbg_reseed( mbedtls_hmac_drbg_context *ctx, int mbedtls_hmac_drbg_reseed( mbedtls_hmac_drbg_context *ctx,
const unsigned char *additional, size_t len ) const unsigned char *additional, size_t len )
{ {
return( hmac_drbg_reseed_internal( ctx, additional, len, 0 ) ); return( hmac_drbg_reseed_core( ctx, additional, len,
0 /* no nonce */ ) );
} }
/* /*
@ -276,7 +277,7 @@ int mbedtls_hmac_drbg_seed( mbedtls_hmac_drbg_context *ctx,
md_size <= 28 ? 24 : /* 224-bits hash -> 192 bits */ md_size <= 28 ? 24 : /* 224-bits hash -> 192 bits */
32; /* better (256+) -> 256 bits */ 32; /* better (256+) -> 256 bits */
if( ( ret = hmac_drbg_reseed_internal( ctx, custom, len, if( ( ret = hmac_drbg_reseed_core( ctx, custom, len,
1 /* add nonce */ ) ) != 0 ) 1 /* add nonce */ ) ) != 0 )
{ {
return( ret ); return( ret );