Documentation
¶
Index ¶
- func AESDecrypt(key []byte, ciphertext []byte) ([]byte, error)
- func AESEncrypt(key []byte, plaintext []byte) ([]byte, error)
- 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)
- type Cryptology
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RsaSignWithSha256 ¶
RsaSignWithSha256 RAS SHA256 签名
func RsaVerySignWithSha256 ¶
RsaVerySignWithSha256 RAS SHA256 验签
Types ¶
Click to show internal directories.
Click to hide internal directories.