From e34e3c0e599ef9551e675042b797562f3b43269c Mon Sep 17 00:00:00 2001 From: Raef Coles Date: Mon, 10 Oct 2022 11:11:30 +0100 Subject: [PATCH] Remove unneeded cast in LMS calloc Signed-off-by: Raef Coles --- library/lms.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/lms.c b/library/lms.c index e7ae5081c..adba19582 100644 --- a/library/lms.c +++ b/library/lms.c @@ -588,7 +588,7 @@ int mbedtls_lms_generate_private_key( mbedtls_lms_private_t *ctx, goto exit; } - ctx->ots_private_keys = mbedtls_calloc( ( size_t )MERKLE_TREE_LEAF_NODE_AM(ctx->params.type), + ctx->ots_private_keys = mbedtls_calloc( MERKLE_TREE_LEAF_NODE_AM(ctx->params.type), sizeof( *ctx->ots_private_keys ) ); if( ctx->ots_private_keys == NULL ) { @@ -596,7 +596,7 @@ int mbedtls_lms_generate_private_key( mbedtls_lms_private_t *ctx, goto exit; } - ctx->ots_public_keys = mbedtls_calloc( ( size_t )MERKLE_TREE_LEAF_NODE_AM(ctx->params.type), + ctx->ots_public_keys = mbedtls_calloc( MERKLE_TREE_LEAF_NODE_AM(ctx->params.type), sizeof( *ctx->ots_public_keys ) ); if( ctx->ots_public_keys == NULL ) {