Documentation ¶
Overview ¶
Package sw implements ECDH in pure software / Go
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type PrivateKey ¶
type PrivateKey struct {
*ecdh.PrivateKey
}
func GeneratePrivateKey ¶
func GeneratePrivateKey(cfg Config) (*PrivateKey, error)
func LoadPrivateKey ¶
func LoadPrivateKey(cfg Config, k []byte) (*PrivateKey, error)
func (*PrivateKey) DropPrivate ¶
func (kp *PrivateKey) DropPrivate()
func (*PrivateKey) MarshalBinary ¶
func (kp *PrivateKey) MarshalBinary() ([]byte, error)
func (*PrivateKey) Public ¶
func (kp *PrivateKey) Public() dh.PublicKey
func (*PrivateKey) UnmarshalBinary ¶
func (kp *PrivateKey) UnmarshalBinary(data []byte) error
Click to show internal directories.
Click to hide internal directories.