Documentation ¶
Index ¶
- func MarshalPKCS8PrivateKey(key *dsa.PrivateKey) ([]byte, error)
- func MarshalPKCS8PublicKey(pub *dsa.PublicKey) ([]byte, error)
- func MarshalPrivateKey(key *dsa.PrivateKey) ([]byte, error)
- func MarshalPublicKey(key *dsa.PublicKey) ([]byte, error)
- func ParsePKCS8PrivateKey(derBytes []byte) (key *dsa.PrivateKey, err error)
- func ParsePKCS8PublicKey(derBytes []byte) (*dsa.PublicKey, error)
- func ParsePrivateKey(derBytes []byte) (*dsa.PrivateKey, error)
- func ParsePublicKey(derBytes []byte) (*dsa.PublicKey, error)
- type PKCS1Key
- func (this PKCS1Key) MarshalPrivateKey(key *dsa.PrivateKey) ([]byte, error)
- func (this PKCS1Key) MarshalPublicKey(key *dsa.PublicKey) ([]byte, error)
- func (this PKCS1Key) ParsePrivateKey(derBytes []byte) (*dsa.PrivateKey, error)
- func (this PKCS1Key) ParsePublicKey(derBytes []byte) (*dsa.PublicKey, error)
- type PKCS8Key
- func (this PKCS8Key) MarshalPKCS8PrivateKey(key *dsa.PrivateKey) ([]byte, error)
- func (this PKCS8Key) MarshalPKCS8PublicKey(key *dsa.PublicKey) ([]byte, error)
- func (this PKCS8Key) ParsePKCS8PrivateKey(derBytes []byte) (key *dsa.PrivateKey, err error)
- func (this PKCS8Key) ParsePKCS8PublicKey(derBytes []byte) (*dsa.PublicKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalPKCS8PrivateKey ¶ added in v1.0.1022
func MarshalPKCS8PrivateKey(key *dsa.PrivateKey) ([]byte, error)
PKCS8 包装私钥
func MarshalPKCS8PublicKey ¶ added in v1.0.1022
PKCS8 包装公钥
func MarshalPrivateKey ¶ added in v1.0.1022
func MarshalPrivateKey(key *dsa.PrivateKey) ([]byte, error)
包装私钥
func MarshalPublicKey ¶ added in v1.0.1022
包装公钥
func ParsePKCS8PrivateKey ¶ added in v1.0.1022
func ParsePKCS8PrivateKey(derBytes []byte) (key *dsa.PrivateKey, err error)
PKCS8 解析私钥
func ParsePKCS8PublicKey ¶ added in v1.0.1022
PKCS8 解析公钥
func ParsePrivateKey ¶ added in v1.0.1022
func ParsePrivateKey(derBytes []byte) (*dsa.PrivateKey, error)
解析私钥
Types ¶
type PKCS1Key ¶ added in v1.0.1032
type PKCS1Key struct{}
dsa pkcs1 密钥
func (PKCS1Key) MarshalPrivateKey ¶ added in v1.0.1032
func (this PKCS1Key) MarshalPrivateKey(key *dsa.PrivateKey) ([]byte, error)
包装私钥
func (PKCS1Key) MarshalPublicKey ¶ added in v1.0.1032
包装公钥
func (PKCS1Key) ParsePrivateKey ¶ added in v1.0.1032
func (this PKCS1Key) ParsePrivateKey(derBytes []byte) (*dsa.PrivateKey, error)
解析私钥
type PKCS8Key ¶ added in v1.0.1032
type PKCS8Key struct{}
dsa pkcs8 密钥
func (PKCS8Key) MarshalPKCS8PrivateKey ¶ added in v1.0.1032
func (this PKCS8Key) MarshalPKCS8PrivateKey(key *dsa.PrivateKey) ([]byte, error)
PKCS8 包装私钥
func (PKCS8Key) MarshalPKCS8PublicKey ¶ added in v1.0.1032
PKCS8 包装公钥
func (PKCS8Key) ParsePKCS8PrivateKey ¶ added in v1.0.1032
func (this PKCS8Key) ParsePKCS8PrivateKey(derBytes []byte) (key *dsa.PrivateKey, err error)
PKCS8 解析私钥
Click to show internal directories.
Click to hide internal directories.