]> Cypherpunks.ru repositories - pygost.git/blob - pygost/stubs/pygost/iface.pyi
084f902b1d911739021976d873a12213fae86b37
[pygost.git] / pygost / stubs / pygost / iface.pyi
1 from abc import ABCMeta
2 from abc import abstractmethod
3
4
5 class PEP247(metaclass=ABCMeta):
6     @abstractmethod
7     @property
8     def digest_size(self) -> int: ...
9
10     @abstractmethod
11     def copy(self) -> "PEP247": ...
12
13     @abstractmethod
14     def update(self, data: bytes) -> None: ...
15
16     @abstractmethod
17     def digest(self) -> bytes: ...
18
19     @abstractmethod
20     def hexdigest(self) -> str: ...