X-Git-Url: http://www.git.cypherpunks.ru/?p=pygost.git;a=blobdiff_plain;f=pygost%2Fstubs%2Fpygost%2Fgost3413.pyi;h=d9d9c96b462f8f893888167f4cc5318bae263e4a;hp=43ef9ee524dd2a7c56af416b26740473741393c9;hb=4277661e11e63906d923827e5c124877f1dc0c8d;hpb=a63f78066756e6959b7bcbc52738f2ff4a03a308 diff --git a/pygost/stubs/pygost/gost3413.pyi b/pygost/stubs/pygost/gost3413.pyi index 43ef9ee..d9d9c96 100644 --- a/pygost/stubs/pygost/gost3413.pyi +++ b/pygost/stubs/pygost/gost3413.pyi @@ -22,9 +22,22 @@ def ecb_encrypt(encrypter: Callable[[bytes], bytes], bs: int, pt: bytes) -> byte def ecb_decrypt(decrypter: Callable[[bytes], bytes], bs: int, ct: bytes) -> bytes: ... +def acpkm(encrypter: Callable[[bytes], bytes], bs: int) -> bytes: ... + + def ctr(encrypter: Callable[[bytes], bytes], bs: int, data: bytes, iv: bytes) -> bytes: ... +def ctr_acpkm( + algo_class: object, + encrypter: Callable[[bytes], bytes], + section_size: int, + bs: int, + data: bytes, + iv: bytes, +) -> bytes: ... + + def ofb(encrypter: Callable[[bytes], bytes], bs: int, data: bytes, iv: bytes) -> bytes: ... @@ -41,3 +54,22 @@ def cfb_decrypt(encrypter: Callable[[bytes], bytes], bs: int, ct: bytes, iv: byt def mac(encrypter: Callable[[bytes], bytes], bs: int, data: bytes) -> bytes: ... + + +def acpkm_master( + algo_class: object, + encrypter: Callable[[bytes], bytes], + key_section_size: int, + bs: int, + keymat_len: int, +) -> bytes: ... + + +def mac_acpkm_master( + algo_class: object, + encrypter: Callable[[bytes], bytes], + key_section_size: int, + section_size: int, + bs: int, + data: bytes, +) -> bytes: ...