ecdsa

package
v0.0.0-...-68c17e9 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ECDSA

type ECDSA struct {
	// contains filtered or unexported fields
}

func NewECDSA

func NewECDSA(keyPath string) (ecdsa *ECDSA)

func (*ECDSA) ConvertPrivateKeyToECDH

func (e *ECDSA) ConvertPrivateKeyToECDH() (privateKeyECDH *ecdh.PrivateKey, err error)

func (*ECDSA) ConvertPublicKeyToECDH

func (e *ECDSA) ConvertPublicKeyToECDH(remotePublicKey *ecdsa.PublicKey) (publicKeyECDH *ecdh.PublicKey, err error)

func (*ECDSA) ExportKeyToFile

func (e *ECDSA) ExportKeyToFile(keyPath string) (err error)

func (*ECDSA) GenerateKey

func (e *ECDSA) GenerateKey() (err error)

func (*ECDSA) ImportKeyFromFile

func (e *ECDSA) ImportKeyFromFile(keyPath string) (err error)

func (*ECDSA) MarshalPublicKey

func (e *ECDSA) MarshalPublicKey() (publicKeyBytes []byte)

func (*ECDSA) SignData

func (e *ECDSA) SignData(data []byte) (signature []byte, err error)

func (*ECDSA) UnmarshalPublicKey

func (e *ECDSA) UnmarshalPublicKey(remotePublicKeyBytes []byte) (publicKey *ecdsa.PublicKey)

func (*ECDSA) VerifyData

func (e *ECDSA) VerifyData(publicKey *ecdsa.PublicKey, data []byte, signature []byte) (err error)

Jump to

Keyboard shortcuts

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