mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Fix pin hash version to match android
This commit is contained in:
parent
9244d1e8a8
commit
51db5495c0
2 changed files with 3 additions and 1 deletions
|
@ -4,6 +4,8 @@
|
|||
|
||||
### Fixed
|
||||
- Disable registration lock before removing the PIN
|
||||
- Fix PIN hash version to match the official clients.
|
||||
If you had previously set a PIN you need to set it again to be able to unlock the registration lock later.
|
||||
|
||||
## [0.7.2] - 2020-12-31
|
||||
### Added
|
||||
|
|
|
@ -14,7 +14,7 @@ public final class PinHashing {
|
|||
public static HashedPin hashPin(String pin, KeyBackupService.HashSession hashSession) {
|
||||
final Argon2Parameters params = new Argon2Parameters.Builder(Argon2Parameters.ARGON2_id).withParallelism(1)
|
||||
.withIterations(32)
|
||||
.withVersion(13)
|
||||
.withVersion(Argon2Parameters.ARGON2_VERSION_13)
|
||||
.withMemoryAsKB(16 * 1024)
|
||||
.withSalt(hashSession.hashSalt())
|
||||
.build();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue