key

package
v1.0.2031 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNamedCurve

func AddNamedCurve(curve *gost.Curve, oid asn1.ObjectIdentifier)

func MarshalGostPrivateKey

func MarshalGostPrivateKey(key *gost.PrivateKey) ([]byte, error)

pkcs1

func MarshalPrivateKey

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

包装私钥

func MarshalPublicKey

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

包装公钥

func NamedCurveFromOid

func NamedCurveFromOid(oid asn1.ObjectIdentifier) *gost.Curve

func OidFromNamedCurve

func OidFromNamedCurve(curve *gost.Curve) (asn1.ObjectIdentifier, bool)

func ParseGostPrivateKey

func ParseGostPrivateKey(der []byte) (*gost.PrivateKey, error)

pkcs1

func ParsePrivateKey

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

解析私钥

func ParsePublicKey

func ParsePublicKey(derBytes []byte) (pub *gost.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