Documentation
¶
Overview ¶
Copyright 2018 (c) NSPCC
Package tz implements general Tillich-Zemo
Index ¶
- func Concat(hs [][]byte) ([]byte, error)
- func Inv(a *sl2) (b *sl2)
- func New() hash.Hash
- func SubtractL(c, a []byte) (b []byte, err error)
- func SubtractR(c, b []byte) (a []byte, err error)
- func Sum(data []byte) [hashSize]byte
- func SumAVX(data []byte) [hashSize]byte
- func Validate(h []byte, hs [][]byte) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SubtractL ¶ added in v1.1.0
SubtractL returns hash b, such that Concat(a, b) == c This is possible, because Tillich-Zemor hash is actually a matrix which can be inversed.
func SubtractR ¶ added in v1.1.0
SubtractR returns hash a, such that Concat(a, b) == c This is possible, because Tillich-Zemor hash is actually a matrix which can be inversed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.