Documentation ¶
Index ¶
- Constants
- func Compress(data []byte) ([]byte, error)
- func Decompress(in []byte) ([]byte, error)
- func Decrypt(ct, pub, pk []byte) (data []byte, err error)
- func Encrypt(pub, data []byte) (ct []byte, err error)
- func EncryptKeyGen() (pub, pk []byte, err error)
- func Hash(data ...[]byte) []byte
- func Khash(key []byte, data ...[]byte) []byte
- func Sign(sk, msg []byte) []byte
- func SigningKeyGen() (vk, sk []byte, err error)
- func Verify(vk, msg, signature []byte) bool
Constants ¶
View Source
const ( PublicKeySize = 32 PrivategKeySize = 32 )
View Source
const ( VericationKeySize = 32 SigningKeySize = 64 SignatureSize = 64 )
View Source
const (
HashOutputLen = 32
)
Variables ¶
This section is empty.
Functions ¶
func Decompress ¶
func EncryptKeyGen ¶
func SigningKeyGen ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.