Skip to content

Commit 8654756

Browse files
committed
comment
1 parent 85c9bdb commit 8654756

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Xcodes/AppleAPI/Sources/AppleAPI/Client.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ public class Client {
313313
let hashedPasswordDataRaw = sha256(data: passwordData)
314314
let hashedPasswordData = switch srpProtocol {
315315
case .s2k: hashedPasswordDataRaw
316+
// the legacy s2k_fo protocol requires hex-encoding the digest before performing PBKDF2.
316317
case .s2k_fo: Data(hashedPasswordDataRaw.hexEncodedString().lowercased().utf8)
317318
}
318319

0 commit comments

Comments
 (0)