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