Documentation ¶
Index ¶
- func NaclDecrypt(box []byte, nonce [24]byte, secret [32]byte) ([]byte, error)
- func NaclEncrypt(message []byte, nonce [24]byte, secret [32]byte) ([]byte, error)
- func NaclSign(secret [64]byte, message []byte) ([]byte, error)
- func NaclVerify(digest []byte, signature []byte, publicKey [naclauth.KeySize]byte) bool
- func NewBlake2b256Sig(key, data []byte) ([]byte, error)
- func NewBlake2b512Sig(key, data []byte) ([]byte, error)
- func NewNaclKeyPair() ([32]byte, [64]byte, error)
- func NewNaclKeyPairFromSeed(seed []byte) ([32]byte, [64]byte, error)
- func NewXXHash(data []byte, bitLength int64) []byte
- func NewXXHash128(data []byte) [16]byte
- func NewXXHash256(data []byte) [32]byte
- func NewXXHash64(data []byte) [8]byte
- type Blake2b256Hash
- type Blake2b512Hash
- type Hash
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NaclDecrypt ¶
NaclDecrypt ... note: use pointers???
func NaclEncrypt ¶
NaclEncrypt ... note: use pointers???
func NaclSign ¶
NaclSign ... Using the 'agl' library because native nacl library doesn't support detached signatures.
func NaclVerify ¶
NaclVerify returns true if signature is a valid signature of digest by public key. Using the 'agl' library because native nacl library doesn't support detached signatures.
func NewBlake2b256Sig ¶
NewBlake2b256Sig ...
func NewBlake2b512Sig ¶
NewBlake2b512Sig ...
func NewNaclKeyPairFromSeed ¶
NewNaclKeyPairFromSeed ... note: return pointers???
Types ¶
type Blake2b256Hash ¶
Blake2b256Hash ...
type Blake2b512Hash ¶
Blake2b512Hash ...
Click to show internal directories.
Click to hide internal directories.