Tpm2-pytss

Latest version: v2.3.0

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

Scan your dependencies

Page 1 of 2

2.3.0

Fixed
- Fix builds for tpm2-tss > 4.0.1.
- Support newer releases of the cryptography package.

Added
- Add module to use TPM keys with the cryptography package.
- Support for exists_ok for FAPI.create_nv, behaves the same as for FAPI.create_key.

Changed
- Support for the tpm2-tools encoder/decoder will be removed in the future and a warning has been added.

2.2.1

Fixed
- Fix tests `pcr_set_auth_value` and `pcr_set_auth_policy` tests when running against libtpms-based simulators.
- Fix integration with cryptography >= 42.0.1

2.2.0

Fixed
- Fix pycparse error for __float128.
- Fix check on ESYS_TR in policy_secret.
- Fix readthedocs builds.
- Fix hardcoded sizes in the policy module.

Added
- Add routine for making ESYS_TR from parts.
- Support unmarshal and marshal routines for constants.
- Provide a better error message for missing symbols.
- Add support for python 3.12.

Removed
- Drop support for python 3.7.
- Remove references to TPMS_ALGORITHM_DESCRIPTION.

2.1.0

Fixed
- using tpm2-pytss in unit tests within a mocked environment see 481.

Added
- tpm2-tools like strings via parse for TPM2_SYM_DEF and TPM2_SYM_DEF_OBJECT structures.
- support for algorithms strings in ESAPI start_auth_session.
- utils: credential_to_tools and tools_to_credential to convert to and from tpm2-tools makecredential outputs.
- TCTI: Add bindings to TCTISpiHelper.

2.0.0

Fixed
- Resolution of include directory search paths when building CFFI bindings.
- Typo in pip package name in README.
- Missing package pycparser dependency in setup.cfg.
- Minimum version of tss2-esys as 2.4.0.
- Reproducible documentation builds using `SOURCE_DATE_EPOCH`. See 376.
- documentation issues, such as cross linking, indentation and style.
- test/test_utils.py::TestUtils::test_make_credential_ecc_camellia when CAMELLIA is not supported.
- Stop leaking tpm simulator references in test harness.
- Limitation on 10 set policy callbacks, now has no hard limit, see 473

Added
- **Experimental** bindings to the policy library tss2-policy. Require version 3.3+ of tpm2-tss to enable.
- Support for Python 3.11.
- Testing on CI for built wheel.
- PyTCTI class for writing Python Native TCTIs.

Changed
- TCTI get\_poll\_handles now returning PollData object instead of ffi.CData.
- TCTI magic is now byte string eg b"\x1" of up to 8 bytes.

1.2.0

Added
- utils function to parse tpm2-tools PCR values as function: unmarshal_tools_pcr_values.
- official python 3.10 support.
- sm2 and sm4 tools like parsing support for TPMT_PUBLIC and TPM2B_PUBLIC structures.
- tpm2-tools compatible YAML encoding and decoding of TPM structures
Removed
- pkgconfig as runtime dependency
- Official Python 3.6 support.
- internal distutils usage.
- sm3 and sm4 support IF the backing cryptography package supports it.
Fixed:
- trsess_set_attributes attributes parameter should be a TPMA_SESSION or int, not just int.
- setup.cfg install_requires requirement that cryptography be version 3.0 or greater.
- Note in documentation incorrectly called None.
- ability to build a wheel and run tests from directory root. Note code for package is now under src folder.

Page 1 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.