]> Cypherpunks.ru repositories - pygost.git/blobdiff - pygost/wrap.py
Raise copyright years
[pygost.git] / pygost / wrap.py
index 301023eda18228d35ca1b00d2916afc30495e30a..b988f742ada13de5ab511453983d7da34e406714 100644 (file)
@@ -1,6 +1,6 @@
 # coding: utf-8
 # PyGOST -- Pure Python GOST cryptographic functions library
-# Copyright (C) 2015-2020 Sergey Matveev <stargrave@stargrave.org>
+# Copyright (C) 2015-2021 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
@@ -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