commit | 3982040232bfa983439d28edb831291a8121f4d0 | [log] [tgz] |
---|---|---|
author | Raef Coles <raef.coles@arm.com> | Fri Sep 23 09:12:54 2022 +0100 |
committer | Raef Coles <raef.coles@arm.com> | Thu Oct 13 14:28:55 2022 +0100 |
tree | 02e12372ed0b797296c6075173dbcc229b461772 | |
parent | 98d6e2205090e26f20f56f7839edb153c54cdc81 [diff] [blame] |
Fix LMS zeroization using wrong sizeof type Causing a buffer write out of bounds Signed-off-by: Raef Coles <raef.coles@arm.com>
diff --git a/library/lms.c b/library/lms.c index 7ec2b10..653530c 100644 --- a/library/lms.c +++ b/library/lms.c
@@ -525,7 +525,7 @@ mbedtls_free( ctx->ots_public_keys ); } - mbedtls_platform_zeroize( ctx, sizeof( mbedtls_lms_public_t ) ); + mbedtls_platform_zeroize( ctx, sizeof( mbedtls_lms_private_t ) ); }