# coding: utf-8
# PyGOST -- Pure Python GOST cryptographic functions library
-# Copyright (C) 2015-2018 Sergey Matveev <stargrave@stargrave.org>
+# Copyright (C) 2015-2019 Sergey Matveev <stargrave@stargrave.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
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):