massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / cryptography / cryptography / hazmat / primitives / kdf / kbkdf.pyi
1 from enum import Enum
2
3 from cryptography.hazmat.backends.interfaces import HMACBackend
4 from cryptography.hazmat.primitives.hashes import HashAlgorithm
5 from cryptography.hazmat.primitives.kdf import KeyDerivationFunction
6
7 class Mode(Enum):
8     CounterMode: str
9
10 class CounterLocation(Enum):
11     BeforeFixed: str
12     AfterFixed: str
13
14 class KBKDFHMAC(KeyDerivationFunction):
15     def __init__(
16         self,
17         algorithm: HashAlgorithm,
18         mode: Mode,
19         length: int,
20         rlen: int,
21         llen: int,
22         location: CounterLocation,
23         label: bytes | None,
24         context: bytes | None,
25         fixed: bytes | None,
26         backend: HMACBackend | None = ...,
27     ): ...
28     def derive(self, key_material: bytes) -> bytes: ...
29     def verify(self, key_material: bytes, expected_key: bytes) -> None: ...