crypto

package
v1.3.1-rc1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadPKCS1Key

func LoadPKCS1Key(in io.Reader) (*rsa.PrivateKey, error)

func LoadPKCS1KeyFile

func LoadPKCS1KeyFile(keyFile string) (*rsa.PrivateKey, error)

Types

type Certificate

type Certificate struct {
	// contains filtered or unexported fields
}

func NewSelfSignedCertificate

func NewSelfSignedCertificate(key *rsa.PrivateKey, isCA bool, ipAddresses []net.IP) (Certificate, error)

func NewSignedCertificate

func NewSignedCertificate(parent Certificate, ipAddress []net.IP) (Certificate, error)

func (*Certificate) MarshalCertficate

func (cert *Certificate) MarshalCertficate(out io.Writer) error

func (*Certificate) MarshalPrivateKey

func (cert *Certificate) MarshalPrivateKey(out io.Writer) error

Jump to

Keyboard shortcuts

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