From: Sergey Matveev Date: Mon, 4 Oct 2021 10:05:09 +0000 (+0300) Subject: Fix Equal condition typo X-Git-Tag: v5.7.1~1 X-Git-Url: http://www.git.cypherpunks.ru/?p=gogost.git;a=commitdiff_plain;h=f17daeb600c11ad0f3b1e80ac800da82d4a926ca Fix Equal condition typo --- diff --git a/gogost.go b/gogost.go index 6af0a23..9343cff 100644 --- a/gogost.go +++ b/gogost.go @@ -1,4 +1,4 @@ // Pure Go GOST cryptographic functions library. package gogost -const Version = "5.7.0" +const Version = "5.7.1" diff --git a/gost3410/public.go b/gost3410/public.go index 8642a27..3bef45f 100644 --- a/gost3410/public.go +++ b/gost3410/public.go @@ -114,5 +114,5 @@ func (our *PublicKey) Equal(theirKey crypto.PublicKey) bool { if !ok { return false } - return our.X.Cmp(their.X) == 0 && our.X.Cmp(their.Y) == 0 && our.C.Equal(their.C) + return our.X.Cmp(their.X) == 0 && our.Y.Cmp(their.Y) == 0 && our.C.Equal(their.C) }