Documentation ¶
Index ¶
- func GenRSAKey(size int) (privateKeyBytes, publicKeyBytes []byte, err error)
- func RsaDecrypt(src, privateKeyBytes []byte) (bytesDecrypt []byte, err error)
- func RsaDecryptBlock(src, privateKeyBytes []byte) (bytesDecrypt []byte, err error)
- func RsaEncrypt(src, publicKeyByte []byte) (bytes []byte, err error)
- func RsaEncryptBlock(src, publicKeyByte []byte) (bytesEncrypt []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RsaDecrypt ¶
私钥解密
func RsaDecryptBlock ¶
私钥解密-分段
func RsaEncrypt ¶
RsaEncrypt 公钥加密
func RsaEncryptBlock ¶
公钥加密-分段
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.