X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=pygost%2Fgost3410_vko.py;h=46812cd75f0cf501d983cf50f3be91a6cdf69565;hb=c20420a078765a2afc54568357c49cdeb9f20cd4;hp=caf3b5bd2585d8e1dae25511045a19fc1f4c72ca;hpb=3f11660bacebb0b0709c36f89476c2b21135b2d9;p=pygost.git diff --git a/pygost/gost3410_vko.py b/pygost/gost3410_vko.py index caf3b5b..46812cd 100644 --- a/pygost/gost3410_vko.py +++ b/pygost/gost3410_vko.py @@ -70,6 +70,9 @@ def kek_34102012256(curve, prv, pub, ukm=1): :param long ukm: user keying material, VKO-factor :returns: Key Encryption Key (shared key) :rtype: bytes, 32 bytes + + Shared Key Encryption Key computation is based on + :rfc:`7836` VKO GOST R 34.10-2012. """ return GOST34112012256(kek(curve, prv, pub, ukm, mode=2012)).digest() @@ -84,5 +87,8 @@ def kek_34102012512(curve, prv, pub, ukm=1): :param long ukm: user keying material, VKO-factor :returns: Key Encryption Key (shared key) :rtype: bytes, 32 bytes + + Shared Key Encryption Key computation is based on + :rfc:`7836` VKO GOST R 34.10-2012. """ return GOST34112012512(kek(curve, prv, pub, ukm, mode=2012)).digest()