]> Cypherpunks.ru repositories - pygost.git/commitdiff
Add missing hash.new mypy stub entries
authorSergey Matveev <stargrave@stargrave.org>
Sat, 19 Nov 2016 19:59:27 +0000 (22:59 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sat, 19 Nov 2016 19:59:27 +0000 (22:59 +0300)
pygost/gost34112012.py
pygost/stubs/pygost/gost34112012256.pyi
pygost/stubs/pygost/gost34112012512.pyi
pygost/stubs/pygost/gost341194.pyi

index de4ef2e07863cc165d14a1f5884ba22831a795e7..bfb7cc926dc3633e4e861ba84a900ebda6fe4577 100644 (file)
@@ -271,4 +271,3 @@ class GOST34112012(PEP247):
         hsh = g(0, hsh, pack("<Q", n) + 56 * b"\x00")
         hsh = g(0, hsh, chk)
         return hsh[-self._digest_size:]
-
index e1ce2f17d9e066eddfec47596fca15dfda294e62..365e9cc15d17cc4a8349af98fc984463a31031b6 100644 (file)
@@ -11,3 +11,6 @@ class GOST34112012256:
     def digest(self) -> bytes: ...
 
     def hexdigest(self) -> str: ...
+
+
+def new(data: bytes=...) -> GOST34112012256: ...
index 163fe7a559a960130512a900cb9f1290f431ea06..da384a450c6bc4e95f1b711bfb8c78b196ba5e8f 100644 (file)
@@ -11,3 +11,6 @@ class GOST34112012512:
     def digest(self) -> bytes: ...
 
     def hexdigest(self) -> str: ...
+
+
+def new(data: bytes=...) -> GOST34112012512: ...
index d16cb517113f9aeb4ed1e8819d898df8fb881446..18e04d4c4759f53a611fa2b6273ff7945f964796 100644 (file)
@@ -11,3 +11,6 @@ class GOST341194:
     def digest(self) -> bytes: ...
 
     def hexdigest(self) -> str: ...
+
+
+def new(data: bytes=..., sbox: str=...) -> GOST341194: ...