sig

package
v0.0.0-...-770f6ad Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(privateKey string, publicKey string) (*ecdsa.PrivateKey, *ecdsa.PublicKey, error)

func DecodePrivateKey

func DecodePrivateKey(pemEncoded string) (*ecdsa.PrivateKey, error)

func DecodePublicKey

func DecodePublicKey(pemEncoded string) (*ecdsa.PublicKey, error)

func Encode

func Encode(privateKey *ecdsa.PrivateKey, publicKey *ecdsa.PublicKey) (*string, *string, error)

func EncodePrivateKey

func EncodePrivateKey(privateKey *ecdsa.PrivateKey) (*string, error)

func EncodePublicKey

func EncodePublicKey(publicKey *ecdsa.PublicKey) (*string, error)

func GenerateKeyPair

func GenerateKeyPair() (*ecdsa.PrivateKey, crypto.PublicKey, error)

func Sign

func Sign(privateKey *ecdsa.PrivateKey, data []byte) (r, s *big.Int, err error)

func Verify

func Verify(publicKey *ecdsa.PublicKey, data []byte, r, s *big.Int) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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