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

drbg: strength is initialized before check? #13

Open
kriskwiatkowski opened this issue Feb 16, 2019 · 0 comments
Open

drbg: strength is initialized before check? #13

kriskwiatkowski opened this issue Feb 16, 2019 · 0 comments

Comments

@kriskwiatkowski
Copy link
Owner

Seems like a bug:

	// Minimum entropy input (SP800-90A, 10.2.1)
	if len(entropy) < int(c.strength/8) {
		return false
	}

	// Security strength for AES-256 as per SP800-57, 5.6.1
	c.strength = 256
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

1 participant