mirror of
https://github.com/slackhq/nebula.git
synced 2025-11-09 01:53:58 +01:00
minor text fixes (#1135)
This commit is contained in:
parent
d6e4b88bb5
commit
fd1906b16f
@ -48,7 +48,7 @@ func (c nistCurve) DH(privkey, pubkey []byte) ([]byte, error) {
|
|||||||
}
|
}
|
||||||
ecdhPrivKey, err := c.curve.NewPrivateKey(privkey)
|
ecdhPrivKey, err := c.curve.NewPrivateKey(privkey)
|
||||||
if err != nil {
|
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)
|
return ecdhPrivKey.ECDH(ecdhPubKey)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user