X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=www.texi;h=9b4e79f901077ff3c4a9ba42b2606ca4d5a7b8de;hb=9de1d1a456eb3b639d8f230f231a3f7d9cea3902;hp=86bc3efa8c3ea60b9493dc0f5e9128533ef3e645;hpb=a2b4808f6628225be99874bd5f6a0f80a514db82;p=pygost.git diff --git a/www.texi b/www.texi index 86bc3ef..9b4e79f 100644 --- a/www.texi +++ b/www.texi @@ -15,7 +15,7 @@ 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}. -You can read about GOST algorithms @url{http://gost.cypherpunks.ru/, more}. +You can read about GOST algorithms @url{http://www.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