massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / cryptography / cryptography / hazmat / primitives / asymmetric / padding.pyi
1 from abc import ABCMeta, abstractmethod
2 from typing import ClassVar
3
4 from cryptography.hazmat.primitives.hashes import HashAlgorithm
5
6 class AsymmetricPadding(metaclass=ABCMeta):
7     @property
8     @abstractmethod
9     def name(self) -> str: ...
10
11 class MGF1(object):
12     def __init__(self, algorithm: HashAlgorithm) -> None: ...
13
14 class OAEP(AsymmetricPadding):
15     def __init__(self, mgf: MGF1, algorithm: HashAlgorithm, label: bytes | None) -> None: ...
16     @property
17     def name(self) -> str: ...
18
19 class PKCS1v15(AsymmetricPadding):
20     @property
21     def name(self) -> str: ...
22
23 class PSS(AsymmetricPadding):
24     MAX_LENGTH: ClassVar[object]
25     def __init__(self, mgf: MGF1, salt_length: int | object) -> None: ...
26     @property
27     def name(self) -> str: ...