Skip to content
Snippets Groups Projects
Commit 4abbb28e authored by Jonah Husson's avatar Jonah Husson
Browse files

client print hash

parent 75f2b03c
No related branches found
No related tags found
No related merge requests found
...@@ -424,6 +424,7 @@ func (cl *Client) requestNonce(salt, regHash []byte, ...@@ -424,6 +424,7 @@ func (cl *Client) requestNonce(salt, regHash []byte,
h := sha.New() h := sha.New()
h.Write(dhPub) h.Write(dhPub)
data := h.Sum(nil) data := h.Sum(nil)
fmt.Println(data)
// Sign DH pubkey // Sign DH pubkey
rng := csprng.NewSystemRNG() rng := csprng.NewSystemRNG()
signed, err := rsa.Sign(rng, privateKeyRSA, sha, data, opts) signed, err := rsa.Sign(rng, privateKeyRSA, sha, data, opts)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment