tz

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2019 License: GPL-3.0 Imports: 4 Imported by: 15

Documentation

Overview

Copyright 2018 (c) NSPCC

Package tz implements general Tillich-Zemo

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Concat

func Concat(hs [][]byte) ([]byte, error)

Concat performs combining of hashes based on homomorphic property.

func New

func New() hash.Hash

New returns a new hash.Hash computing the Tillich-Zémor checksum.

func Sum

func Sum(data []byte) [hashSize]byte

Sum returnz Tillich-Zémor checksum of data

func Validate

func Validate(h []byte, hs [][]byte) (bool, error)

Validate checks if hashes in hs combined are equal to h.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL