pem

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: 10 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

	ExtTLSConfig *tls.Config

	PublicCertFile string
	PrivatePEMFile string

	SignatureAlgorithm x509.SignatureAlgorithm
	// contains filtered or unexported fields
}

func NewPEMCrypto

func NewPEMCrypto(conf *PEM) (PEM, 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