(self, algorithm="md5")
| 5321 | return import_descs |
| 5322 | |
| 5323 | def get_rich_header_hash(self, algorithm="md5"): |
| 5324 | if not hasattr(self, "RICH_HEADER") or self.RICH_HEADER is None: |
| 5325 | return "" |
| 5326 | |
| 5327 | if algorithm == "md5": |
| 5328 | return md5(self.RICH_HEADER.clear_data).hexdigest() |
| 5329 | elif algorithm == "sha1": |
| 5330 | return sha1(self.RICH_HEADER.clear_data).hexdigest() |
| 5331 | elif algorithm == "sha256": |
| 5332 | return sha256(self.RICH_HEADER.clear_data).hexdigest() |
| 5333 | elif algorithm == "sha512": |
| 5334 | return sha512(self.RICH_HEADER.clear_data).hexdigest() |
| 5335 | |
| 5336 | raise Exception("Invalid hashing algorithm specified") |
| 5337 | |
| 5338 | def get_imphash(self): |
| 5339 | impstrs = [] |
nothing calls this directly
no outgoing calls
no test coverage detected