Documentation ¶
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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalPEMPrivateKey ¶
func MarshalPEMPrivateKey(sk sign.PrivateKey) ([]byte, error)
func MarshalPKIXPrivateKey ¶
func MarshalPKIXPrivateKey(sk sign.PrivateKey) ([]byte, error)
func SchemeByOid ¶
func SchemeByOid(oid asn1.ObjectIdentifier) sign.Scheme
func SchemeByTLSID ¶
func UnmarshalPEMPrivateKey ¶
func UnmarshalPEMPrivateKey(data []byte) (sign.PrivateKey, error)
func UnmarshalPKIXPrivateKey ¶
func UnmarshalPKIXPrivateKey(data []byte) (sign.PrivateKey, 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.
Click to show internal directories.
Click to hide internal directories.