MD5Match
Cryptography
Description
Compares two MD5 digests without early exit
Syntax
Delphi
Function MD5Match(D1, D2: MD5Digest): Boolean;Parameters
| D1 | First digest |
|---|---|
| D2 | Second digest |
Return values
| False | At least one byte differs |
|---|---|
| True | All 16 bytes match |
Remarks
The comparison ORs the XOR of every byte before testing the accumulator, so the loop length never leaks where the first difference sits