Skip to content

Commit 66c9e8f

Browse files
committed
case
1 parent 8da52c8 commit 66c9e8f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Argon2.pas

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ TArgon2 = class(TObject)
9292
class function HashData(const Data; DataLen: Integer; cbHashLen: Integer; const Key; cbKeyLen: Integer): TBytes;
9393
public
9494
//Hashes a password into the standard Argon2 OpenBSD password-file format
95-
class function HashPassword(const password: UnicodeString): string; overload;
96-
class function HashPassword(const password: UnicodeString; const Iterations, MemoryFactor, Parallelism: Integer): string; overload;
97-
class function CheckPassword(const password: UnicodeString; const expectedHashString: string; out PasswordRehashNeeded: Boolean): Boolean; overload;
95+
class function HashPassword(const Password: UnicodeString): string; overload;
96+
class function HashPassword(const Password: UnicodeString; const Iterations, MemoryFactor, Parallelism: Integer): string; overload;
97+
class function CheckPassword(const Password: UnicodeString; const expectedHashString: string; out PasswordRehashNeeded: Boolean): Boolean; overload;
9898
end;
9999

100100
function ROR64(const Value: Int64; const n: Integer): Int64; //rotate right
@@ -346,7 +346,7 @@ class function TArgon2.Base64Encode(const data: array of Byte): string;
346346
(10, 2, 8, 4, 7, 6, 1, 5, 15, 11, 9, 14, 3, 12, 13, 0)
347347
);
348348

349-
class function TArgon2.CheckPassword(const password: UnicodeString; const expectedHashString: string; out PasswordRehashNeeded: Boolean): Boolean;
349+
class function TArgon2.CheckPassword(const Password: UnicodeString; const expectedHashString: string; out PasswordRehashNeeded: Boolean): Boolean;
350350
begin
351351
Result := False;
352352
PasswordRehashNeeded := False;
@@ -461,7 +461,7 @@ procedure TArgon2.GetDefaultParameters(out Iterations, MemoryFactor,
461461

462462
end;
463463

464-
class function TArgon2.HashPassword(const password: UnicodeString): string;
464+
class function TArgon2.HashPassword(const Password: UnicodeString): string;
465465
begin
466466

467467
end;
@@ -475,7 +475,7 @@ class function TArgon2.HashData(const Data; DataLen, cbHashLen: Integer; const K
475475
Result := hash.Finalize;
476476
end;
477477

478-
class function TArgon2.HashPassword(const password: UnicodeString;
478+
class function TArgon2.HashPassword(const Password: UnicodeString;
479479
const Iterations, MemoryFactor, Parallelism: Integer): string;
480480
begin
481481
{

0 commit comments

Comments
 (0)