X-Git-Url: http://www.git.cypherpunks.ru/?p=pygost.git;a=blobdiff_plain;f=pygost%2Fstubs%2Fpygost%2Fwrap.pyi;h=776a6e71340a75a2dd2979b79bb0d1ab8086304e;hp=23080ab2ee02e4891777c887afb0b3fec0f79f5f;hb=2335694cd5ee459de19d261c08e9427438325bc8;hpb=4277661e11e63906d923827e5c124877f1dc0c8d diff --git a/pygost/stubs/pygost/wrap.pyi b/pygost/stubs/pygost/wrap.pyi index 23080ab..776a6e7 100644 --- a/pygost/stubs/pygost/wrap.pyi +++ b/pygost/stubs/pygost/wrap.pyi @@ -1,3 +1,6 @@ +from typing import Callable + + def wrap_gost(ukm: bytes, kek: bytes, cek: bytes, sbox: str = ...) -> bytes: ... @@ -8,3 +11,21 @@ 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: ...