Skip to content

Commit ef7a0c7

Browse files
author
Markus Humm
committed
Merge branch 'development' into master
2 parents 37d8a16 + ada7982 commit ef7a0c7

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

Source/DECHashAuthentication.pas

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -475,22 +475,8 @@ implementation
475475
DECUtil;
476476

477477
class function TDECHashAuthentication.IsPasswordHash: Boolean;
478-
var
479-
Parent : TClass;
480478
begin
481-
Result := false;
482-
483-
Parent := ClassParent;
484-
while assigned(Parent) do
485-
begin
486-
if (ClassParent = TDECPasswordHash) then
487-
begin
488-
Result := true;
489-
break;
490-
end
491-
else
492-
Parent := Parent.ClassParent;
493-
end;
479+
Result := self.InheritsFrom(TDECPasswordHash);
494480
end;
495481

496482
class function TDECHashAuthentication.KDFInternal(const Data; DataSize: Integer; const Seed;

0 commit comments

Comments
 (0)