X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=pygost%2Fwrap.py;h=3fa49e7ccbad345f40fe84e847bb441efa15b7ec;hb=4d035489662738d8b505a20d842cd07c512b9947;hp=9deeff591f49647cc11afb19c5d8af548d5d54e0;hpb=b8b853ca49a9dca40f446880fa809af51c611fe0;p=pygost.git diff --git a/pygost/wrap.py b/pygost/wrap.py index 9deeff5..3fa49e7 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-2022 Sergey Matveev +# Copyright (C) 2015-2023 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 @@ -79,7 +79,12 @@ def wrap_cryptopro(ukm, kek, cek, sbox=DEFAULT_SBOX): :returns: wrapped key :rtype: bytes, 44 bytes """ - return wrap_gost(ukm, diversify(kek, bytearray(ukm)), cek, sbox=sbox) + return wrap_gost( + ukm, + diversify(kek, bytearray(ukm), sbox=sbox), + cek, + sbox=sbox, + ) def unwrap_cryptopro(kek, data, sbox=DEFAULT_SBOX):