Skip to content

Commit

Permalink
minor text fixes (#1135)
Browse files Browse the repository at this point in the history
  • Loading branch information
JackDoan authored May 4, 2024
1 parent d6e4b88 commit fd1906b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion noiseutil/nist.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (c nistCurve) DH(privkey, pubkey []byte) ([]byte, error) {
}
ecdhPrivKey, err := c.curve.NewPrivateKey(privkey)
if err != nil {
return nil, fmt.Errorf("unable to unmarshal pubkey: %w", err)
return nil, fmt.Errorf("unable to unmarshal private key: %w", err)
}

return ecdhPrivKey.ECDH(ecdhPubKey)
Expand Down

0 comments on commit fd1906b

Please sign in to comment.