Documentation
¶
Overview ¶
Copyright 2018 (c) NSPCC
This file contains AVX implementation.
Copyright 2019 (c) NSPCC ¶
This file contains AVX2 implementation.
Copyright 2019 (c) NSPCC ¶
This file contains AVX2 implementation with inlined assembly calls.
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 NewWith(impl Implementation) 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 Validate(h []byte, hs [][]byte) (bool, error)
- type Implementation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWith ¶ added in v1.2.0
func NewWith(impl Implementation) hash.Hash
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.
Types ¶
type Implementation ¶ added in v1.2.0
type Implementation int
const ( AVX Implementation AVX2 AVX2Inline PureGo )
func (Implementation) String ¶ added in v1.2.0
func (impl Implementation) String() string
Click to show internal directories.
Click to hide internal directories.