ecies

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EPrivateKeyFromKey added in v0.2.1

func EPrivateKeyFromKey(k crypto.EKey) (crypto.EPrivateKey, error)

func EPrivateKeyFromSeed added in v0.2.1

func EPrivateKeyFromSeed(seed []byte) (crypto.EPrivateKey, error)

func EPublicKeyFromKey added in v0.2.1

func EPublicKeyFromKey(k crypto.EKey) (crypto.EPublicKey, error)

func Load added in v0.2.1

func Load()

Types

type PrivateKey

type PrivateKey struct {
	ecies.PrivateKey
	// contains filtered or unexported fields
}

func (PrivateKey) Decrypt

func (p PrivateKey) Decrypt(encryptedText []byte) ([]byte, error)

func (*PrivateKey) EKey added in v0.2.1

func (p *PrivateKey) EKey() crypto.EKey

func (*PrivateKey) EPublic added in v0.2.1

func (p *PrivateKey) EPublic() crypto.EPublicKey

func (PrivateKey) Sign added in v0.2.1

func (p PrivateKey) Sign(message []byte) (*crypto.Signature, error)

func (*PrivateKey) String added in v0.2.1

func (p *PrivateKey) String() string

type PublicKey

type PublicKey struct {
	ecies.PublicKey
	// contains filtered or unexported fields
}

func (*PublicKey) EKey added in v0.2.1

func (p *PublicKey) EKey() crypto.EKey

func (PublicKey) Encrypt

func (p PublicKey) Encrypt(plainText []byte) ([]byte, error)

func (*PublicKey) String added in v0.2.1

func (p *PublicKey) String() string

func (PublicKey) Verify added in v0.2.1

func (p PublicKey) Verify(message []byte, sig *crypto.Signature) bool

Jump to

Keyboard shortcuts

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