From 8654756d67280a4db34072af4a8facd26f5b6864 Mon Sep 17 00:00:00 2001 From: Kabir Oberai Date: Mon, 4 Nov 2024 21:21:12 -0500 Subject: [PATCH] comment --- Xcodes/AppleAPI/Sources/AppleAPI/Client.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Xcodes/AppleAPI/Sources/AppleAPI/Client.swift b/Xcodes/AppleAPI/Sources/AppleAPI/Client.swift index ef43d13..1e8e473 100644 --- a/Xcodes/AppleAPI/Sources/AppleAPI/Client.swift +++ b/Xcodes/AppleAPI/Sources/AppleAPI/Client.swift @@ -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) }