mirror of
https://github.com/Legrandin/pycryptodome.git
synced 2025-12-08 05:19:46 +00:00
12 lines
551 B
Python
12 lines
551 B
Python
from types import ModuleType
|
|
from typing import Union, Any
|
|
|
|
__all__ = ['OpenPgpMode']
|
|
|
|
class OpenPgpMode(object):
|
|
block_size: int
|
|
iv: Union[bytes, bytearray, memoryview]
|
|
IV: Union[bytes, bytearray, memoryview]
|
|
def __init__(self, factory: ModuleType, key: Union[bytes, bytearray, memoryview], iv: Union[bytes, bytearray, memoryview], cipher_params: Any) -> None: ...
|
|
def encrypt(self, plaintext: Union[bytes, bytearray, memoryview]) -> bytes: ...
|
|
def decrypt(self, ciphertext: Union[bytes, bytearray, memoryview]) -> bytes: ...
|