X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=pygost%2Fstubs%2Fpygost%2Fwrap.pyi;h=776a6e71340a75a2dd2979b79bb0d1ab8086304e;hb=2335694cd5ee459de19d261c08e9427438325bc8;hp=ec63cb53b4961050ff303076a020033f918490c6;hpb=34c9c9a4f95eecfee75fc36d75d2ee45d1054a25;p=pygost.git diff --git a/pygost/stubs/pygost/wrap.pyi b/pygost/stubs/pygost/wrap.pyi index ec63cb5..776a6e7 100644 --- a/pygost/stubs/pygost/wrap.pyi +++ b/pygost/stubs/pygost/wrap.pyi @@ -1,10 +1,31 @@ -def wrap_gost(ukm: bytes, kek: bytes, cek: bytes) -> bytes: ... +from typing import Callable -def unwrap_gost(kek: bytes, data: bytes) -> bytes: ... +def wrap_gost(ukm: bytes, kek: bytes, cek: bytes, sbox: str = ...) -> bytes: ... -def wrap_cryptopro(ukm: bytes, kek: bytes, cek: bytes) -> bytes: ... +def unwrap_gost(kek: bytes, data: bytes, sbox: str = ...) -> bytes: ... -def unwrap_cryptopro(kek: bytes, data: bytes) -> bytes: ... +def wrap_cryptopro(ukm: bytes, kek: bytes, cek: bytes, sbox: str = ...) -> bytes: ... + + +def unwrap_cryptopro(kek: bytes, data: bytes, sbox: str = ...) -> bytes: ... + + +def kexp15( + encrypter_key: Callable[[bytes], bytes], + encrypter_mac: Callable[[bytes], bytes], + bs: int, + key: bytes, + iv: bytes, +) -> bytes: ... + + +def kimp15( + encrypter_key: Callable[[bytes], bytes], + encrypter_mac: Callable[[bytes], bytes], + bs: int, + kexp: bytes, + iv: bytes, +) -> bytes: ...