hash

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Overview

Package hash provides hash implementations used for digital signature of messages sent to a Fabric network.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NONE added in v1.3.0

func NONE(message []byte) []byte

NONE returns the input message unchanged. This can be used if the signing implementation requires the full message bytes, not just a pre-generated digest, such as Ed25519.

func SHA256

func SHA256(message []byte) []byte

SHA256 hash the supplied message bytes to create a digest for signing.

func SHA384 added in v1.3.0

func SHA384(message []byte) []byte

SHA384 hash the supplied message bytes to create a digest for signing.

func SHA3_256 added in v1.3.0

func SHA3_256(message []byte) []byte

SHA3_256 hash the supplied message bytes to create a digest for signing.

func SHA3_384 added in v1.3.0

func SHA3_384(message []byte) []byte

SHA3_384 hash the supplied message bytes to create a digest for signing.

Types

type Hash

type Hash = func(message []byte) []byte

Hash function generates a digest for the supplied message.

Jump to

Keyboard shortcuts

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