]> Cypherpunks.ru repositories - gogost.git/blobdiff - gost3410/public.go
Fix Equal condition typo
[gogost.git] / gost3410 / public.go
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)
 }