Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Pubkey ¶
Pubkey takes a secret key and perform a scalar base multiplication to obtain the public key
func SharedKey ¶
SharedKey takes a peer's public key and our own secret key to obtain a shared secret through elliptic-curve Diffie-Hellmann. If mySecret is nil, a random secret key will be generated and the ephemeral public key will be output in myPublic. The peer needs our public key to be able to obtain the shared secret.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.