ecc

package
v0.0.0-...-00d340d Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ECCCryptoLib

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

ECCCryptoLib represents the crypto util.

func NewECCCryptoLib

func NewECCCryptoLib(privateKeyFile string, publicCertFile string) (*ECCCryptoLib, error)

NewECCCryptoLib create a new ECCCryptoLib, and load private key and certificate from java PKCS12 keystore

func (*ECCCryptoLib) Decrypt

func (c *ECCCryptoLib) Decrypt(ciphertext []byte) (out []byte, err error)

RSA Decrypt

func (*ECCCryptoLib) Encrypt

func (c *ECCCryptoLib) Encrypt(data []byte) (out []byte, err error)

RSA Encrypt

func (*ECCCryptoLib) Sign

func (c *ECCCryptoLib) Sign(data []byte) ([]byte, error)

func (*ECCCryptoLib) Verify

func (c *ECCCryptoLib) Verify(data []byte, sig []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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