mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 02:27:26 -07:00
mbedtls: memset, cf 996ed197fb
This commit is contained in:
parent
07a62da2d9
commit
ec8ec893c6
1 changed files with 2 additions and 2 deletions
|
@ -62,13 +62,13 @@
|
|||
* mbedtls_platform_zeroize() to use a suitable implementation for their
|
||||
* platform and needs.
|
||||
*/
|
||||
static void *(* const volatile memset_func)(void *, int, size_t) = memset;
|
||||
//static void *(* const volatile memset_func)(void *, int, size_t) = memset;
|
||||
|
||||
void mbedtls_platform_zeroize(void *buf, size_t len) {
|
||||
MBEDTLS_INTERNAL_VALIDATE(len == 0 || buf != NULL);
|
||||
|
||||
if (len > 0)
|
||||
memset_func(buf, 0, len);
|
||||
memset(buf, 0, len);
|
||||
}
|
||||
#endif /* MBEDTLS_PLATFORM_ZEROIZE_ALT */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue