aboutsummaryrefslogtreecommitdiff
path: root/frozen_deps/Cryptodome/Cipher/_mode_openpgp.pyi
blob: 14b810588d15c2c693b6b6580803aee05847cfe4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from types import ModuleType
from typing import Union, Dict

Buffer = Union[bytes, bytearray, memoryview]

__all__ = ['OpenPgpMode']

class OpenPgpMode(object):
    block_size: int
    iv: Union[bytes, bytearray, memoryview]
    IV: Union[bytes, bytearray, memoryview]
    
    def __init__(self,
                 factory: ModuleType,
                 key: Buffer,
                 iv: Buffer,
                 cipher_params: Dict) -> None: ...
    def encrypt(self, plaintext: Buffer) -> bytes: ...
    def decrypt(self, plaintext: Buffer) -> bytes: ...