pem

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

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

Go to latest
Published: Aug 7, 2021 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Overview

Copyright 2020 Google LLC. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.package tpm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PEM

type PEM struct {
	crypto.Signer
	crypto.Decrypter

	ExtTLSConfig *tls.Config

	PublicCertFile string
	PublicPEMFile  string
	PrivatePEMFile string
	// contains filtered or unexported fields
}

func NewPEMCrypto

func NewPEMCrypto(conf *PEM) (PEM, error)

func (PEM) Decrypt

func (t PEM) Decrypt(rand io.Reader, msg []byte, opts crypto.DecrypterOpts) ([]byte, error)

func (PEM) Public

func (t PEM) Public() crypto.PublicKey

func (PEM) Sign

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

func (PEM) TLSCertificate

func (t PEM) TLSCertificate() tls.Certificate

func (PEM) TLSConfig

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

Jump to

Keyboard shortcuts

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