package pki
import "github.com/cloudflare/circl/pki"
Index ¶
- func MarshalPEMPrivateKey(sk sign.PrivateKey) ([]byte, error)
- func MarshalPEMPublicKey(pk sign.PublicKey) ([]byte, error)
- func MarshalPKIXPrivateKey(sk sign.PrivateKey) ([]byte, error)
- func MarshalPKIXPublicKey(pk sign.PublicKey) ([]byte, error)
- func SchemeByOid(oid asn1.ObjectIdentifier) sign.Scheme
- func SchemeByTLSID(id uint) sign.Scheme
- func UnmarshalPEMPrivateKey(data []byte) (sign.PrivateKey, error)
- func UnmarshalPEMPublicKey(data []byte) (sign.PublicKey, error)
- func UnmarshalPKIXPrivateKey(data []byte) (sign.PrivateKey, error)
- func UnmarshalPKIXPublicKey(data []byte) (sign.PublicKey, error)
- type CertificateScheme
- type TLSScheme
Functions ¶
func MarshalPEMPrivateKey ¶
func MarshalPEMPrivateKey(sk sign.PrivateKey) ([]byte, error)
func MarshalPEMPublicKey ¶
func MarshalPKIXPrivateKey ¶
func MarshalPKIXPrivateKey(sk sign.PrivateKey) ([]byte, error)
func MarshalPKIXPublicKey ¶
func SchemeByOid ¶
func SchemeByOid(oid asn1.ObjectIdentifier) sign.Scheme
func SchemeByTLSID ¶
func UnmarshalPEMPrivateKey ¶
func UnmarshalPEMPrivateKey(data []byte) (sign.PrivateKey, error)
func UnmarshalPEMPublicKey ¶
func UnmarshalPKIXPrivateKey ¶
func UnmarshalPKIXPrivateKey(data []byte) (sign.PrivateKey, error)
func UnmarshalPKIXPublicKey ¶
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 ¶
- Version
- v1.6.1 (latest)
- Published
- Apr 9, 2025
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 2 days ago –
Tools for package owners.