Documentation ¶
Index ¶
- func GenRsaKey(bits int) (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) (sgin []byte, err error)
- func RsaVerySignWithSha256(data, signData, keyBytes []byte) (issucc bool, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RsaSignWithSha256 ¶
签名
func RsaVerySignWithSha256 ¶
验证
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.