algo

package
v0.0.0-...-132bf55 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RSA2048  = "rsa2048"
	RSA3072  = "rsa3072"
	RSA4096  = "rsa4096"
	ECDSA256 = "ecdsa256"
	ECDSA384 = "ecdsa384"
	ECDSA521 = "ecdsa521"
	ED25519  = "ed25519"
)

Variables

Functions

This section is empty.

Types

type Handler

type Handler interface {
	GenerateKeyPair() (KeyPair, error)
	SignatureAlgorithm() x509.SignatureAlgorithm
}

func MatchHandler

func MatchHandler(priv crypto.PrivateKey) (Handler, error)

func NewHandler

func NewHandler(which string) (Handler, error)

type KeyPair

type KeyPair struct {
	PrivateKey crypto.PrivateKey
	PublicKey  crypto.PublicKey
}

type Signer

type Signer struct {
	Cert *x509.Certificate
	Key  crypto.PrivateKey
}

Jump to

Keyboard shortcuts

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