peridot/vendor/github.com/pjbgf/sha1cd/detection.go
2024-10-16 12:56:53 +02:00

12 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
}