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 DsaPkcs1Key
- func (this DsaPkcs1Key) MarshalPrivateKey(key *dsa.PrivateKey) ([]byte, error)
- func (this DsaPkcs1Key) MarshalPublicKey(key *dsa.PublicKey) ([]byte, error)
- func (this DsaPkcs1Key) ParsePrivateKey(derBytes []byte) (*dsa.PrivateKey, error)
- func (this DsaPkcs1Key) ParsePublicKey(derBytes []byte) (*dsa.PublicKey, error)
- type DsaPkcs8Key
- func (this DsaPkcs8Key) MarshalPKCS8PrivateKey(key *dsa.PrivateKey) ([]byte, error)
- func (this DsaPkcs8Key) MarshalPKCS8PublicKey(key *dsa.PublicKey) ([]byte, error)
- func (this DsaPkcs8Key) ParsePKCS8PrivateKey(derBytes []byte) (key *dsa.PrivateKey, err error)
- func (this DsaPkcs8Key) 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 DsaPkcs1Key ¶
type DsaPkcs1Key struct{}
dsa pkcs1 密钥
func (DsaPkcs1Key) MarshalPrivateKey ¶
func (this DsaPkcs1Key) MarshalPrivateKey(key *dsa.PrivateKey) ([]byte, error)
包装私钥
func (DsaPkcs1Key) MarshalPublicKey ¶
func (this DsaPkcs1Key) MarshalPublicKey(key *dsa.PublicKey) ([]byte, error)
包装公钥
func (DsaPkcs1Key) ParsePrivateKey ¶
func (this DsaPkcs1Key) ParsePrivateKey(derBytes []byte) (*dsa.PrivateKey, error)
解析私钥
func (DsaPkcs1Key) ParsePublicKey ¶
func (this DsaPkcs1Key) ParsePublicKey(derBytes []byte) (*dsa.PublicKey, error)
解析公钥
type DsaPkcs8Key ¶
type DsaPkcs8Key struct{}
dsa pkcs8 密钥
func (DsaPkcs8Key) MarshalPKCS8PrivateKey ¶
func (this DsaPkcs8Key) MarshalPKCS8PrivateKey(key *dsa.PrivateKey) ([]byte, error)
PKCS8 包装私钥
func (DsaPkcs8Key) MarshalPKCS8PublicKey ¶
func (this DsaPkcs8Key) MarshalPKCS8PublicKey(key *dsa.PublicKey) ([]byte, error)
PKCS8 包装公钥
func (DsaPkcs8Key) ParsePKCS8PrivateKey ¶
func (this DsaPkcs8Key) ParsePKCS8PrivateKey(derBytes []byte) (key *dsa.PrivateKey, err error)
PKCS8 解析私钥
func (DsaPkcs8Key) ParsePKCS8PublicKey ¶
func (this DsaPkcs8Key) ParsePKCS8PublicKey(derBytes []byte) (*dsa.PublicKey, error)
PKCS8 解析公钥
Click to show internal directories.
Click to hide internal directories.