aboutsummaryrefslogtreecommitdiff
path: root/frozen_deps/Cryptodome/Hash/HMAC.pyi
blob: b577230f5be5dc9491b55cfd7db27c2eedd66f17 (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
24
25
from types import ModuleType
from typing import Union, Dict

Buffer = Union[bytes, bytearray, memoryview]

digest_size: int

class HMAC(object):
    digest_size: int

    def __init__(self,
		 key: Buffer,
                 msg: Buffer,
		 digestmod: ModuleType) -> None: ...
    def update(self, msg: Buffer) -> HMAC: ...
    def copy(self) -> HMAC: ...
    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,
        msg: Buffer = ...,
	digestmod: ModuleType = ...) -> HMAC: ...