Documentation ¶
Index ¶
Constants ¶
const MockIter int = 10
Variables ¶
var MockStrings []string = []string{
"Hello World!",
"Hello, 世界!",
}
Functions ¶
This section is empty.
Types ¶
type Hasher ¶
Hasher interface defines the behavior of a recursive hasher which takes in an empty interface (to support multiple formats) and returns a slice of bytes (the hashed seed)
type MD5 ¶
type MD5 struct{}
MD5 struct is a general placeholder for the MD5 algorithm, to implement the Hasher interface
type SHA1 ¶
type SHA1 struct{}
SHA1 struct is a general placeholder for the SHA1 algorithm, to implement the Hasher interface
type SHA224 ¶
type SHA224 struct{}
SHA224 struct is a general placeholder for the SHA224 algorithm, to implement the Hasher interface
type SHA256 ¶
type SHA256 struct{}
SHA256 struct is a general placeholder for the SHA256 algorithm, to implement the Hasher interface
type SHA384 ¶
type SHA384 struct{}
SHA384 struct is a general placeholder for the SHA384 algorithm, to implement the Hasher interface
type SHA512 ¶
type SHA512 struct{}
SHA512 struct is a general placeholder for the SHA512 algorithm, to implement the Hasher interface
type SHA512_224 ¶
type SHA512_224 struct{}
SHA512 struct is a general placeholder for the SHA512 algorithm, to implement the Hasher interface
func (SHA512_224) Hash ¶
func (hasher SHA512_224) Hash(data []byte) []byte
Hash method satisfies the Hasher interface. It's a recursive hashing function to allow continuous hashing
type SHA512_256 ¶
type SHA512_256 struct{}
SHA512 struct is a general placeholder for the SHA512 algorithm, to implement the Hasher interface
func (SHA512_256) Hash ¶
func (hasher SHA512_256) Hash(data []byte) []byte
Hash method satisfies the Hasher interface. It's a recursive hashing function to allow continuous hashing