Versions in this module Expand all Collapse all v1 v1.1.1 Apr 23, 2018 v1.1.0 Apr 13, 2017 Changes in this version + func SecureHasher(key []byte) hash.Hash v1.0.0 Sep 18, 2016 Changes in this version + var ECDHKeyLength = C.crypto_scalarmult_BYTES + var EdDSAPrivateLength = C.crypto_sign_SECRETKEYBYTES + var EdDSAPublicLength = C.crypto_sign_PUBLICKEYBYTES + var EdDSASignatureLength = C.crypto_sign_BYTES + var PasswordSaltLen int + func AEAD(key []byte) cipher.AEAD + func CTCompare(a []byte, b []byte) int + func ECDHSecret(ourPriv ECDHPrivate, theirPubl ECDHPublic) []byte + func HexDecode(str string) ([]byte, error) + func HexEncode(bts []byte) string + func PasswordHash(pwd []byte, opslimit int, memlimit int) string + func PasswordVerify(pwd []byte, hash string) bool + func RandBytes(b []byte) + func RandUint32() uint32 + func RandUint32LT(lim uint32) uint32 + func SecureHash(message []byte, key []byte) []byte + func Stream(key []byte, nonce []byte) cipher.Stream + func StretchKey(pwd []byte, salt []byte, opslimit int, memlimit int) []byte + func TripleECDH(ourAuth ECDHPrivate, theirAuth ECDHPublic, ourEph ECDHPrivate, ...) []byte + type ECDHPrivate []byte + func ECDHGenerateKey() ECDHPrivate + func (priv ECDHPrivate) PublicKey() ECDHPublic + type ECDHPublic []byte + type EdDSAPrivate []byte + func EdDSADeriveKey(seed []byte) EdDSAPrivate + func EdDSAGenerateKey() EdDSAPrivate + func (k EdDSAPrivate) PublicKey() EdDSAPublic + func (k EdDSAPrivate) Sign(message []byte) []byte + func (k EdDSAPrivate) String() string + func (k EdDSAPrivate) ToECDH() ECDHPrivate + type EdDSAPublic []byte + func (k EdDSAPublic) MarshalJSON() ([]byte, error) + func (k EdDSAPublic) String() string + func (k EdDSAPublic) ToECDH() ECDHPublic + func (k EdDSAPublic) Verify(message []byte, signature []byte) error