tpm

package
v0.0.0-...-5f8828b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TPM

type TPM struct {
	// contains filtered or unexported fields
}

func New

func New(devicePath string) (*TPM, error)

func (*TPM) Counter

func (t *TPM) Counter() uint32

func (*TPM) RegisterKey

func (t *TPM) RegisterKey(applicationParam []byte) ([]byte, *big.Int, *big.Int, error)

Register a new key with the TPM for the given applicationParam. RegisterKey returns the KeyHandle or an error.

func (*TPM) SignASN1

func (t *TPM) SignASN1(keyHandle, applicationParam, digest []byte) ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL