You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In several places throughout the codebase, memset is being used instead of OQS_MEM_CLEANSE. When the data being reset is secret, this is undesirable, as a compiler may optimize out the memset call.
In several places throughout the codebase,
memset
is being used instead ofOQS_MEM_CLEANSE
. When the data being reset is secret, this is undesirable, as a compiler may optimize out thememset
call.Here are a few examples:
liboqs/src/sig_stfl/xmss/external/xmss_core_fast.c
Lines 952 to 956 in 4cc8884
liboqs/src/sig_stfl/xmss/external/xmss_core_fast.c
Lines 679 to 683 in 4cc8884
liboqs/src/sig_stfl/lms/external/hss_sign.c
Lines 715 to 717 in 4cc8884
All of these examples are from the LMS / XMSS code, but this issue is not limited to that portion of the library.
Reported by @trailofbits in Week 1 of their audit of
liboqs
.The text was updated successfully, but these errors were encountered: