mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-27 01:32:48 +01:00
linuxkm/module_hooks.c: in IntelRDseed64_r(), burn buf after each use to protect against info leakage.
This commit is contained in:
@@ -323,6 +323,7 @@ static WC_INLINE int IntelRDseed64_r(word64* rnd)
|
||||
WC_SANITIZE_DISABLE();
|
||||
*rnd ^= buf; /* deliberately retain any garbage passed in the dest buffer. */
|
||||
WC_SANITIZE_ENABLE();
|
||||
buf = 0;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user