forked from wolfSSL/wolfssl
Fix comment that applies to fp_forcezero
Fix comment mentioning the use of `ForceZero` besides `fp_clear`, which uses `XMEMSET`, and puts it above `fp_forcezero` where it should belong. Signed-off-by: Fabio Utzig <utzig@apache.org>
This commit is contained in:
@ -426,7 +426,8 @@ typedef fp_int mp_int;
|
|||||||
/* initialize [or zero] an fp int */
|
/* initialize [or zero] an fp int */
|
||||||
void fp_init(fp_int *a);
|
void fp_init(fp_int *a);
|
||||||
MP_API void fp_zero(fp_int *a);
|
MP_API void fp_zero(fp_int *a);
|
||||||
MP_API void fp_clear(fp_int *a); /* uses ForceZero to clear sensitive memory */
|
MP_API void fp_clear(fp_int *a);
|
||||||
|
/* uses ForceZero to clear sensitive memory */
|
||||||
MP_API void fp_forcezero (fp_int * a);
|
MP_API void fp_forcezero (fp_int * a);
|
||||||
MP_API void fp_free(fp_int* a);
|
MP_API void fp_free(fp_int* a);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user