Versions in this module Expand all Collapse all v0 v0.3.1 Sep 24, 2018 v0.3.0 Sep 19, 2018 Changes in this version + const LatestVer v0.2.0 Aug 27, 2018 Changes in this version + const Curve25519xSalsa20Poly1305 + const Ed25519 + const ErrorCipherFailure + const ErrorMacFailure + const InvalidNonceSize + const InvalidPrivKeySize + const InvalidPubKeySize + const InvalidSignature + const NaClBoxKeySize + const NaClBoxNonceSize + const UnableToDecrypt + const UnableToGenerateKeyPair + const UnableToGenerateNonce + const UnsupportedAlgo + const UnsupportedEncAlgo + const UnsupportedSignAlgo + func Decrypt(msg, nonce, pubkey, privkey common.RawBytes, algo string) (common.RawBytes, error) + func Encrypt(msg, nonce, pubkey, privkey common.RawBytes, algo string) (common.RawBytes, error) + func GenKeyPair(algo string) (common.RawBytes, common.RawBytes, error) + func InitMac(key common.RawBytes) (hash.Hash, error) + func Mac(mac hash.Hash, msg common.RawBytes) (common.RawBytes, error) + func MathRandSeed() + func Nonce(l int) (common.RawBytes, error) + func RandInt64() int64 + func RandUint64() uint64 + func Sign(sigInput, signKey common.RawBytes, signAlgo string) (common.RawBytes, error) + func Verify(sigInput, sig, verifyKey common.RawBytes, signAlgo string) error