package pki

import "github.com/cloudflare/circl/pki"

Index

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.

Source Files

pki.go

Version
v1.6.1 (latest)
Published
Apr 9, 2025
Platform
linux/amd64
Imports
7 packages
Last checked
2 days ago

Tools for package owners.