cipher

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadRSAPrivateKey

func LoadRSAPrivateKey(pemFile string) (*rsa.PrivateKey, error)

解析私钥文件

func LoadRSAPublicKey

func LoadRSAPublicKey(pemFile string) (*rsa.PublicKey, error)

解析公钥文件

func MaxEncryptSize

func MaxEncryptSize(pubkey *rsa.PublicKey) int

最大加密内容大小

func RSADecrypt

func RSADecrypt(privkey *rsa.PrivateKey, data []byte) ([]byte, error)

func RSAEncrypt

func RSAEncrypt(pubkey *rsa.PublicKey, data []byte) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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