:py:mod:`dissect.fve.crypto.dmcrypt` ==================================== .. py:module:: dissect.fve.crypto.dmcrypt Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: dissect.fve.crypto.dmcrypt.CryptStream .. py:class:: CryptStream(fh: BinaryIO, cipher: str, key: bytes, key_size: int | None = None, offset: int = 0, size: int | str | None = None, iv_tweak: int = 0, sector_size: int = 512) Bases: :py:obj:`dissect.util.stream.AlignedStream` Transparently decrypting stream. :param fh: The original file-like object, usually the encrypted disk. :param cipher: The cipher name/specification. :param key: The encryption key. :param key_size: Optional key size hint. :param offset: Optional base offset to the encrypted region. Segment offset in LUKS. :param size: Optional size hint. If ``None`` or ``"dynamic"``, determine the size by seeking to the end of ``fh``. :param iv_tweak: Optional IV tweak, or offset. :param sector_size: Optional sector size. Defaults to 512. .. py:attribute:: fh .. py:attribute:: cipher .. py:attribute:: offset :value: 0 .. py:attribute:: iv_tweak :value: 0 .. py:attribute:: sector_size :value: 512