mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-23 11:42:31 +00:00
Remove unneeded cast in LMS calloc
Signed-off-by: Raef Coles <raef.coles@arm.com>
This commit is contained in:
parent
370cc43630
commit
e34e3c0e59
@ -588,7 +588,7 @@ int mbedtls_lms_generate_private_key( mbedtls_lms_private_t *ctx,
|
|||||||
goto exit;
|
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 ) );
|
sizeof( *ctx->ots_private_keys ) );
|
||||||
if( ctx->ots_private_keys == NULL )
|
if( ctx->ots_private_keys == NULL )
|
||||||
{
|
{
|
||||||
@ -596,7 +596,7 @@ int mbedtls_lms_generate_private_key( mbedtls_lms_private_t *ctx,
|
|||||||
goto exit;
|
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 ) );
|
sizeof( *ctx->ots_public_keys ) );
|
||||||
if( ctx->ots_public_keys == NULL )
|
if( ctx->ots_public_keys == NULL )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user