Update the PreauthIntegrityHashValue
(
PreauthIntegrityHashValue, s, HashId="SHA-512"
)
| 4685 | |
| 4686 | |
| 4687 | def SMB2computePreauthIntegrityHashValue( |
| 4688 | PreauthIntegrityHashValue, s, HashId="SHA-512" |
| 4689 | ): |
| 4690 | """ |
| 4691 | Update the PreauthIntegrityHashValue |
| 4692 | """ |
| 4693 | # get hasher |
| 4694 | hasher = {"SHA-512": hashlib.sha512}[HashId] |
| 4695 | # compute the hash of concatenation of previous and bytes |
| 4696 | return hasher(PreauthIntegrityHashValue + s).digest() |
| 4697 | |
| 4698 | |
| 4699 | # SMB2 socket and session |
no test coverage detected
searching dependent graphs…