Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decrypt ¶
func Decrypt(privateKey *ecdh.PrivateKey, curve ecdh.Curve, encData EncryptedData) ([]byte, error)
func GenerateKey ¶
func GenerateKey(curve ecdh.Curve) (*ecdh.PrivateKey, error)
Types ¶
type EncryptedData ¶
type EncryptedData struct {
// contains filtered or unexported fields
}
func (EncryptedData) Bytes ¶
func (en EncryptedData) Bytes() []byte
func (*EncryptedData) LoadBytes ¶
func (en *EncryptedData) LoadBytes(buf []byte)
func (*EncryptedData) LoadString ¶
func (en *EncryptedData) LoadString(enc_data string) error
func (EncryptedData) String ¶
func (en EncryptedData) String() string
Click to show internal directories.
Click to hide internal directories.