tao_support

package
v0.0.0-...-b5aa0b6 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2017 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package tao_support is a generated protocol buffer package.

It is generated from these files:

taosupport.proto

It has these top-level messages:

SavedProgramData

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeserializeProgramData

func DeserializeProgramData(buf []byte, programObject *TaoProgramData) error

func EncodeTLSCertFromSigner

func EncodeTLSCertFromSigner(s *tao.Signer, cert *x509.Certificate) (*tls.Certificate, error)

EncodeTLSCert combines a signing key and a certificate in a single tls certificate suitable for a TLS config.

func GetProgramData

func GetProgramData(d *tao.Domain, caAddr string, progPath string, useSimpleDomainService bool,
	programObject *TaoProgramData) error

func InitProgramKeys

func InitProgramKeys(d *tao.Domain, caAddr string, useSimpleDomainService bool,
	programData *TaoProgramData) error

func OpenTaoChannel

func OpenTaoChannel(programObject *TaoProgramData, serverAddr *string) (
	*util.MessageStream, *string, error)

Establishes the Tao Channel for a client using the Program Key. This program does all the standard client side channel negotiation. After negotiation is complete. ms is the bi-directional confidentiality and integrity protected channel. OpenTaoChannel returns the stream (ms) for subsequent reads and writes as well as the server's Tao Principal Name.

func PrincipalNameFromDERCert

func PrincipalNameFromDERCert(derCert []byte) *string

This is not used now but Cloudproxy principals are in the Organization name.

func RequestDomainServiceCert

func RequestDomainServiceCert(network, addr string, requestingKey *tao.Signer,
	requestorCert *x509.Certificate, delegation *tao.Attestation,
	v *tao.Verifier) (*domain_policy.DomainCertResponse, error)

RequestDomainServiceCert requests the signed Program Cert from SimpleDomainService

func SaveProgramData

func SaveProgramData(fileName string, programObject *TaoProgramData) error

func SealMaterial

func SealMaterial(material []byte) ([]byte, error)

func SerializeProgramData

func SerializeProgramData(programData *TaoProgramData) ([]byte, error)

func TaoParadigm

func TaoParadigm(cfg *string, filePath *string, useSimpleDomainService bool, caAddr string,
	programObject *TaoProgramData) error

cfg is policy domain config info filePath is path to program data

func UnsealMaterial

func UnsealMaterial(material []byte) ([]byte, error)

Types

type SavedProgramData

type SavedProgramData struct {
	FilePath         *string  `protobuf:"bytes,1,opt,name=file_path,json=filePath" json:"file_path,omitempty"`
	PolicyCert       []byte   `protobuf:"bytes,2,opt,name=policy_cert,json=policyCert" json:"policy_cert,omitempty"`
	ProgramName      *string  `protobuf:"bytes,3,opt,name=program_name,json=programName" json:"program_name,omitempty"`
	SigningKeyBlob   []byte   `protobuf:"bytes,4,opt,name=signing_key_blob,json=signingKeyBlob" json:"signing_key_blob,omitempty"`
	CryptingKeyBlob  []byte   `protobuf:"bytes,5,opt,name=crypting_key_blob,json=cryptingKeyBlob" json:"crypting_key_blob,omitempty"`
	SignerCertChain  [][]byte `protobuf:"bytes,6,rep,name=signer_cert_chain,json=signerCertChain" json:"signer_cert_chain,omitempty"`
	CryptoSuite      *string  `protobuf:"bytes,7,opt,name=crypto_suite,json=cryptoSuite" json:"crypto_suite,omitempty"`
	Delegation       []byte   `protobuf:"bytes,8,opt,name=delegation" json:"delegation,omitempty"`
	XXX_unrecognized []byte   `json:"-"`
}

func (*SavedProgramData) Descriptor

func (*SavedProgramData) Descriptor() ([]byte, []int)

func (*SavedProgramData) GetCryptingKeyBlob

func (m *SavedProgramData) GetCryptingKeyBlob() []byte

func (*SavedProgramData) GetCryptoSuite

func (m *SavedProgramData) GetCryptoSuite() string

func (*SavedProgramData) GetDelegation

func (m *SavedProgramData) GetDelegation() []byte

func (*SavedProgramData) GetFilePath

func (m *SavedProgramData) GetFilePath() string

func (*SavedProgramData) GetPolicyCert

func (m *SavedProgramData) GetPolicyCert() []byte

func (*SavedProgramData) GetProgramName

func (m *SavedProgramData) GetProgramName() string

func (*SavedProgramData) GetSignerCertChain

func (m *SavedProgramData) GetSignerCertChain() [][]byte

func (*SavedProgramData) GetSigningKeyBlob

func (m *SavedProgramData) GetSigningKeyBlob() []byte

func (*SavedProgramData) ProtoMessage

func (*SavedProgramData) ProtoMessage()

func (*SavedProgramData) Reset

func (m *SavedProgramData) Reset()

func (*SavedProgramData) String

func (m *SavedProgramData) String() string

type TaoProgramData

type TaoProgramData struct {
	// true after initialization.
	Initialized bool

	// Program name.
	TaoName string

	// DER encoded policy cert for domain.
	PolicyCert []byte

	// Program Signing key.
	ProgramSigningKey *tao.Signer

	// Program Crypting Key.
	ProgramCryptingKey *tao.Crypter

	// Delegation
	Delegation *tao.Attestation

	// Program Cert.
	ProgramCert []byte

	// Cert Chain
	CertChain [][]byte

	// Path for program to read and write files.
	ProgramFilePath *string
}

func (*TaoProgramData) ClearTaoProgramData

func (pp *TaoProgramData) ClearTaoProgramData()

Jump to

Keyboard shortcuts

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