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(