Show / Hide Table of Contents

Class TpmCollector

Inheritance
System.Object
BaseCollector
TpmCollector
Implements
IPlatformRunnable
Inherited Members
BaseCollector.Results
BaseCollector.RunStatus
BaseCollector.Start()
BaseCollector.Stop()
BaseCollector.TryExecute(Nullable<CancellationToken>)
Namespace: Microsoft.CST.AttackSurfaceAnalyzer.Collectors
Assembly: AsaLib.dll
Syntax
public class TpmCollector : BaseCollector, IPlatformRunnable

Constructors

| Improve this Doc View Source

TpmCollector(CollectorOptions, Nullable<Action<CollectObject>>, Boolean)

Declaration
public TpmCollector(CollectorOptions opts, Action<CollectObject>? changeHandler, bool TestMode = false)
Parameters
Type Name Description
CollectorOptions opts
System.Nullable<Action<CollectObject>> changeHandler
System.Boolean TestMode

Properties

| Improve this Doc View Source

TestMode

Declaration
public bool TestMode { get; }
Property Value
Type Description
System.Boolean

Methods

| Improve this Doc View Source

CanRunOnPlatform()

Declaration
public override bool CanRunOnPlatform()
Returns
Type Description
System.Boolean
Overrides
BaseCollector.CanRunOnPlatform()
| Improve this Doc View Source

DumpNV(Tpm2)

Declaration
public static List<AsaNvIndex> DumpNV(Tpm2 tpm)
Parameters
Type Name Description
Tpm2 tpm
Returns
Type Description
List<AsaNvIndex>
| Improve this Doc View Source

DumpPCRs(Tpm2)

Declaration
public static Dictionary<(TpmAlgId, uint), byte[]> DumpPCRs(Tpm2 tpm)
Parameters
Type Name Description
Tpm2 tpm
Returns
Type Description
Dictionary<System.ValueTuple<TpmAlgId, System.UInt32>, System.Byte[]>
| Improve this Doc View Source

DumpPCRs(Tpm2, TpmAlgId, PcrSelection[])

Declaration
public static Dictionary<(TpmAlgId, uint), byte[]> DumpPCRs(Tpm2 tpm, TpmAlgId tpmAlgId, PcrSelection[] pcrs)
Parameters
Type Name Description
Tpm2 tpm
TpmAlgId tpmAlgId
PcrSelection[] pcrs
Returns
Type Description
Dictionary<System.ValueTuple<TpmAlgId, System.UInt32>, System.Byte[]>
| Improve this Doc View Source

DumpPersistentKeys(Tpm2)

Declaration
public static List<CryptographicKeyObject> DumpPersistentKeys(Tpm2 tpm)
Parameters
Type Name Description
Tpm2 tpm
Returns
Type Description
List<CryptographicKeyObject>
| Improve this Doc View Source

GetSupportedAlgorithms(Tpm2)

Declaration
public static List<AlgProperty> GetSupportedAlgorithms(Tpm2 tpm)
Parameters
Type Name Description
Tpm2 tpm
Returns
Type Description
List<AlgProperty>
| Improve this Doc View Source

GetSupportedCommands(Tpm2)

Declaration
public static List<TpmCc> GetSupportedCommands(Tpm2 tpm)
Parameters
Type Name Description
Tpm2 tpm
Returns
Type Description
List<TpmCc>
| Improve this Doc View Source

GetVersionString(Tpm2, String)

Declaration
public static string GetVersionString(Tpm2 tpm, string manufacturer)
Parameters
Type Name Description
Tpm2 tpm
System.String manufacturer
Returns
Type Description
System.String

Implements

IPlatformRunnable
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX