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