rsa2

package
v0.0.0-...-61829c1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

for alipay

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatPrivateKey

func FormatPrivateKey(src string) string

func FormatPublicKey

func FormatPublicKey(src string) string

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