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:
Fabio Utzig
2021-10-22 09:01:31 -03:00
parent 817cd2f2a6
commit a00e3024ce

View File

@ -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);