tpm

package module
v0.0.0-...-64ade09 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Vault

type Vault struct {
	crypto.Signer
	crypto.Decrypter

	ExtTLSConfig       *tls.Config
	SignatureAlgorithm x509.SignatureAlgorithm
	PublicCertFile     string
	VaultToken         string
	KeyPath            string
	SignPath           string
	KeyVersion         int
	VerifyPath         string // not used
	VaultCAcert        string
	VaultAddr          string
	// contains filtered or unexported fields
}

func NewVaultCrypto

func NewVaultCrypto(conf *Vault) (Vault, error)

func (Vault) Public

func (t Vault) Public() crypto.PublicKey

func (Vault) Sign

func (t Vault) Sign(_ io.Reader, digest []byte, opts crypto.SignerOpts) ([]byte, error)

func (Vault) TLSCertificate

func (t Vault) TLSCertificate() tls.Certificate

func (Vault) TLSConfig

func (t Vault) TLSConfig() *tls.Config

Jump to

Keyboard shortcuts

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