Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalSM2PrivateKey ¶
func MarshalSM2PrivateKey(key *sm2.PrivateKey) ([]byte, error)
MarshalSM2PrivateKey converts an SM2 private key to SEC 1, ASN.1 DER form.
This kind of key is commonly encoded in PEM blocks of type "SM2 PRIVATE KEY". For a more flexible key format which is not SM2 specific, use MarshalPKCS8PrivateKey.
func ParseSM2PrivateKey ¶
func ParseSM2PrivateKey(der []byte) (*sm2.PrivateKey, error)
ParseECPrivateKey parses an SM2 private key in SEC 1, ASN.1 DER form.
This kind of key is commonly encoded in PEM blocks of type "SM2 PRIVATE KEY".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.