Skip to content

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

@nznobody

Description

@nznobody

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions