Documentation ¶
Index ¶
Constants ¶
View Source
const ( Size = sha256.Size Columns = Size / 4 )
Variables ¶
This section is empty.
Functions ¶
func NilHashToEmpty ¶
Types ¶
type OiHash ¶
type OiHash struct {
// contains filtered or unexported fields
}
func (*OiHash) Digest ¶
Get the actual hash output.
Happens to be the same as the MarshalBinary output, but named differently for API clarity.
func (*OiHash) InsertHash ¶
Insert the sha256 sum of an item into the hash or a different marshalled oihash.
func (*OiHash) MarshalBinary ¶
Save an intermediate hash state for later.
func (*OiHash) RemoveHash ¶
Remove the sha256 sum of an item from the hash
func (*OiHash) UnmarshalBinary ¶
Load a persisted hash state. Overwrites the internal state of h.
Click to show internal directories.
Click to hide internal directories.