package
Version:
v0.0.0-...-835eb37
Opens a new window with list of versions in this module.
Published: Apr 5, 2021
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Curve25519(options interface{}, public, secret, res []byte) (dst []byte, err error)
Curve25519 performs curve25519 key exchange on parts it's given.
GenCurve25519 creates KX pair.
Gen generates key excahnge secret and pubic part.
It appends to values in Generated struct.
type Generated struct {
PublicPart []byte
SecretPart []byte
}
Generated contains public and secret part of key to KX algorithm.
type KX func(options interface{}, public, secret, res []byte) (dst []byte, err error)
KX performs key exchange from given public and secret key(it parses them first).
Result bytes(algorithm-dependent) are appended to res.
Max byte count can be set with appropriate options. TODO(teawithsand): implement it
Source Files
¶
Click to show internal directories.
Click to hide internal directories.