mirror of
https://github.com/XcodesOrg/XcodesApp.git
synced 2026-04-27 15:07:39 +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 hashedPasswordDataRaw = sha256(data: passwordData)
|
||||||
let hashedPasswordData = switch srpProtocol {
|
let hashedPasswordData = switch srpProtocol {
|
||||||
case .s2k: hashedPasswordDataRaw
|
case .s2k: hashedPasswordDataRaw
|
||||||
|
// the legacy s2k_fo protocol requires hex-encoding the digest before performing PBKDF2.
|
||||||
case .s2k_fo: Data(hashedPasswordDataRaw.hexEncodedString().lowercased().utf8)
|
case .s2k_fo: Data(hashedPasswordDataRaw.hexEncodedString().lowercased().utf8)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue