Skip to content

Commit c79330c

Browse files
committed
Re-instate sharedSecret padding in calculateClientProof
1 parent 9933e15 commit c79330c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/SRP/client.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ public struct SRPClient<H: HashFunction> {
9696
) -> [UInt8] {
9797
let clientPublicKey = clientPublicKey.with(padding: configuration.sizeN)
9898
let serverPublicKey = serverPublicKey.with(padding: configuration.sizeN)
99+
let sharedSecret = sharedSecret.with(padding: configuration.sizeN)
99100
let hashSharedSecret = [UInt8](H.hash(data: sharedSecret.bytes))
100101
// get verification code
101102
return SRP<H>.calculateClientProof(

0 commit comments

Comments
 (0)