1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// Copyright 2020 Contributors to the Parsec project.
// SPDX-License-Identifier: Apache-2.0

/// This module contains both the constants defined in the TSS specification (tss module)
/// but also the internal representaion of the TSS constants.

/// Representation of the constants defined in the
/// Constants -> TPM_ALG_ID section of the specfication
mod algorithm;
pub use algorithm::AlgorithmIdentifier;

/// The contants defined in the TSS specification.
#[allow(
    non_snake_case,
    non_camel_case_types,
    non_upper_case_globals,
    dead_code,
    clippy::all
)]
/// Exposes the constants form the TSS header.
pub mod tss;

/// Representation of the constants defined in the
/// Constants -> TPM_ST section of the specfication
pub mod structure_tags;

/// Representation of the constants defined in the
/// Constants -> TPM_PT section of the specfication
pub mod property_tag;

/// Representation of the constants defined in the
/// Constants -> TPM_SU section of the specfication
pub mod startup_type;

/// Representation of the constants defined in the
/// Constants -> TPM_SE section of the specfication
pub mod session_type;

/// Representation of the constants defined in the
/// Constants -> TPM_CAP section of the specfication
pub mod capabilities;

/// Representation of the return code TSS2_RC (TPM_RC)
pub mod response_code;

/// Representation of the constants defined in the
/// NV Storage -> TPM_NT section of the specfication
pub mod nv_index_type;

pub use capabilities::CapabilityType;
pub use nv_index_type::NvIndexType;
pub use property_tag::PropertyTag;
pub use response_code::{ResponseCode, Tss2ResponseCode, Tss2ResponseCodeKind};
pub use session_type::SessionType;
pub use startup_type::StartupType;
pub use structure_tags::StructureTag;

/// Representation of the constants defined in
/// Constants -> TPM_ECC_CURVE section of the specification.
mod ecc;
pub use ecc::EccCurveIdentifier;