encoding

package
v0.6.8 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 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