(self, id, data)
| 193 | pass |
| 194 | |
| 195 | def assert_id(self, id, data): |
| 196 | if id and id != Manifest.MANIFEST_ID: |
| 197 | id_computed = self.id_hash(data) |
| 198 | if not hmac.compare_digest(id_computed, id): |
| 199 | raise IntegrityError("Chunk %s: id verification failed" % bin_to_hex(id)) |
| 200 | |
| 201 | def assert_type(self, type_byte, id=None): |
| 202 | if type_byte not in self.TYPES_ACCEPTABLE: |