Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RSACryptoLib ¶
type RSACryptoLib struct {
// contains filtered or unexported fields
}
RSACryptoLib represents the crypto util.
func NewRSACryptoLib ¶
func NewRSACryptoLib(privateKeyFile string, publicCertFile string) (*RSACryptoLib, error)
NewRSACryptoLib create a new RSACryptoLib, and load private key and certificate from java PKCS12 keystore
func (*RSACryptoLib) Decrypt ¶
func (c *RSACryptoLib) Decrypt(ciphertext []byte) ([]byte, error)
RSA Decrypt
Click to show internal directories.
Click to hide internal directories.