From: Sergey Matveev Date: Mon, 3 Dec 2018 10:39:56 +0000 (+0300) Subject: Missing typing stubs X-Git-Tag: 3.15~6 X-Git-Url: http://www.git.cypherpunks.ru/?p=pygost.git;a=commitdiff_plain;h=818eb68ea7a92b409b74871add12d633d349086f Missing typing stubs --- diff --git a/NEWS b/NEWS index 2655265..1edac65 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,6 @@ +3.14: + Add missing typing stubs related to previous release. + 3.13: * Ability to explicitly specify used 28147-89 Sbox in pygost.wrap.* functions diff --git a/VERSION b/VERSION index 24ee5b1..6324d40 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.13 +3.14 diff --git a/download.texi b/download.texi index a119555..4bd4d13 100644 --- a/download.texi +++ b/download.texi @@ -6,11 +6,11 @@ No additional dependencies except Python 2.7/3.x interpreter are required. Preferable way is to download tarball with the signature: @verbatim -% wget http://pygost.cypherpunks.ru/pygost-3.13.tar.xz -% wget http://pygost.cypherpunks.ru/pygost-3.13.tar.xz.sig -% gpg --verify pygost-3.13.tar.xz.sig pygost-3.13.tar.xz -% xz -d < pygost-3.13.tar.xz | tar xf - -% cd pygost-3.13 +% wget http://pygost.cypherpunks.ru/pygost-3.14.tar.xz +% wget http://pygost.cypherpunks.ru/pygost-3.14.tar.xz.sig +% gpg --verify pygost-3.14.tar.xz.sig pygost-3.14.tar.xz +% xz -d < pygost-3.14.tar.xz | tar xf - +% cd pygost-3.14 % python setup.py install @end verbatim @@ -102,7 +102,7 @@ Preferable way is to download tarball with the signature: But also you can use PIP (@strong{no} authentication is performed!): @verbatim -% pip install pygost==3.13 +% pip install pygost==3.14 @end verbatim You @strong{have to} verify downloaded tarballs integrity and diff --git a/news.texi b/news.texi index e87f637..811ebb6 100644 --- a/news.texi +++ b/news.texi @@ -3,6 +3,10 @@ @table @strong +@anchor{Release 3.14} +@item 3.14 +Add missing typing stubs related to previous release. + @anchor{Release 3.13} @item 3.13 @itemize diff --git a/pygost/stubs/pygost/gost28147.pyi b/pygost/stubs/pygost/gost28147.pyi index 1c0986f..d0f17db 100644 --- a/pygost/stubs/pygost/gost28147.pyi +++ b/pygost/stubs/pygost/gost28147.pyi @@ -65,6 +65,7 @@ def cbc_encrypt( iv: bytes=..., pad: bool=..., sbox: str=..., + mesh: bool=..., ) -> bytes: ... @@ -73,6 +74,7 @@ def cbc_decrypt( data: bytes, pad: bool=..., sbox: str=..., + mesh: bool=..., ) -> bytes: ... diff --git a/pygost/stubs/pygost/wrap.pyi b/pygost/stubs/pygost/wrap.pyi index ec63cb5..7aba9d2 100644 --- a/pygost/stubs/pygost/wrap.pyi +++ b/pygost/stubs/pygost/wrap.pyi @@ -1,10 +1,10 @@ -def wrap_gost(ukm: bytes, kek: bytes, cek: bytes) -> bytes: ... +def wrap_gost(ukm: bytes, kek: bytes, cek: bytes, sbox: str) -> bytes: ... -def unwrap_gost(kek: bytes, data: bytes) -> bytes: ... +def unwrap_gost(kek: bytes, data: bytes, sbox: str) -> bytes: ... -def wrap_cryptopro(ukm: bytes, kek: bytes, cek: bytes) -> bytes: ... +def wrap_cryptopro(ukm: bytes, kek: bytes, cek: bytes, sbox: str) -> bytes: ... -def unwrap_cryptopro(kek: bytes, data: bytes) -> bytes: ... +def unwrap_cryptopro(kek: bytes, data: bytes, sbox: str) -> bytes: ...