dsa

package
v1.0.1035 Latest Latest
Warning

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

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

Documentation

Index

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

func MarshalPKCS8PublicKey(pub *dsa.PublicKey) ([]byte, error)

PKCS8 包装公钥

func MarshalPrivateKey added in v1.0.1022

func MarshalPrivateKey(key *dsa.PrivateKey) ([]byte, error)

包装私钥

func MarshalPublicKey added in v1.0.1022

func MarshalPublicKey(key *dsa.PublicKey) ([]byte, error)

包装公钥

func ParsePKCS8PrivateKey added in v1.0.1022

func ParsePKCS8PrivateKey(derBytes []byte) (key *dsa.PrivateKey, err error)

PKCS8 解析私钥

func ParsePKCS8PublicKey added in v1.0.1022

func ParsePKCS8PublicKey(derBytes []byte) (*dsa.PublicKey, error)

PKCS8 解析公钥

func ParsePrivateKey added in v1.0.1022

func ParsePrivateKey(derBytes []byte) (*dsa.PrivateKey, error)

解析私钥

func ParsePublicKey added in v1.0.1022

func ParsePublicKey(derBytes []byte) (*dsa.PublicKey, error)

解析公钥

Types

type PKCS1Key added in v1.0.1032

type PKCS1Key struct{}

dsa pkcs1 密钥

func NewPKCS1Key added in v1.0.1032

func NewPKCS1Key() PKCS1Key

构造函数

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 (this PKCS1Key) MarshalPublicKey(key *dsa.PublicKey) ([]byte, error)

包装公钥

func (PKCS1Key) ParsePrivateKey added in v1.0.1032

func (this PKCS1Key) ParsePrivateKey(derBytes []byte) (*dsa.PrivateKey, error)

解析私钥

func (PKCS1Key) ParsePublicKey added in v1.0.1032

func (this PKCS1Key) ParsePublicKey(derBytes []byte) (*dsa.PublicKey, error)

解析公钥

type PKCS8Key added in v1.0.1032

type PKCS8Key struct{}

dsa pkcs8 密钥

func NewPKCS8Key added in v1.0.1032

func NewPKCS8Key() PKCS8Key

构造函数

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

func (this PKCS8Key) MarshalPKCS8PublicKey(key *dsa.PublicKey) ([]byte, error)

PKCS8 包装公钥

func (PKCS8Key) ParsePKCS8PrivateKey added in v1.0.1032

func (this PKCS8Key) ParsePKCS8PrivateKey(derBytes []byte) (key *dsa.PrivateKey, err error)

PKCS8 解析私钥

func (PKCS8Key) ParsePKCS8PublicKey added in v1.0.1032

func (this PKCS8Key) 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