...

Package pki

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

Overview ▾

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)

type CertificateScheme

Additional methods when the signature scheme is supported in X509.

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
}

type TLSScheme

Additional methods when the signature scheme is supported in TLS.

type TLSScheme interface {
    TLSIdentifier() uint
}