Documentation ¶
Index ¶
- func GenRsaKey() (prvkey, pubkey []byte, err error)
- func RsaDecrypt(ciphertext, keyBytes []byte) ([]byte, error)
- func RsaEncrypt(data, keyBytes []byte) ([]byte, error)
- func RsaSignWithSha256(data []byte, keyBytes []byte) ([]byte, error)
- func RsaVerySignWithSha256(data, signData, keyBytes []byte) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RsaSignWithSha256 ¶
RsaSignWithSha256 签名
func RsaVerySignWithSha256 ¶
RsaVerySignWithSha256 验证
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.