]> Cypherpunks.ru repositories - pygost.git/blobdiff - pygost/stubs/pygost/gost3413.pyi
34.13-2015 cipher modes of operation implementation
[pygost.git] / pygost / stubs / pygost / gost3413.pyi
index dddb205ba94192f8c7959ab4de51415aca2525ba..43ef9ee524dd2a7c56af416b26740473741393c9 100644 (file)
@@ -1,3 +1,6 @@
+from typing import Callable
+
+
 def pad_size(data_size: int, blocksize: int) -> int: ...
 
 
@@ -7,4 +10,34 @@ def pad1(data: bytes, blocksize: int) -> bytes: ...
 def pad2(data: bytes, blocksize: int) -> bytes: ...
 
 
+def unpad2(data: bytes, blocksize: int) -> bytes: ...
+
+
 def pad3(data: bytes, blocksize: int) -> bytes: ...
+
+
+def ecb_encrypt(encrypter: Callable[[bytes], bytes], bs: int, pt: bytes) -> bytes: ...
+
+
+def ecb_decrypt(decrypter: Callable[[bytes], bytes], bs: int, ct: bytes) -> bytes: ...
+
+
+def ctr(encrypter: Callable[[bytes], bytes], bs: int, data: bytes, iv: bytes) -> bytes: ...
+
+
+def ofb(encrypter: Callable[[bytes], bytes], bs: int, data: bytes, iv: bytes) -> bytes: ...
+
+
+def cbc_encrypt(encrypter: Callable[[bytes], bytes], bs: int, pt: bytes, iv: bytes) -> bytes: ...
+
+
+def cbc_decrypt(decrypter: Callable[[bytes], bytes], bs: int, ct: bytes, iv: bytes) -> bytes: ...
+
+
+def cfb_encrypt(encrypter: Callable[[bytes], bytes], bs: int, pt: bytes, iv: bytes) -> bytes: ...
+
+
+def cfb_decrypt(encrypter: Callable[[bytes], bytes], bs: int, ct: bytes, iv: bytes) -> bytes: ...
+
+
+def mac(encrypter: Callable[[bytes], bytes], bs: int, data: bytes) -> bytes: ...