hrsa

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenRsaKey

func GenRsaKey(bits ...int) (prvkey, pubkey []byte, err error)

GenRsaKey 产生RSA密钥对

func RsaDecryptBlock

func RsaDecryptBlock(src, privateKeyByte []byte) (bytesDecrypt []byte, err error)

RsaDecryptBlock 私钥解密-分段

func RsaEncryptBlock

func RsaEncryptBlock(src, publicKeyByte []byte) (bytesEncrypt []byte, err error)

RsaEncryptBlock 公钥加密-分段

func RsaSignWithSha256

func RsaSignWithSha256(data []byte, privateKeyByte []byte) ([]byte, error)

RsaSignWithSha256 私钥签名

func RsaVerySignWithSha256

func RsaVerySignWithSha256(data, signData, publicKeyByte []byte) (bool, error)

RsaVerySignWithSha256 公钥验签

Types

This section is empty.

Jump to

Keyboard shortcuts

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