X-Git-Url: http://www.git.cypherpunks.ru/?p=gogost.git;a=blobdiff_plain;f=gost3410%2Fpublic.go;h=957293e61f7830b266a7f0731729b989dac8d0d0;hp=ea1906dc2ce883a1f7a1b598e83acf4de0a291ec;hb=c19a111af499e05273906e9d5f7c059ab38d6f02;hpb=b465c131a7dc5dd4563cfa85b5629baeaa403f7b diff --git a/gost3410/public.go b/gost3410/public.go index ea1906d..957293e 100644 --- a/gost3410/public.go +++ b/gost3410/public.go @@ -56,7 +56,7 @@ func (pub *PublicKey) Raw() []byte { func (pub *PublicKey) VerifyDigest(digest, signature []byte) (bool, error) { pointSize := pub.C.PointSize() if len(signature) != 2*pointSize { - return false, fmt.Errorf("gogost/gost3410: len(signature) != %d", 2*pointSize) + return false, fmt.Errorf("gogost/gost3410: len(signature)=%d != %d", len(signature), 2*pointSize) } s := bytes2big(signature[:pointSize]) r := bytes2big(signature[pointSize:])