mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 01:09:31 +02:00
* Prevent timing attack, patch by Thaddy De Koning
git-svn-id: trunk@32794 -
This commit is contained in:
parent
b7786d0849
commit
d93babffde
@ -313,7 +313,10 @@ var
|
||||
A: array[0..4] of Cardinal absolute Digest1;
|
||||
B: array[0..4] of Cardinal absolute Digest2;
|
||||
begin
|
||||
{$push}
|
||||
{$B+}
|
||||
Result := (A[0] = B[0]) and (A[1] = B[1]) and (A[2] = B[2]) and (A[3] = B[3]) and (A[4] = B[4]);
|
||||
{$pop}
|
||||
end;
|
||||
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user