X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=README;h=07fbf027e8d0cba02123f05aa381db39fa3a40d3;hb=3d808c708d149b845af732b7700f3882e466b781;hp=b82dfaf6db795224a628d824dca4da10e94a66e1;hpb=c9abb42693dfe8288aecb7ef064b907be0561629;p=pygost.git diff --git a/README b/README index b82dfaf..07fbf02 100644 --- a/README +++ b/README @@ -37,21 +37,23 @@ Example 34.10-2012 keypair generation, signing and verifying: >>> from pygost.gost3410 import CURVES >>> curve = CURVES["id-tc26-gost-3410-12-512-paramSetA"] >>> from os import urandom - >>> prv_raw = urandom(32) + >>> prv_raw = urandom(64) >>> from pygost.gost3410 import prv_unmarshal + >>> from pygost.gost3410 import prv_marshal >>> prv = prv_unmarshal(prv_raw) + >>> prv_raw = prv_marshal(curve, prv) >>> from pygost.gost3410 import public_key >>> pub = public_key(curve, prv) >>> from pygost.gost3410 import pub_marshal >>> from pygost.utils import hexenc >>> print "Public key is:", hexenc(pub_marshal(pub)) - >>> from pygost import gost34112012256 + >>> from pygost import gost34112012512 >>> data_for_signing = b"some data" - >>> dgst = gost34112012256.new(data_for_signing).digest() + >>> dgst = gost34112012512.new(data_for_signing).digest() >>> from pygost.gost3410 import sign - >>> signature = sign(curve, prv, dgst, mode=2012) + >>> signature = sign(curve, prv, dgst) >>> from pygost.gost3410 import verify - >>> verify(curve, pub, dgst, signature, mode=2012) + >>> verify(curve, pub, dgst, signature) True Other examples can be found in docstrings and unittests. @@ -64,8 +66,8 @@ PyGOST'es home page is: http://www.pygost.cypherpunks.ru/ You can read about GOST algorithms more: http://www.gost.cypherpunks.ru/ Please send questions, bug reports and patches to -https://lists.cypherpunks.ru/mailman/listinfo/gost -mailing list. Announcements also go to this mailing list. +http://lists.cypherpunks.ru/gost.html mailing list. +Announcements also go to this mailing list. Development Git source code repository currently is located here: -http://git.cypherpunks.ru/cgit.cgi/pygost.git/ +http://www.git.cypherpunks.ru/?p=pygost.git;a=summary