hash

package
v0.0.0-...-ee7ae68 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hash

type Hash struct {
	// contains filtered or unexported fields
}

func Create

func Create(hashType HashType, value []byte) Hash

func CreateFromTLV

func CreateFromTLV(tlv codec.TLV) (Hash, error)

func (Hash) Children

func (h Hash) Children() []codec.TLV

func (Hash) Equals

func (h Hash) Equals(other Hash) bool

func (Hash) Length

func (h Hash) Length() uint16

func (Hash) String

func (h Hash) String() string

func (Hash) Type

func (h Hash) Type() uint16

func (Hash) TypeString

func (h Hash) TypeString() string

func (Hash) Value

func (h Hash) Value() []byte

type HashType

type HashType uint16
const HashTypeSHA256 HashType = 0x0001
const HashTypeSHA512 HashType = 0x0002

Jump to

Keyboard shortcuts

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