encoding

package
v0.0.0-...-22ca242 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParsePrivateKey

func ParsePrivateKey(raw string) (result []byte)

func ParsePublicKey

func ParsePublicKey(raw string) (result []byte)

func RSADecrypt

func RSADecrypt(ciphertext, key []byte) ([]byte, error)

func RSAEncrypt

func RSAEncrypt(plaintext, key []byte) ([]byte, error)

func SignPKCS1v15

func SignPKCS1v15(src, key []byte, hash crypto.Hash) ([]byte, error)

func VerifyPKCS1v15

func VerifyPKCS1v15(src, sig, key []byte, hash crypto.Hash) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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