Documentation ¶
Index ¶
- func PrivateKeyToBytes(priv *rsa.PrivateKey) ([]byte, error)
- func PublicKeyToBytes(pub *rsa.PublicKey) ([]byte, error)
- type AES256_CBC
- func (a AES256_CBC) Decrypt(key string, data []byte) ([]byte, error)
- func (a AES256_CBC) DecryptWithPrivateKey(key *rsa.PrivateKey, plain []byte) ([]byte, error)
- func (a AES256_CBC) Encrypt(key string, plain []byte) ([]byte, error)
- func (a AES256_CBC) EncryptWithPublicKey(key *rsa.PublicKey, plain []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrivateKeyToBytes ¶
func PrivateKeyToBytes(priv *rsa.PrivateKey) ([]byte, error)
Types ¶
type AES256_CBC ¶
type AES256_CBC struct{}
func (AES256_CBC) DecryptWithPrivateKey ¶
func (a AES256_CBC) DecryptWithPrivateKey(key *rsa.PrivateKey, plain []byte) ([]byte, error)
func (AES256_CBC) EncryptWithPublicKey ¶
Click to show internal directories.
Click to hide internal directories.