pki

package
v1.3.71 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalPEMPrivateKey

func MarshalPEMPrivateKey(sk sign.PrivateKey) ([]byte, error)

func MarshalPEMPublicKey

func MarshalPEMPublicKey(pk sign.PublicKey) ([]byte, error)

func MarshalPKIXPrivateKey

func MarshalPKIXPrivateKey(sk sign.PrivateKey) ([]byte, error)

func MarshalPKIXPublicKey

func MarshalPKIXPublicKey(pk sign.PublicKey) ([]byte, error)

func SchemeByOid

func SchemeByOid(oid asn1.ObjectIdentifier) sign.Scheme

func SchemeByTLSID

func SchemeByTLSID(id uint) sign.Scheme

func UnmarshalPEMPrivateKey

func UnmarshalPEMPrivateKey(data []byte) (sign.PrivateKey, error)

func UnmarshalPEMPublicKey

func UnmarshalPEMPublicKey(data []byte) (sign.PublicKey, error)

func UnmarshalPKIXPrivateKey

func UnmarshalPKIXPrivateKey(data []byte) (sign.PrivateKey, error)

func UnmarshalPKIXPublicKey

func UnmarshalPKIXPublicKey(data []byte) (sign.PublicKey, error)

Types

type CertificateScheme

type CertificateScheme interface {
	// Return the appropriate OIDs for this instance.  It is implicitly
	// assumed that the encoding is simple: e.g. uses the same OID for
	// signature and public key like Ed25519.
	Oid() asn1.ObjectIdentifier
}

Additional methods when the signature scheme is supported in X509.

type TLSScheme

type TLSScheme interface {
	TLSIdentifier() uint
}

Additional methods when the signature scheme is supported in TLS.

Jump to

Keyboard shortcuts

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