rsa

package
v1.0.2042 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalXMLPrivateKey

func MarshalXMLPrivateKey(key *rsa.PrivateKey) ([]byte, error)

func MarshalXMLPublicKey

func MarshalXMLPublicKey(key *rsa.PublicKey) ([]byte, error)

func ParseXMLPrivateKey

func ParseXMLPrivateKey(der []byte) (*rsa.PrivateKey, error)

func ParseXMLPublicKey

func ParseXMLPublicKey(der []byte) (*rsa.PublicKey, error)

Types

type XMLKey

type XMLKey struct{}

*

  • rsa xml密钥 *
  • @create 2023-4-10
  • @author deatil

func NewXMLKey

func NewXMLKey() XMLKey

构造函数

func (XMLKey) MarshalPrivateKey

func (this XMLKey) MarshalPrivateKey(key *rsa.PrivateKey) ([]byte, error)

包装私钥

func (XMLKey) MarshalPublicKey

func (this XMLKey) MarshalPublicKey(key *rsa.PublicKey) ([]byte, error)

包装公钥

func (XMLKey) ParsePrivateKey

func (this XMLKey) ParsePrivateKey(der []byte) (*rsa.PrivateKey, error)

解析私钥

func (XMLKey) ParsePublicKey

func (this XMLKey) ParsePublicKey(der []byte) (*rsa.PublicKey, error)

解析公钥

Jump to

Keyboard shortcuts

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