From e1fbf0f6a7f1a94f6bf4663d4cf3308f83301eea Mon Sep 17 00:00:00 2001 From: ccli8 Date: Fri, 15 Dec 2017 10:38:57 +0800 Subject: [PATCH] [NUC472/M487] Add comment for crypto_zeroize --- targets/TARGET_NUVOTON/TARGET_M480/crypto/crypto-misc.h | 2 ++ targets/TARGET_NUVOTON/TARGET_NUC472/crypto/crypto-misc.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/targets/TARGET_NUVOTON/TARGET_M480/crypto/crypto-misc.h b/targets/TARGET_NUVOTON/TARGET_M480/crypto/crypto-misc.h index 1527a59c6d..4bee4f644c 100644 --- a/targets/TARGET_NUVOTON/TARGET_M480/crypto/crypto-misc.h +++ b/targets/TARGET_NUVOTON/TARGET_M480/crypto/crypto-misc.h @@ -35,6 +35,8 @@ extern volatile int g_AES_done; void crypto_init(void); void crypto_uninit(void); +/* Clear buffer to zero + * Implementation that should never be optimized out by the compiler */ void crypto_zeroize(void *v, size_t n); /* Acquire/release ownership of AES H/W */ diff --git a/targets/TARGET_NUVOTON/TARGET_NUC472/crypto/crypto-misc.h b/targets/TARGET_NUVOTON/TARGET_NUC472/crypto/crypto-misc.h index 1527a59c6d..4bee4f644c 100644 --- a/targets/TARGET_NUVOTON/TARGET_NUC472/crypto/crypto-misc.h +++ b/targets/TARGET_NUVOTON/TARGET_NUC472/crypto/crypto-misc.h @@ -35,6 +35,8 @@ extern volatile int g_AES_done; void crypto_init(void); void crypto_uninit(void); +/* Clear buffer to zero + * Implementation that should never be optimized out by the compiler */ void crypto_zeroize(void *v, size_t n); /* Acquire/release ownership of AES H/W */