Documentation ¶
Index ¶
- Constants
- func Decrypt(secret, b []byte) []byte
- func DecryptECDH(pub kyber.Point, priv kyber.Scalar, b []byte) []byte
- func Encrypt(secret, b []byte) []byte
- func EncryptECDH(pub kyber.Point, priv kyber.Scalar, b []byte) []byte
- func PrivateKeyBytes(scalar kyber.Scalar) []byte
- func PrivateKeyFromHex(s string) (kyber.Scalar, error)
- func PubKeyFromBase58(s string) (kyber.Point, error)
- func PubKeyFromBytes(b []byte) (kyber.Point, error)
- func PublicKey(scalar kyber.Scalar) kyber.Point
- func PublicKeyBytes(point kyber.Point) []byte
- func PublicKeyString(point kyber.Point) string
- func Sign(scalar kyber.Scalar, msg []byte) ([]byte, error)
- func Verify(pub kyber.Point, msg, sig []byte) error
Constants ¶
View Source
const (
KeyVersion = 'T'
)
Variables ¶
This section is empty.
Functions ¶
func DecryptECDH ¶ added in v0.2.1
func EncryptECDH ¶ added in v0.2.1
func PrivateKeyBytes ¶
func PublicKeyBytes ¶
func PublicKeyString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.