Use plain memset() for freshly allocated objects
This commits reverts to plain memset() for cases like:
some_type foo;
memset( &foo, 0, sizeof( foo ) );
(Sometimes there is code between declaration in memset(), but it doesn't
matter as long as it doesn't touch foo.)
The reasoning is the same as in the previous commit: the stack shouldn't
contain sensitive data as we carefully wipe it after use.
diff --git a/library/ccm.c b/library/ccm.c
index 9258082..f6a751c 100644
--- a/library/ccm.c
+++ b/library/ccm.c
@@ -211,7 +211,7 @@
/* Start CBC-MAC with first block */
- mbedtls_platform_memset( y, 0, 16 );
+ memset( y, 0, 16 );
UPDATE_CBC_MAC;
/*