tpm

package
v0.0.0-...-f938a04 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package tpm implements TPM2 API to seal and Unseal data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Seal

func Seal(tpmPath string, pcr int, srkPassword, objectPassword string, dataToSeal []byte) ([]byte, []byte, error)

Seal seals supplied data to TPM using PCRs and password.

func Unseal

func Unseal(tpmPath string, pcr int, srkPassword, objectPassword string, privateArea, publicArea []byte) ([]byte, error)

Unseal unseals data from TPM based on PCRs and password defined by the polic attached to the protected object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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