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

OSError: only one active hash operation is permitted at a time #6

Open
nznobody opened this issue Jan 10, 2022 · 0 comments
Open

OSError: only one active hash operation is permitted at a time #6

nznobody opened this issue Jan 10, 2022 · 0 comments

Comments

@nznobody
Copy link

nznobody commented Jan 10, 2022

def _check_hash(self, x, y) should calculate sha one at a time to support certain implementations (Pycom MicroPython 1.20.3.b4 [v1.11-95ab8f63] on 2021-09-10; FiPy with ESP32)

def _check_hash(self, x, y):

Suggest simply doing them one after another:

        x_hash = sha(x.encode())
        x = x_hash.digest()
        y_hash = sha(y.encode())
        y = y_hash.digest()
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