crypto

package
v0.0.0-...-6497397 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificate

type Certificate struct {
	Cert string
	Key  string
}

Source: https://github.com/Masterminds/sprig/blob/master/crypto.go

func GenCA

func GenCA(
	cn string,
	daysValid int,
) (Certificate, error)

func GenerateSignedCertificate

func GenerateSignedCertificate(
	cn string,
	ips []interface{},
	alternateDNS []string,
	daysValid int,
	ca Certificate,
) (Certificate, error)

type DSAKeyFormat

type DSAKeyFormat struct {
	Version       int
	P, Q, G, Y, X *big.Int
}

DSAKeyFormat stores the format for DSA keys. Used by pemBlockForKey

Jump to

Keyboard shortcuts

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