dsa

package
v1.0.1021 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DsaPkcs1Key

type DsaPkcs1Key struct{}

dsa pkcs1 密钥

func NewDsaPkcs1Key

func NewDsaPkcs1Key() DsaPkcs1Key

构造函数

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 NewDsaPkcs8Key

func NewDsaPkcs8Key() DsaPkcs8Key

构造函数

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 解析公钥

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL