aboutsummaryrefslogtreecommitdiff
path: root/frozen_deps/Cryptodome/Hash/keccak.pyi
blob: 844d2565eb16cdc87a76586c5f99146cf4309817 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from typing import Union, Any

Buffer = Union[bytes, bytearray, memoryview]

class Keccak_Hash(object):
    digest_size: int
    def __init__(self,
                 data: Buffer,
                 digest_bytes: int,
                 update_after_digest: bool) -> None: ...
    def update(self, data: Buffer) -> Keccak_Hash: ...
    def digest(self) -> bytes: ...
    def hexdigest(self) -> str: ...
    def new(self,
            data: Buffer = ...,
            digest_bytes: int = ...,
            digest_bits: int = ...,
            update_after_digest: bool = ...) -> Keccak_Hash: ...

def new(data: Buffer = ...,
        digest_bytes: int = ...,
        digest_bits: int = ...,
        update_after_digest: bool = ...) -> Keccak_Hash: ...