Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ServerKeyVersion = int16(0) ServerPublicKey = &PublicKey{} )
View Source
var X509Prefix, _ = hex.DecodeString("3059301306072a8648ce3d020106082a8648ce3d030107034200")
Functions ¶
This section is empty.
Types ¶
type PrivateKey ¶
func GenerateKey ¶
func GenerateKey() (*PrivateKey, error)
func (*PrivateKey) Public ¶
func (priv *PrivateKey) Public() *PublicKey
func (*PrivateKey) SharedSecret ¶
func (priv *PrivateKey) SharedSecret(pub *PublicKey) [16]byte
Click to show internal directories.
Click to hide internal directories.