keytype

package
v0.0.0-...-3746c95 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyUnknown = Type("")
	KeyP224    = Type("P-224")
	KeyP256    = Type("P-256")
	KeyP384    = Type("P-384")
	KeyP521    = Type("P-521")
	Key25519   = Type("25519")
)

Variables

View Source
var (
	ErrUnknownType = errors.New("unknown keyType")
)

Functions

This section is empty.

Types

type Type

type Type string

func KeyRSA

func KeyRSA(bits uint) Type

func TypeOf

func TypeOf(key any) Type

func (Type) Is25519

func (t Type) Is25519() bool

func (Type) IsEc

func (t Type) IsEc() bool

func (Type) IsEcdsa

func (t Type) IsEcdsa() bool

func (Type) IsRsa

func (t Type) IsRsa() bool

func (Type) IsUnknown

func (t Type) IsUnknown() bool

func (Type) New

func (t Type) New(rand io.Reader) (pub crypto.PublicKey, priv crypto.PrivateKey, err error)

func (Type) String

func (t Type) String() string

Jump to

Keyboard shortcuts

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