Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptWithPrivateKey ¶
func EncryptWithPublicKey ¶
func LoadPrivateKey ¶
func LoadPrivateKey(xpath string) (*rsa.PrivateKey, error)
Types ¶
type EncryptionAES ¶
type EncryptionAES struct {
Key []byte // Must be 32 bytes for AES-256
}
func NewEncryptionAES ¶
func NewEncryptionAES(key []byte) (*EncryptionAES, error)
NewEncryptionAES creates a new instance with the given key (must be 32 bytes)
Click to show internal directories.
Click to hide internal directories.