mirror of
https://github.com/XcodesOrg/XcodesApp.git
synced 2026-03-25 08:55:46 +00:00
comment
This commit is contained in:
parent
85c9bdba55
commit
8654756d67
1 changed files with 1 additions and 0 deletions
|
|
@ -313,6 +313,7 @@ public class Client {
|
|||
let hashedPasswordDataRaw = sha256(data: passwordData)
|
||||
let hashedPasswordData = switch srpProtocol {
|
||||
case .s2k: hashedPasswordDataRaw
|
||||
// the legacy s2k_fo protocol requires hex-encoding the digest before performing PBKDF2.
|
||||
case .s2k_fo: Data(hashedPasswordDataRaw.hexEncodedString().lowercased().utf8)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue