]> Cypherpunks.ru repositories - gogost.git/commitdiff
Fix Equal condition typo
authorSergey Matveev <stargrave@stargrave.org>
Mon, 4 Oct 2021 10:05:09 +0000 (13:05 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Mon, 4 Oct 2021 10:08:34 +0000 (13:08 +0300)
gogost.go
gost3410/public.go

index 6af0a23e0a054e44d9d1c39e7fbc3eb48516e321..9343cffebfafed3e96338cde748054c3ebeee0e3 100644 (file)
--- 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"
index 8642a274bbceb0b19046bcdc72c6062339b2ed81..3bef45f70ef798287edf4b23654e09d2103a730b 100644 (file)
@@ -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)
 }