forked from cerc-io/plugeth
Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into develop
This commit is contained in:
commit
6284604b52
@ -303,6 +303,10 @@ func (prv *PrivateKey) Decrypt(rand io.Reader, c, s1, s2 []byte) (m []byte, err
|
|||||||
err = ErrInvalidPublicKey
|
err = ErrInvalidPublicKey
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if !R.Curve.IsOnCurve(R.X, R.Y) {
|
||||||
|
err = ErrInvalidCurve
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
z, err := prv.GenerateShared(R, params.KeyLen, params.KeyLen)
|
z, err := prv.GenerateShared(R, params.KeyLen, params.KeyLen)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user