massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / cryptography / cryptography / hazmat / primitives / serialization / pkcs12.pyi
1 from typing import Any
2
3 from cryptography.hazmat.primitives.asymmetric.dsa import DSAPrivateKeyWithSerialization
4 from cryptography.hazmat.primitives.asymmetric.ec import EllipticCurvePrivateKeyWithSerialization
5 from cryptography.hazmat.primitives.asymmetric.rsa import RSAPrivateKeyWithSerialization
6 from cryptography.hazmat.primitives.serialization import KeySerializationEncryption
7 from cryptography.x509 import Certificate
8
9 def load_key_and_certificates(
10     data: bytes, password: bytes | None, backend: Any | None = ...
11 ) -> tuple[Any | None, Certificate | None, list[Certificate]]: ...
12 def serialize_key_and_certificates(
13     name: bytes,
14     key: RSAPrivateKeyWithSerialization | EllipticCurvePrivateKeyWithSerialization | DSAPrivateKeyWithSerialization,
15     cert: Certificate | None,
16     cas: list[Certificate] | None,
17     enc: KeySerializationEncryption,
18 ) -> bytes: ...