key

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetCreateFiles

func SetCreateFiles(filename string) option

Types

type GenerateKey

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

func NewGenerateKey

func NewGenerateKey() *GenerateKey

func (*GenerateKey) CreateX509FromECDSAPrivateKey

func (g *GenerateKey) CreateX509FromECDSAPrivateKey(key *ecdsa.PrivateKey, opts ...option) (*pem.Block, error)

func (*GenerateKey) GenerateCert

func (g *GenerateKey) GenerateCert(pub, priv any, opts ...option) (*pem.Block, error)

func (*GenerateKey) GenerateECDSAPrivateKey

func (g *GenerateKey) GenerateECDSAPrivateKey() (*ecdsa.PrivateKey, error)

func (*GenerateKey) GeneratePKCS12

func (g *GenerateKey) GeneratePKCS12(cert *pem.Block, prv *ecdsa.PrivateKey, password string, opts ...option) ([]byte, error)

func (*GenerateKey) GetPublicKeyFromECDSAPrivateKey

func (g *GenerateKey) GetPublicKeyFromECDSAPrivateKey(in *ecdsa.PrivateKey) *ecdsa.PublicKey

Jump to

Keyboard shortcuts

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