Documentation ¶
Index ¶
- func DecryptByPrivateRSA(privateKey *rsa.PrivateKey, data []byte) ([]byte, error)
- func DecryptByPublicKeyRSA(publicKey *rsa.PublicKey, data []byte) ([]byte, error)
- func EncryptByPrivateKeyRSA(privateKey *rsa.PrivateKey, data []byte) ([]byte, error)
- func EncryptByPublicRSA(publicKey *rsa.PublicKey, data []byte) ([]byte, error)
- func GenerateRandomKeyOfRSA() (*rsa.PrivateKey, *rsa.PublicKey, error)
- func GenerateSha256SignWithPrivateKeyRSA(privateKey *rsa.PrivateKey, data []byte) ([]byte, error)
- func VerifySignSha256WithPublicKeyRSA(publicKey *rsa.PublicKey, data []byte, sign []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptByPrivateRSA ¶
func DecryptByPrivateRSA(privateKey *rsa.PrivateKey, data []byte) ([]byte, error)
func DecryptByPublicKeyRSA ¶
func EncryptByPrivateKeyRSA ¶
func EncryptByPrivateKeyRSA(privateKey *rsa.PrivateKey, data []byte) ([]byte, error)
func EncryptByPublicRSA ¶
func GenerateRandomKeyOfRSA ¶
func GenerateRandomKeyOfRSA() (*rsa.PrivateKey, *rsa.PublicKey, error)
func GenerateSha256SignWithPrivateKeyRSA ¶
func GenerateSha256SignWithPrivateKeyRSA(privateKey *rsa.PrivateKey, data []byte) ([]byte, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.