vtpm

package
v0.0.0-...-8dd468e Latest Latest
Warning

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

Go to latest
Published: May 30, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package vtpm contains utilities for encryption leveraging GCE Shielded Instance vTPM

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptBytes

func DecryptBytes(vtpmRWC io.ReadWriteCloser, blob *DecryptionBlob) ([]byte, error)

func OpenVTPM

func OpenVTPM(vtpmPath string) (io.ReadWriteCloser, error)

Types

type DecryptionBlob

type DecryptionBlob struct {
	SealedKey  *tpmpb.ImportBlob
	Ciphertext []byte
}

func EncryptBytes

func EncryptBytes(siid *gcev1.ShieldedInstanceIdentity, bytes []byte) (*DecryptionBlob, error)

Jump to

Keyboard shortcuts

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