key

package
v1.0.2029 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalPrivateKey

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

包装私钥

func MarshalPublicKey

func MarshalPublicKey(pub *ecdh.PublicKey) ([]byte, error)

包装公钥

func ParsePrivateKey

func ParsePrivateKey(der []byte) (*ecdh.PrivateKey, error)

解析私钥

func ParsePublicKey

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

解析公钥

Types

This section is empty.

Jump to

Keyboard shortcuts

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