X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=pygost%2Ftest_gost34112012.py;h=92bd60901de6fb70700c64b0edcf28c3066b3f9e;hb=9de1d1a456eb3b639d8f230f231a3f7d9cea3902;hp=5486d0e5470f728e6b548738769e87471223e48b;hpb=244469e3eb8ee0794a0db7413bc600e20ce22b4f;p=pygost.git diff --git a/pygost/test_gost34112012.py b/pygost/test_gost34112012.py index 5486d0e..92bd609 100644 --- a/pygost/test_gost34112012.py +++ b/pygost/test_gost34112012.py @@ -1,11 +1,10 @@ # coding: utf-8 # PyGOST -- Pure Python GOST cryptographic functions library -# Copyright (C) 2015-2019 Sergey Matveev +# Copyright (C) 2015-2020 Sergey Matveev # # 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 -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# the Free Software Foundation, version 3 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -87,8 +86,9 @@ class TestVectors(TestCase): GOST34112012256(m).digest(), hexdec("508f7e553c06501d749a66fc28c6cac0b005746d97537fa85d9e40904efed29d")[::-1] ) + def test_habr144(self): - """Test vector from https://habr.com/ru/post/450024/ + """Test vector from https://m.habr.com/ru/post/450024/ """ m = hexdec("d0cf11e0a1b11ae1000000000000000000000000000000003e000300feff0900060000000000000000000000010000000100000000000000001000002400000001000000feffffff0000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff") self.assertSequenceEqual(