File: detection.go

package info (click to toggle)
golang-github-pjbgf-sha1cd 0.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,576 kB
  • sloc: ansic: 2,188; asm: 1,527; makefile: 28
file content (11 lines) | stat: -rw-r--r-- 287 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
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
}