X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=www.texi;h=dcf53dccc47c76680855811861bcb0821e3a6b31;hb=b2e90391aebf713b34023e379803fbf968e5aed8;hp=7f3c0f20d6820ddadc0d6cdfa3d7efb80deca809;hpb=312c6b813adbf8a04253e3b1da28e02780c61d07;p=pygost.git diff --git a/www.texi b/www.texi index 7f3c0f2..dcf53dc 100644 --- a/www.texi +++ b/www.texi @@ -3,7 +3,7 @@ @settitle PyGOST @copying -Copyright @copyright{} 2015-2019 @email{stargrave@@stargrave.org, Sergey Matveev} +Copyright @copyright{} 2015-2020 @email{stargrave@@stargrave.org, Sergey Matveev} @end copying @node Top @@ -14,7 +14,7 @@ GOST is GOvernment STandard of Russian Federation (and Soviet Union). It is @url{https://www.gnu.org/philosophy/pragmatic.html, copylefted} @url{https://www.gnu.org/philosophy/free-sw.html, free software}: -licenced under @url{https://www.gnu.org/licenses/gpl-3.0.html, GPLv3+}. +licenced under @url{https://www.gnu.org/licenses/gpl-3.0.html, GPLv3}. You can read about GOST algorithms @url{http://gost.cypherpunks.ru/, more}. Currently supported algorithms are: @@ -60,7 +60,7 @@ Currently supported algorithms are: Example 34.10-2012 keypair generation, signing and verifying: -@verbatim +@example >>> from pygost.gost3410 import CURVES >>> curve = CURVES["id-tc26-gost-3410-12-512-paramSetA"] >>> from os import urandom @@ -74,13 +74,13 @@ Example 34.10-2012 keypair generation, signing and verifying: >>> print "Public key is:", hexenc(pub_marshal(pub)) >>> from pygost import gost34112012256 >>> data_for_signing = b"some data" ->>> dgst = gost34112012256.new(data_for_signing).digest() +>>> dgst = gost34112012256.new(data_for_signing).digest()[::-1] >>> from pygost.gost3410 import sign >>> signature = sign(curve, prv, dgst, mode=2012) >>> from pygost.gost3410 import verify >>> verify(curve, pub, dgst, signature, mode=2012) True -@end verbatim +@end example Please send questions, bug reports and patches to @url{https://lists.cypherpunks.ru/mailman/listinfo/gost, gost} @@ -88,7 +88,8 @@ mailing list. Announcements also go to this mailing list. @insertcopying +@include faq.texi @include news.texi -@include download.texi +@include install.texi @bye