ecdh

package
v1.0.1046 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: Apache-2.0 Imports: 4 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(key *ecdh.PublicKey) ([]byte, error)

包装公钥

func ParsePrivateKey

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

解析私钥

func ParsePublicKey

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

解析公钥

Types

This section is empty.

Jump to

Keyboard shortcuts

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