Documentation ¶
Index ¶
- func AES256Decode(key, msg []byte) []byte
- func AES256Encode(key, msg []byte) []byte
- func Decode(prikeyfile string, ciphertext []byte) ([]byte, error)
- func DecodeWithKey(prik *rsa.PrivateKey, ciphertext []byte) ([]byte, error)
- func Encode(pubkeyfile, msg string) ([]byte, error)
- func EncodeWithKey(pubk *rsa.PublicKey, msg []byte) ([]byte, error)
- func GenKeyPair(name string) error
- func ReadPrivateKey(filename string) *rsa.PrivateKey
- func ReadPublicKey(filename string) *rsa.PublicKey
- func SignWithKey(prik *rsa.PrivateKey, msg []byte) ([]byte, error)
- func VerifyWithKey(pubk *rsa.PublicKey, msg, signature []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AES256Decode ¶
func AES256Encode ¶
func DecodeWithKey ¶
func DecodeWithKey(prik *rsa.PrivateKey, ciphertext []byte) ([]byte, error)
func GenKeyPair ¶
func ReadPrivateKey ¶
func ReadPrivateKey(filename string) *rsa.PrivateKey
func ReadPublicKey ¶
func SignWithKey ¶
func SignWithKey(prik *rsa.PrivateKey, msg []byte) ([]byte, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.