pycryptodome/lib/Crypto/Cipher/_mode_ofb.pyi

13 lines
500 B
Python
Raw Normal View History

from typing import Union
from Crypto.Util._raw_api import SmartPointer
__all__ = ['OfbMode']
class OfbMode(object):
block_size: int
iv: Union[bytes, bytearray, memoryview]
IV: Union[bytes, bytearray, memoryview]
def __init__(self, block_cipher: SmartPointer, iv: Union[bytes, bytearray, memoryview]) -> None: ...
def encrypt(self, plaintext: Union[bytes, bytearray, memoryview]) -> bytes: ...
def decrypt(self, ciphertext: Union[bytes, bytearray, memoryview]) -> bytes: ...