mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 18:05:40 +01:00
Fixed seed variable concatenation pointer.
Signed-off-by: ENT\stroej1 <john.stroebel@medtronic.com>
This commit is contained in:
parent
3c537fedfd
commit
4b91986a76
@ -394,7 +394,7 @@ static int mbedtls_ctr_drbg_reseed_internal( mbedtls_ctr_drbg_context *ctx,
|
|||||||
/* Gather entropy for a nonce if requested. */
|
/* Gather entropy for a nonce if requested. */
|
||||||
if( nonce_len != 0 )
|
if( nonce_len != 0 )
|
||||||
{
|
{
|
||||||
if( 0 != ctx->f_entropy( ctx->p_entropy, seed, nonce_len ) )
|
if( 0 != ctx->f_entropy( ctx->p_entropy, seed + seedlen, nonce_len ) )
|
||||||
{
|
{
|
||||||
return( MBEDTLS_ERR_CTR_DRBG_ENTROPY_SOURCE_FAILED );
|
return( MBEDTLS_ERR_CTR_DRBG_ENTROPY_SOURCE_FAILED );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user