]> Cypherpunks.ru repositories - pygost.git/blobdiff - pygost/stubs/pygost/mgm.pyi
MGM mode
[pygost.git] / pygost / stubs / pygost / mgm.pyi
diff --git a/pygost/stubs/pygost/mgm.pyi b/pygost/stubs/pygost/mgm.pyi
new file mode 100644 (file)
index 0000000..81906b7
--- /dev/null
@@ -0,0 +1,17 @@
+from typing import Callable
+
+
+def nonce_prepare(nonce: bytes) -> bytes: ...
+
+
+class MGM(object):
+    def __init__(
+        self,
+        encrypter: Callable[[bytes], bytes],
+        bs: int,
+        tag_size: int = None,
+    ) -> None: ...
+
+    def seal(self, nonce: bytes, plaintext: bytes, additional_data: bytes) -> bytes: ...
+
+    def open(self, nonce: bytes, ciphertext: bytes, additional_data: bytes) -> bytes: ...