HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //proc/1233/cwd/home/arjun/projects/env/lib/python3.10/site-packages/Crypto/Hash/Poly1305.pyi
from types import ModuleType
from typing import Union

Buffer = Union[bytes, bytearray, memoryview]

class Poly1305_MAC(object):
    block_size: int
    digest_size: int
    oid: str

    def __init__(self,
                 r : int,
                 s : int,
                 data : Buffer) -> None: ...
    def update(self, data: Buffer) -> Poly1305_MAC: ...
    def digest(self) -> bytes: ...
    def hexdigest(self) -> str: ...
    def verify(self, mac_tag: Buffer) -> None: ...
    def hexverify(self, hex_mac_tag: str) -> None: ...

def new(key: Buffer,
        cipher: ModuleType,
        nonce: Buffer = ...,
        data: Buffer = ...) -> Poly1305_MAC: ...