Skip to content

Tpm2 simulator

tpm2_simulator

Module that contains transportation layer classes for interacting with the TPM 2.0 simulator.

TpmSimulator

An object for interacting with the Tpm Simulator.

__init__

__init__(
    host: str = "localhost", port: int = 2321
) -> TpmSimulator

Initialize the simulator on the requested host (ip) and port.

send_raw_data

send_raw_data(data: str) -> None

Send raw data to the TPM simulator.

read_raw_data

read_raw_data(count: int) -> bytes

Read raw data from the TPM simulator.

send_data

send_data(data: str) -> bytes

Send data to the TPM simulator.

startup

startup(type: str) -> bytes

Initialize the connection to the TPM simulator.