Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Crypto.Random and forking the DRG #15

Open
ibotty opened this issue Jun 15, 2015 · 2 comments
Open

Crypto.Random and forking the DRG #15

ibotty opened this issue Jun 15, 2015 · 2 comments

Comments

@ibotty
Copy link

ibotty commented Jun 15, 2015

Am I right, that forking the DRG is just not possible with every DRG in a pure way (i.e. without mixing entropy or using new entropy)?

If so, can you comment on how you envision it to be done? Maybe provide the building blocks to "purely" (but not referential transparent) mix entropy to get two generators or (better) provide a function to do that.

I might not have thought this out though.

ibotty referenced this issue in ibotty/oauthenticated Jun 15, 2015
ibotty referenced this issue in ibotty/oauthenticated Jun 15, 2015
@vincenthz
Copy link
Member

yes, it's not currently possible for the DRG class itself to fork/split.

You could very easily have a main "seed" generator that would seed temporary generators. i.e. something like this:

let (newDRG, seedGenerator') = withDRG seedGenerator drgNew

If we had a generic 'drgNew' for the DRG class, then you'ld be able to do that for every DRG.
Would that be enough to cover your cases ?

@ibotty
Copy link
Author

ibotty commented Jun 17, 2015 via email

infinity0 added a commit to infinity0/cryptonite that referenced this issue Mar 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants