Documentation ¶
Index ¶
Constants ¶
View Source
const Size = 2048
Size is a length of a checksum.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HomoHash ¶
type HomoHash interface { // Add adds p to the multiset. Add(p []byte) // Remove removes p from the multiset. Remove(p []byte) // Sum appends the hash of the current multiset to b and returns the resulting slice. // It does not change the underlying hash state. Sum(b []byte) []byte // SetState initializes current state with s. SetState(s []byte) }
HomoHash interface defines a set of operations for any homomorphic hash.
Click to show internal directories.
Click to hide internal directories.