Get the SHA-1 hex-digest of the section's data.
(self)
| 1298 | return self.entropy_H(self.get_data()) |
| 1299 | |
| 1300 | def get_hash_sha1(self): |
| 1301 | """Get the SHA-1 hex-digest of the section's data.""" |
| 1302 | |
| 1303 | if sha1 is not None: |
| 1304 | return sha1(self.get_data()).hexdigest() |
| 1305 | |
| 1306 | def get_hash_sha256(self): |
| 1307 | """Get the SHA-256 hex-digest of the section's data.""" |