Replies: 2 comments
-
It also turns out you can add entropy to the random bits inbetween squeezes.... (soak) (initial entropy)
it is also nice if the internal state can be kept inbetween stages... a simple PoW algorithm can soak the data, clone the entropy states, and then update with just a nonce and test the result without re-soaking the data. |
Beta Was this translation helpful? Give feedback.
-
Sorry for late response, took some time to research question.
Starting from now, shake/cshake/blake3/k12/m14 and all xof variants of SP800-185 functions support streaming API:
We've implemented KeccakPRG (see sha3-addons.ts) for these purposes,
All hash functions have clone API for state restoration via '.clone' method, there is also unsafe
|
Beta Was this translation helpful? Give feedback.
-
Although this is probably something I'll have to do myself, I use the K12 algorithm as a stream of bits; and as far as I can tell the existing API you've implemented only returns one fixed size result?
One of the features of the sponge function is you can just keeping wringing out the same sponge for more and more bits.
https://github.com/d3x0r/srg (salty-random-generator)
Beta Was this translation helpful? Give feedback.
All reactions