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
{{ message }}
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.
cryptonite_sysrand_init is not called anywhere afaict and it looks scarily wrong (out arg buf is unused, it just hashes the time and tosses the result).
The text was updated successfully, but these errors were encountered:
It's not finished, and currently unused; it's supposed to provide to a non-constant memory initialization for the sysran buffer (which would then be xor-combined to cpu entropy generator), based on a "random" set of properties and system related identifications/state.
It's here to create """some entropy""" in case of a catastrophic failure of cpu's based rng (says someone patch the microcode to return 0 or something constant/guessable).
In a everything-is-working-as-usual scenario, I don't think it's very useful but I can't think of any downside (except performance); i.e. worst case, everything that is used is guessable, and the xor operation provides no additional security.
cryptonite_sysrand_init is not called anywhere afaict and it looks scarily wrong (out arg
buf
is unused, it just hashes the time and tosses the result).The text was updated successfully, but these errors were encountered: