Pyimg4

Latest version: v0.8.5

Safety actively analyzes 623586 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

0.8.5

Major Changes
- Add `PYIMG4_FORCE_LZFSE` environment variable
- This environment variable forces the `lzfse` library to be used over `apple-compress` for *OS systems
- I don't recommend this to be used, but offering it for the sake of having a different option.

**Full Changelog**: https://github.com/m1stadev/PyIMG4/compare/v0.8.4...v0.8.5

0.8.4

Major Changes
- The compression libraries are now no longer an optional dependency.
- Fix a bug where incorrect Image4 payloads would be generated if any `extra` data was set (mostly A7-A9 kernelcaches)

**Full Changelog**: https://github.com/m1stadev/PyIMG4/compare/v0.8.3...v0.8.4

0.8.3

This is a small release to fix `pyimg4.IM4PData` not returning the correct compression type in some cases.

**Full Changelog**: https://github.com/m1stadev/PyIMG4/compare/v0.8.2...v0.8.3

0.8.2

**Major Changes**
- CLI: `pyimg4 img4 create` can now create an Image4 from raw data.
- CLI: `pyimg4 img4 extract` can now extract raw data from an Image4.
- CLI: `pyimg4 im4p info` now displays exact sizes when the verbose flag is passed,
- CLI: `pyimg4 im4p info` now prints the compression name correctly.
- Simplify ASN1-related code.
- Optimize compression-related code to prevent unnecessary (de)compressions from being done.

**API Changes**
- `pyimg4.IM4PData`
- `len(IM4PData)` now returns the size of `IM4PData.data`
- `IM4PData.compression` is now cached, and is set internally by `IM4PData._detect_compression()`


**Full Changelog**: https://github.com/m1stadev/PyIMG4/compare/v0.8.1...v0.8.2

0.8.1

**Major Changes**
- Add [`apple-compress`](https://github.com/m1stadev/apple-compress) dependency for proper LZFSE compression on Darwin systems. (#36)
- If you already have the `compression` dependencies installed, you will still need to manually install `apple-compress` if you don't already have it installed:
- `python3 -m pip install apple-compress`
- CLI: Add `pyimg4 im4m extract` command.
- This command extracts an Image4 manifest from an SHSH blob, with support for also extracting update/no-nonce blobs.
- Miscellaneous bug fixes.

**API Changes**
- `pyimg4.IM4PData`
- Can now take `extra` as an argument.
- Can now take `size` as an argument.
- This is meant to be the *uncompressed* size of the data. If you do not know the uncompressed size, you can choose to omit the argument, and it will be set to 0 by default (or the size of the data if uncompressed & unencrypted)
- Remove `get_lzfse_payload_size()`/`set_lzfse_payload_size()`


**Full Changelog**: https://github.com/m1stadev/PyIMG4/compare/v0.8...v0.8.1

0.8

**Major Changes**
- The minimum required Python version is now 3.8.
- The compresison libraries are now an optional install for those who wish to install PyIMG4 without a build system.
- A `RuntimeError` will be raised if you attempt to use any compression functionality without the required libraries installed.
- To install these dependencies, you can use the `compression` extra: `python3 -m pip install pyimg4[compression]`
- The `pyimg4.IM4M` class is now much less restrictive, to aid in IM4M fuzzing (more on the changes below).
- `pyimg4.IM4R.boot_nonce` now prints the boot nonce in the correct endianness.
- Other miscellaneous fixes.

**API Changes**
- `pyimg4.ManifestProperty`
- Can now be called with a fourcc/value pair.
- `pyimg4.ManifestImageProperties`
- Can now be called without any data.
- `pyimg4.IM4M`
- Can now be called without any data.
- Added `IM4M.output()`
- Added `IM4M.add_image_properties()`/`IM4M.remove_image_properties()`
- Added `IM4M.add_property()`/`IM4M.remove_property()`

- `pyimg4.Keybag`
- A `KeybagType` is now only required when calling with a key/IV pair.


**Full Changelog**: https://github.com/m1stadev/PyIMG4/compare/v0.7...v0.8

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.