Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Has Steve Gibson been informed? #1

Open
sukima opened this issue Feb 9, 2018 · 5 comments
Open

Has Steve Gibson been informed? #1

sukima opened this issue Feb 9, 2018 · 5 comments

Comments

@sukima
Copy link

sukima commented Feb 9, 2018

If this is broken then the original author needs to be informed. Does Steve have anything to contribute?

@Sc00bz
Copy link
Owner

Sc00bz commented Feb 9, 2018

I informed him on February 4th and he has not gotten back. There are four things that can be changed (first two are important and the last two are bike shed):

  • Remove "cryptographically strong PRNG" from the comment block. Maybe replace that with a warning about not being a CSPRNG and not to use it for cryptography.
  • Move the return line in mash() to the end of the function:
-			return (n >>> 0) * 2.3283064365386963e-10; // 2^-32
		} else n = 0xefc8249d;
+		return (n >>> 0) * 2.3283064365386963e-10; // 2^-32

Then the only thing left is the "slight bias between every 24th random number".

@firepacket
Copy link

I informed him on February 4th and he has not gotten back. There are four things that can be changed (first two are important and the last two are bike shed):

  • Remove "cryptographically strong PRNG" from the comment block. Maybe replace that with a warning about not being a CSPRNG and not to use it for cryptography.
  • Move the return line in mash() to the end of the function:
-			return (n >>> 0) * 2.3283064365386963e-10; // 2^-32
		} else n = 0xefc8249d;
+		return (n >>> 0) * 2.3283064365386963e-10; // 2^-32

Then the only thing left is the "slight bias between every 24th random number".

So you go on to tell him how to make it cryptographically secure but then tell him to remove that description?

Is it not true that both your attacks on your algorithm require knowledge of its initial state?

@Sc00bz
Copy link
Owner

Sc00bz commented Jun 13, 2021

It is not cryptographically secure before or after the changes. Just because it once passed diehard and dieharder doesn't make it a CSPRNG. The output of the algorithm is its current state which makes it very much not cryptographically secure.

@firepacket
Copy link

firepacket commented Jun 16, 2021

Can you please take a look at my implementation here any feedback would be appreciated:
https://github.com/firepacket/CSharp-UHEPRNG-Ultra-High-Entropy-Pseudo-Random-Number-Generator-WITH-GUI/

I believe it should be cryptographically secure as long as nobody knows the starting state.

@Sc00bz
Copy link
Owner

Sc00bz commented Jun 19, 2021

as long as nobody knows the starting state.

You keep saying this thing about "knowing the starting state". I do not know the starting state. I ask for random numbers and build the state from that. This PRNG is returning its internal state. I record that data and can predict future output.

Also it is not cryptographically secure regardless of your believes because it's returning its internal state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants