From 4b91986a763546b32a370f7840599cb351cbad2d Mon Sep 17 00:00:00 2001 From: "ENT\\stroej1" Date: Wed, 23 Dec 2020 17:28:33 -0600 Subject: [PATCH] Fixed seed variable concatenation pointer. Signed-off-by: ENT\stroej1 --- library/ctr_drbg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/ctr_drbg.c b/library/ctr_drbg.c index 023aac51a..0a46967f6 100644 --- a/library/ctr_drbg.c +++ b/library/ctr_drbg.c @@ -394,7 +394,7 @@ static int mbedtls_ctr_drbg_reseed_internal( mbedtls_ctr_drbg_context *ctx, /* Gather entropy for a nonce if requested. */ 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 ); }