Documentation ¶
Index ¶
- func SetCreateFiles(filename string) option
- type GenerateKey
- func (g *GenerateKey) CreateX509FromECDSAPrivateKey(key *ecdsa.PrivateKey, opts ...option) (*pem.Block, error)
- func (g *GenerateKey) GenerateCert(pub, priv any, opts ...option) (*pem.Block, error)
- func (g *GenerateKey) GenerateECDSAPrivateKey() (*ecdsa.PrivateKey, error)
- func (g *GenerateKey) GeneratePKCS12(cert *pem.Block, prv *ecdsa.PrivateKey, password string, opts ...option) ([]byte, error)
- func (g *GenerateKey) GetPublicKeyFromECDSAPrivateKey(in *ecdsa.PrivateKey) *ecdsa.PublicKey
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
Click to show internal directories.
Click to hide internal directories.