Skip to content

Commit

Permalink
Re-instate sharedSecret padding in calculateClientProof
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Oct 31, 2024
1 parent 9933e15 commit c79330c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/SRP/client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public struct SRPClient<H: HashFunction> {
) -> [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<H>.calculateClientProof(
Expand Down

0 comments on commit c79330c

Please sign in to comment.