Documentation ¶
Index ¶
Constants ¶
View Source
const ( CHACHA_KeySize = 32 CHACHA_BlockSize = 64 CHACHA_IVSize = 8 CHACHA12_ROUND = 12 CHACHA20_ROUND = 20 )
Variables ¶
View Source
var ( NoSuchDHMethod = exception.New(0, "No Such DH method") InvalidECCParam = exception.New(0, "Invalid ECC parameters") )
Functions ¶
This section is empty.
Types ¶
type ChaCha ¶
type ChaCha struct {
// contains filtered or unexported fields
}
func (*ChaCha) XORKeyStream ¶
implement cipher.Stream interface
type DHEKey ¶
type DHEKey struct {
// contains filtered or unexported fields
}
classical Diffie–Hellman–Merkle key exchange
func GenerateDHEKey ¶
func (*DHEKey) ExportPubKey ¶
type ECKey ¶
type ECKey struct {
// contains filtered or unexported fields
}
func GenerateECKey ¶
Q = curve.G * k Q => k is ECDLP
func (*ECKey) ComputeKey ¶
Q' = curve.G * k' K(x,y) = Q' * k = G * k' * k
type KeySizeError ¶
type KeySizeError int
func (KeySizeError) Error ¶
func (k KeySizeError) Error() string
Click to show internal directories.
Click to hide internal directories.