mycrypto

package
v2.0.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2018 License: LGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AES256Decode

func AES256Decode(key, msg []byte) []byte

func AES256Encode

func AES256Encode(key, msg []byte) []byte

func Decode

func Decode(prikeyfile string, ciphertext []byte) ([]byte, error)

func DecodeWithKey

func DecodeWithKey(prik *rsa.PrivateKey, ciphertext []byte) ([]byte, error)

func Encode

func Encode(pubkeyfile, msg string) ([]byte, error)

func EncodeWithKey

func EncodeWithKey(pubk *rsa.PublicKey, msg []byte) ([]byte, error)

func GenKeyPair

func GenKeyPair(name string) error

func ReadPrivateKey

func ReadPrivateKey(filename string) *rsa.PrivateKey

func ReadPublicKey

func ReadPublicKey(filename string) *rsa.PublicKey

func SignWithKey

func SignWithKey(prik *rsa.PrivateKey, msg []byte) ([]byte, error)

func VerifyWithKey

func VerifyWithKey(pubk *rsa.PublicKey, msg, signature []byte) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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