Documentation ¶
Overview ¶
Package uniformdh implements the Tor Project's UniformDH key exchange mechanism as defined in the obfs3 protocol specification. This implementation is suitable for obfuscation but MUST NOT BE USED when strong security is required as it is not constant time.
Index ¶
Constants ¶
View Source
const (
// Size is the size of a UniformDH key or shared secret in bytes.
Size = 1536 / 8
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PrivateKey ¶
type PrivateKey struct { PublicKey // contains filtered or unexported fields }
A PrivateKey represents a UniformDH private key.
func GenerateKey ¶
func GenerateKey(random io.Reader) (priv *PrivateKey, err error)
GenerateKey generates a UniformDH keypair using the random source random.
Click to show internal directories.
Click to hide internal directories.