X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=pygost%2Fwrap.py;h=9deeff591f49647cc11afb19c5d8af548d5d54e0;hb=b8b853ca49a9dca40f446880fa809af51c611fe0;hp=301023eda18228d35ca1b00d2916afc30495e30a;hpb=2335694cd5ee459de19d261c08e9427438325bc8;p=pygost.git diff --git a/pygost/wrap.py b/pygost/wrap.py index 301023e..9deeff5 100644 --- a/pygost/wrap.py +++ b/pygost/wrap.py @@ -1,6 +1,6 @@ # coding: utf-8 # PyGOST -- Pure Python GOST cryptographic functions library -# Copyright (C) 2015-2020 Sergey Matveev +# Copyright (C) 2015-2022 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 @@ -143,5 +143,5 @@ def kimp15(encrypter_key, encrypter_mac, bs, kexp, iv): key_and_key_mac = ctr(encrypter_key, bs, kexp, iv) key, key_mac = key_and_key_mac[:-bs], key_and_key_mac[-bs:] if not compare_digest(mac(encrypter_mac, bs, iv + key), key_mac): - raise ValueError("invalid authentication tag") + raise ValueError("Invalid authentication tag") return key