Why not simply having a
class CRC():
...
def __add__(self, somebytes):
self.update(somebytes):)
return self
Then
(CRC(b'foo') + b'bar').digest()
Why not simply having a
class CRC():
...
def __add__(self, somebytes):
self.update(somebytes):)
return self
Then
(CRC(b'foo') + b'bar').digest()