Documentation ¶
Index ¶
- func GenRsaKey(bits ...int) (prvkey, pubkey []byte, err error)
- func RsaDecryptBlock(src, privateKeyByte []byte) (bytesDecrypt []byte, err error)
- func RsaEncryptBlock(src, publicKeyByte []byte) (bytesEncrypt []byte, err error)
- func RsaSignWithSha256(data []byte, privateKeyByte []byte) ([]byte, error)
- func RsaVerySignWithSha256(data, signData, publicKeyByte []byte) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RsaDecryptBlock ¶
RsaDecryptBlock 私钥解密-分段
func RsaEncryptBlock ¶
RsaEncryptBlock 公钥加密-分段
func RsaSignWithSha256 ¶
RsaSignWithSha256 私钥签名
func RsaVerySignWithSha256 ¶
RsaVerySignWithSha256 公钥验签
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.