Skip to content

Commit

Permalink
Remove public from calculateU
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Oct 29, 2024
1 parent 605ed1a commit 9369b01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SRP/srp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ extension Array where Element == UInt8 {
public struct SRP<H: HashFunction> {

/// calculate u = H(clientPublicKey | serverPublicKey)
public static func calculateU(clientPublicKey: [UInt8], serverPublicKey: [UInt8]) -> BigNum {
static func calculateU(clientPublicKey: [UInt8], serverPublicKey: [UInt8]) -> BigNum {
BigNum(bytes: [UInt8].init(H.hash(data: clientPublicKey + serverPublicKey)))
}

Expand Down

0 comments on commit 9369b01

Please sign in to comment.