@@ -92,9 +92,9 @@ TArgon2 = class(TObject)
92
92
class function HashData (const Data; DataLen: Integer; cbHashLen: Integer; const Key; cbKeyLen: Integer): TBytes;
93
93
public
94
94
// 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;
98
98
end ;
99
99
100
100
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;
346
346
(10 , 2 , 8 , 4 , 7 , 6 , 1 , 5 , 15 , 11 , 9 , 14 , 3 , 12 , 13 , 0 )
347
347
);
348
348
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;
350
350
begin
351
351
Result := False;
352
352
PasswordRehashNeeded := False;
@@ -461,7 +461,7 @@ procedure TArgon2.GetDefaultParameters(out Iterations, MemoryFactor,
461
461
462
462
end ;
463
463
464
- class function TArgon2.HashPassword (const password : UnicodeString): string;
464
+ class function TArgon2.HashPassword (const Password : UnicodeString): string;
465
465
begin
466
466
467
467
end ;
@@ -475,7 +475,7 @@ class function TArgon2.HashData(const Data; DataLen, cbHashLen: Integer; const K
475
475
Result := hash.Finalize;
476
476
end ;
477
477
478
- class function TArgon2.HashPassword (const password : UnicodeString;
478
+ class function TArgon2.HashPassword (const Password : UnicodeString;
479
479
const Iterations, MemoryFactor, Parallelism: Integer): string;
480
480
begin
481
481
{
0 commit comments