mirror of
https://github.com/vbatts/freezing-octo-hipster.git
synced 2024-11-24 07:55:39 +00:00
11 lines
287 B
Go
11 lines
287 B
Go
package sha1cd
|
|
|
|
import "hash"
|
|
|
|
type CollisionResistantHash interface {
|
|
// CollisionResistantSum extends on Sum by returning an additional boolean
|
|
// which indicates whether a collision was found during the hashing process.
|
|
CollisionResistantSum(b []byte) ([]byte, bool)
|
|
|
|
hash.Hash
|
|
}
|