| 1 | from types import ModuleType |
| 2 | from typing import Union |
| 3 | |
| 4 | Buffer = Union[bytes, bytearray, memoryview] |
| 5 | |
| 6 | class Poly1305_MAC(object): |
| 7 | block_size: int |
| 8 | digest_size: int |
| 9 | oid: str |
| 10 | |
| 11 | def __init__(self, |
| 12 | r : int, |
| 13 | s : int, |
| 14 | data : Buffer) -> None: ... |
| 15 | def update(self, data: Buffer) -> Poly1305_MAC: ... |
| 16 | def digest(self) -> bytes: ... |
| 17 | def hexdigest(self) -> str: ... |
| 18 | def verify(self, mac_tag: Buffer) -> None: ... |
| 19 | def hexverify(self, hex_mac_tag: str) -> None: ... |
| 20 | |
| 21 | def new(key: Buffer, |
| 22 | cipher: ModuleType, |
| 23 | nonce: Buffer = ..., |
| 24 | data: Buffer = ...) -> Poly1305_MAC: ... |