Documentation ¶
Overview ¶
Package tz contains Tillich-Zémor checksum implementations using different backends.
Copyright 2022 (c) NSPCC
Index ¶
Constants ¶
View Source
const (
// Size is the size of a Tillich-Zémor hash sum in bytes.
Size = 64
)
Variables ¶
This section is empty.
Functions ¶
func New ¶
New returns a new hash.Hash computing the Tillich-Zémor checksum. The Hash also implements encoding.BinaryMarshaler and encoding.BinaryUnmarshaler to marshal and unmarshal the internal state of the hash.
func SubtractL ¶ added in v1.1.0
SubtractL returns hash b, such that Concat(a, b) == c This is possible, because Tillich-Zémor hash is actually a matrix which can be inversed.
Types ¶
Click to show internal directories.
Click to hide internal directories.