X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;ds=sidebyside;f=pygost%2Ftest_gost28147.py;h=037b7b86ff643502eccc928774c3eafae6665645;hb=dd0805888217ef624c159baad44c2488101d5750;hp=f28618d2c8bbd086a61789c2a2d23ab14ce64675;hpb=e8a28983794d026ccb59439a684dbdc363fcc8c6;p=pygost.git diff --git a/pygost/test_gost28147.py b/pygost/test_gost28147.py index f28618d..037b7b8 100644 --- a/pygost/test_gost28147.py +++ b/pygost/test_gost28147.py @@ -338,6 +338,13 @@ class CBCTest(TestCase): iv = urandom(8) cbc_decrypt(key, cbc_encrypt(key, 8 * b"x", iv)) + def test_meshing(self): + pt = urandom(MESH_MAX_DATA * 3) + key = urandom(32) + ct = cbc_encrypt(key, pt) + dt = cbc_decrypt(key, ct) + self.assertEqual(pt, dt) + class CFBMeshingTest(TestCase): def setUp(self):