Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func XorBytes32 ¶
Types ¶
type HashFn ¶
Hashes the input, and returns the hash as a byte slice
var Hash HashFn = sha256.Sum256
Hash the given input. Use a new hashing object, and ditch it after hashing. See GetHashFn for a more efficient approach for repeated hashing. Defaults to SHA-256.
func Sha256Repeat ¶ added in v0.7.1
func Sha256Repeat() HashFn
re-uses the sha256 working variables for each new call of a allocated hash-function.
type NewHashFn ¶ added in v0.7.1
type NewHashFn func() HashFn
var GetHashFn NewHashFn = Sha256Repeat
Get a hash-function that re-uses the hashing working-variables. Defaults to SHA-256.
Click to show internal directories.
Click to hide internal directories.