Compute the checksum of data with a given initial value. The *init* value is parsed by ``parse_iv``.
(self, data, init=None)
| 139 | return iv |
| 140 | |
| 141 | def checksum(self, data, init=None): |
| 142 | """Compute the checksum of data with a given initial value. |
| 143 | |
| 144 | The *init* value is parsed by ``parse_iv``. |
| 145 | """ |
| 146 | iv = self.parse_iv(init) |
| 147 | return self._checksum(data, iv) |
| 148 | |
| 149 | def _checksum(self, data, init): |
| 150 | raise NotImplementedError |
no test coverage detected