From f17daeb600c11ad0f3b1e80ac800da82d4a926ca Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Mon, 4 Oct 2021 13:05:09 +0300 Subject: [PATCH] Fix Equal condition typo --- gogost.go | 2 +- gost3410/public.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) } -- 2.44.0