Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

aroundthecode / pycryptodome   python

Repository URL to install this package:

Version: 3.7.2 

/ Cipher / _mode_openpgp.pyi

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: ...