Parcourir la source

minor text fixes (#1135)

Jack Doan il y a 1 an
Parent
commit
fd1906b16f
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      noiseutil/nist.go

+ 1 - 1
noiseutil/nist.go

@@ -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)