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 / concatkdf.pyi
1 from cryptography.hazmat.backends.interfaces import HashBackend, HMACBackend
2 from cryptography.hazmat.primitives.hashes import HashAlgorithm
3 from cryptography.hazmat.primitives.kdf import KeyDerivationFunction
4
5 class ConcatKDFHash(KeyDerivationFunction):
6     def __init__(self, algorithm: HashAlgorithm, length: int, otherinfo: bytes | None, backend: HashBackend | None = ...): ...
7     def derive(self, key_material: bytes) -> bytes: ...
8     def verify(self, key_material: bytes, expected_key: bytes) -> None: ...
9
10 class ConcatKDFHMAC(KeyDerivationFunction):
11     def __init__(
12         self,
13         algorithm: HashAlgorithm,
14         length: int,
15         salt: bytes | None,
16         otherinfo: bytes | None,
17         backend: HMACBackend | None = ...,
18     ): ...
19     def derive(self, key_material: bytes) -> bytes: ...
20     def verify(self, key_material: bytes, expected_key: bytes) -> None: ...