Documentation
¶
Index ¶
- 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(pub *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 ¶
This section is empty.
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(pub *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.