Documentation ¶
Overview ¶
Package cfca handles cfca issued key and certificate
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalSM2 ¶
func MarshalSM2(password []byte, key *sm2.PrivateKey, cert *smx509.Certificate) ([]byte, error)
MarshalSM2 encodes sm2 private key and related certificate to cfca defined format
func ParseSM2 ¶
func ParseSM2(password, data []byte) (*sm2.PrivateKey, *smx509.Certificate, error)
ParseSM2 parses the der data, returns private key and related certificate, it's CFCA private structure.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.