Documentation ¶
Index ¶
- func GenRsaKey(priKeyFileName string, pubKeyFileName string, bits int) error
- func GenRsaKeyPKCS1(priKeyFileName string, pubKeyFileName string, bits int) error
- func ReadRsaKeys(priKeyFileName string, pubKeyFileName string) (error, []byte, []byte)
- func ReadRsaPubKey(priKeyFileName string, pubKeyFileName string) (error, string)
- func RsaDecrypt(ciphertext []byte, priKeyBytes []byte) ([]byte, error)
- func RsaDecryptByDefaultKey(b64CipherText string, sumHext string) ([]byte, error)
- func RsaEncrypt(origData []byte, publicKey []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenRsaKeyPKCS1 ¶ added in v1.0.11
func ReadRsaKeys ¶
func ReadRsaPubKey ¶
func RsaDecryptByDefaultKey ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.