key

package
v0.0.0-...-2c031b3 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultKeySize = 2048 // NIST recommendation
	SerialNumSize  = 128
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateKeyRequest

type CreateKeyRequest struct {
	Bits       int
	CommonName string
	Password   string
	ExpireDate time.Time
}

type CreateKeyResponse

type CreateKeyResponse struct {
	SerialNumber *big.Int
	KeyBytes     []byte
}

func CreateKey

func CreateKey(request *CreateKeyRequest) (*CreateKeyResponse, error)

Jump to

Keyboard shortcuts

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