Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound is returned when a hash tool cannot be found. ErrNotFound = errors.New("does not exist") )
Functions ¶
Types ¶
type HashTool ¶
type HashTool struct {
Name string
NewHash func() hash.Hash
CryptoHashID crypto.Hash
DigestSize int // in bytes
BlockSize int // in bytes
SecurityLevel int // approx. attack complexity as 2^n
Comment string
Author string
// contains filtered or unexported fields
}
HashTool holds generic information about a hash tool.
func AsList ¶
func AsList() []*HashTool
AsList returns all HashTools in a slice. The returned slice must not be modified.
func (*HashTool) LabeledHasher ¶ added in v0.3.0
LabeledHasher returns the corresponding labeled hashing algorithm.
Click to show internal directories.
Click to hide internal directories.