This commit is contained in:
Kabir Oberai 2024-11-04 21:21:12 -05:00
parent 85c9bdba55
commit 8654756d67

View file

@ -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)
}