Change LMS and LMOTS init functions to use memset

Instead of zeroize

Signed-off-by: Raef Coles <raef.coles@arm.com>
This commit is contained in:
Raef Coles 2022-10-10 15:09:33 +01:00
parent 9b0daf60fb
commit fbd60ec775
No known key found for this signature in database
GPG key ID: 1AAF1B43DF2086F4
2 changed files with 4 additions and 4 deletions

View file

@ -395,7 +395,7 @@ int mbedtls_lms_error_from_psa( psa_status_t status )
void mbedtls_lmots_public_init( mbedtls_lmots_public_t *ctx )
{
mbedtls_platform_zeroize( ctx, sizeof( *ctx ) ) ;
memset( ctx, 0, sizeof( *ctx ) ) ;
}
void mbedtls_lmots_public_free( mbedtls_lmots_public_t *ctx )
@ -581,7 +581,7 @@ int mbedtls_lmots_verify( const mbedtls_lmots_public_t *ctx,
void mbedtls_lmots_private_init( mbedtls_lmots_private_t *ctx )
{
mbedtls_platform_zeroize( ctx, sizeof( *ctx ) ) ;
memset( ctx, 0, sizeof( *ctx ) ) ;
}
void mbedtls_lmots_private_free( mbedtls_lmots_private_t *ctx )

View file

@ -221,7 +221,7 @@ exit:
void mbedtls_lms_public_init( mbedtls_lms_public_t *ctx )
{
mbedtls_platform_zeroize( ctx, sizeof( *ctx ) ) ;
memset( ctx, 0, sizeof( *ctx ) ) ;
}
void mbedtls_lms_public_free( mbedtls_lms_public_t *ctx )
@ -526,7 +526,7 @@ static int get_merkle_path( mbedtls_lms_private_t *ctx,
void mbedtls_lms_private_init( mbedtls_lms_private_t *ctx )
{
mbedtls_platform_zeroize( ctx, sizeof( *ctx ) ) ;
memset( ctx, 0, sizeof( *ctx ) ) ;
}
void mbedtls_lms_private_free( mbedtls_lms_private_t *ctx )