Skip to content

Commit

Permalink
added more prints
Browse files Browse the repository at this point in the history
  • Loading branch information
CryptoSax committed Sep 5, 2023
1 parent 43b45ac commit d78e407
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Sources/ShadowSwift/DarkStarServerAuthenticator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,13 @@ public class DarkStarServerAuthenticator
return nil
}

print("ecdh data (\(ecdhData.count) bytes): \(ecdhData.hex)")
print("serverIdentifier: \(serverIdentifier.hex)")
print("serverPersistentPublicKey (\(serverPersistentPublicKeyData.count) bytes): \(serverPersistentPublicKeyData.hex)")
print("clientEphemeralPublicKey (\(clientEphemeralPublicKeyData) bytes): \(clientEphemeralPublicKeyData.hex)")
print("DarkStarString: \(DarkStarString)")
print("ClientString: \(ClientString)")

var hash = SHA256()
hash.update(data: ecdhData)
hash.update(data: serverIdentifier)
Expand Down

0 comments on commit d78e407

Please sign in to comment.