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 / x448.pyi
1 from abc import ABCMeta, abstractmethod
2
3 from cryptography.hazmat.primitives.serialization import Encoding, KeySerializationEncryption, PrivateFormat, PublicFormat
4
5 class X448PrivateKey(metaclass=ABCMeta):
6     @classmethod
7     def from_private_bytes(cls, data: bytes) -> X448PrivateKey: ...
8     @classmethod
9     def generate(cls) -> X448PrivateKey: ...
10     @abstractmethod
11     def exchange(self, peer_public_key: X448PublicKey) -> bytes: ...
12     @abstractmethod
13     def private_bytes(
14         self, encoding: Encoding, format: PrivateFormat, encryption_algorithm: KeySerializationEncryption
15     ) -> bytes: ...
16     @abstractmethod
17     def public_key(self) -> X448PublicKey: ...
18
19 class X448PublicKey(metaclass=ABCMeta):
20     @classmethod
21     def from_public_bytes(cls, data: bytes) -> X448PublicKey: ...
22     @abstractmethod
23     def public_bytes(self, encoding: Encoding, format: PublicFormat) -> bytes: ...