X-Git-Url: http://www.git.cypherpunks.ru/?p=pygost.git;a=blobdiff_plain;f=pygost%2Fwrap.py;h=2ef6f891f6330a02108d9513384abd13f6d47e4c;hp=301023eda18228d35ca1b00d2916afc30495e30a;hb=03de94212cd7c039e6a7f4f947fbd2d7d6c9b70e;hpb=ac622c5618f2ff79cfd0f11f273ace92d4e3925e diff --git a/pygost/wrap.py b/pygost/wrap.py index 301023e..2ef6f89 100644 --- a/pygost/wrap.py +++ b/pygost/wrap.py @@ -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