dissect.fve.crypto.base

Module Contents

Classes

Attributes

dissect.fve.crypto.base.ENCRYPT = 0
dissect.fve.crypto.base.DECRYPT = 1
class dissect.fve.crypto.base.Cipher(key: bytes, key_size: int, block_size: int, iv_mode: type[IV], iv_options: str, sector_size: int = 512, iv_sector_size: int = 512)
key
key_size
key_size_bytes
block_size
sector_size = 512
iv_sector_size = 512
iv_mode
encrypt(ciphertext: bytes, sector: int = 0, output: bytearray | None = None) bytes | None
decrypt(ciphertext: bytes, sector: int = 0, output: bytearray | None = None) bytes | None
class dissect.fve.crypto.base.IV(cipher: Cipher, key: bytes, iv_options: str | None = None)
cipher
iv_size
generate(mode: int, iv: bytearray, data: bytearray, sector: int = 0) None
post(mode: int, data: bytearray, sector: int = 0) None
class dissect.fve.crypto.base.Plain(cipher: Cipher, key: bytes, iv_options: str | None = None)

Bases: IV

generate(mode: int, iv: bytearray, data: bytearray, sector: int = 0) None
class dissect.fve.crypto.base.Plain64(cipher: Cipher, key: bytes, iv_options: str | None = None)

Bases: IV

generate(mode: int, iv: bytearray, data: bytearray, sector: int = 0) None
class dissect.fve.crypto.base.Plain64BE(cipher: Cipher, key: bytes, iv_options: str | None = None)

Bases: IV

generate(mode: int, iv: bytearray, data: bytearray, sector: int = 0) None
class dissect.fve.crypto.base.EBOIV(cipher: Cipher, key: bytes, iv_options: str | None = None)

Bases: IV

class dissect.fve.crypto.base.ESSIV(cipher: Cipher, key: bytes, iv_options: str | None = None)

Bases: IV

class dissect.fve.crypto.base.Elephant(cipher: Cipher, key: bytes, iv_options: str | None = None)

Bases: IV