From c79330c53bf7b534c41e42575c0a4e660eaa7bfd Mon Sep 17 00:00:00 2001 From: Adam Fowler Date: Thu, 31 Oct 2024 11:33:43 +0000 Subject: [PATCH] Re-instate sharedSecret padding in calculateClientProof --- Sources/SRP/client.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/SRP/client.swift b/Sources/SRP/client.swift index f5e4cd6..1c1415d 100644 --- a/Sources/SRP/client.swift +++ b/Sources/SRP/client.swift @@ -96,6 +96,7 @@ public struct SRPClient { ) -> [UInt8] { let clientPublicKey = clientPublicKey.with(padding: configuration.sizeN) let serverPublicKey = serverPublicKey.with(padding: configuration.sizeN) + let sharedSecret = sharedSecret.with(padding: configuration.sizeN) let hashSharedSecret = [UInt8](H.hash(data: sharedSecret.bytes)) // get verification code return SRP.calculateClientProof(