hyb
2026-01-09 4cb426cb3ae31e772a09d4ade5b2f0242aaeefa0
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
26
27
28
29
30
from types import ModuleType
from typing import Union, Dict, Any
 
Buffer = Union[bytes, bytearray, memoryview]
 
digest_size: int
 
class CMAC(object):
    digest_size: int
 
    def __init__(self,
         key: Buffer,
                 msg: Buffer,
         ciphermod: ModuleType,
         cipher_params: Dict[str, Any],
                 mac_len: int, update_after_digest: bool) -> None: ...
    def update(self, data: Buffer) -> CMAC: ...
    def copy(self) -> CMAC: ...
    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 = ...,
    ciphermod: ModuleType = ...,
    cipher_params: Dict[str, Any] = ...,
    mac_len: int = ...,
        update_after_digest: bool = ...) -> CMAC: ...