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

AttributeErrors in SHA256 class functions when seed=None #55

Open
ackaplan11 opened this issue Apr 5, 2021 · 0 comments
Open

AttributeErrors in SHA256 class functions when seed=None #55

ackaplan11 opened this issue Apr 5, 2021 · 0 comments

Comments

@ackaplan11
Copy link

When you create a new SHA256 object using the constructor without parameters
sha256 = SHA256(),

the following functions will return AttributeErrors
sha256.jumpahead() --> AttributeError: 'NoneType' object has no attribute 'update'
sha256.next() --> 'AttributeError: NoneType' object has no attribute 'update'
sha256.random() --> AttributeError: 'NoneType' object has no attribute 'digest'
sha256.randint_trunc() --> AttributeError: 'NoneType' object has no attribute 'digest' -- (Depricated)
sha256.getrandbits() --> AttributeError: 'NoneType' object has no attribute 'digest'
sha256.randbelow_from_randbits() --> AttributeError: 'NoneType' object has no attribute 'digest'
sha256.randint() --> AttributeError: 'NoneType' object has no attribute 'digest'

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

No branches or pull requests

1 participant