xsha1

package
v1.8.2-0...-ee23551 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: GPL-2.0, GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package xsha1 provides NEO-flavoured SHA1 sum.

It is the same as regular SHA1, but returns all-zeros for empty input.

Besides, checksum computation can be switched to be noop if requested so from environment.

Index

Constants

This section is empty.

Variables

View Source
var Skip bool

Skip controls and indicates whether NEOSum skips SHA1 computation.

It is used for benchmarking to see how much sha1 computation takes time from latency.

Functions

func NEOSum

func NEOSum(b []byte) [sha1.Size]byte

NEOSum returns SHA1(b) computed by NEO rules.

it is the same as regular SHA1, but returns all-zeros for empty b. https://lab.nexedi.com/nexedi/neoppod/blob/c1c26894/neo/client/app.py#L464-468

Types

This section is empty.

Jump to

Keyboard shortcuts

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