Skip to main content

tss_esapi/constants/
mod.rs

1// Copyright 2020 Contributors to the Parsec project.
2// SPDX-License-Identifier: Apache-2.0
3
4//! This module contains both the constants defined in the TSS specification (tss module)
5//! but also the internal representation of the TSS constants.
6
7/// Representation of the constants defined in the
8/// Constants -> TPM_ALG_ID section of the specification
9mod algorithm;
10pub use algorithm::AlgorithmIdentifier;
11
12/// The constants defined in the TSS specification.
13#[allow(
14    non_snake_case,
15    non_camel_case_types,
16    non_upper_case_globals,
17    dead_code,
18    clippy::all
19)]
20/// Exposes the constants form the TSS header.
21pub mod tss;
22
23/// Representation of the constants defined in the
24/// Constants -> TPM_ST section of the specification
25pub mod structure_tags;
26
27/// Representation of the constants defined in the
28/// Constants -> TPM_PT section of the specification
29pub mod property_tag;
30
31/// Representation of the constants defined in the
32/// Constants -> TPM_SU section of the specification
33pub mod startup_type;
34
35/// Representation of the constants defined in the
36/// Constants -> TPM_SE section of the specification
37pub mod session_type;
38
39/// Representation of the constants defined in the
40/// Constants -> TPM_CAP section of the specification
41pub mod capabilities;
42
43/// Representation of the return code TSS2_RC (TPM_RC)
44pub mod response_code;
45
46/// Representation of the constants defined in the
47/// NV Storage -> TPM_NT section of the specification
48pub mod nv_index_type;
49
50/// Representation of the constants defined in
51/// Constants -> TPM_ECC_CURVE section of the specification.
52pub mod ecc;
53
54/// Representation of the constants defined in
55/// Constants -> TPM_CC section of the specification.
56pub mod command_code;
57
58/// Representation of the constants defined in
59/// Constants -> TPM_PT_PCR section of the specification.
60pub mod pcr_property_tag;
61
62pub use capabilities::CapabilityType;
63pub use command_code::CommandCode;
64pub use ecc::EccCurveIdentifier;
65pub use nv_index_type::NvIndexType;
66pub use pcr_property_tag::PcrPropertyTag;
67pub use property_tag::PropertyTag;
68pub use response_code::{ResponseCode, Tss2ResponseCode, Tss2ResponseCodeKind};
69pub use session_type::SessionType;
70pub use startup_type::StartupType;
71pub use structure_tags::StructureTag;