sha256

package
v1.0.77 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sha256

type Sha256 struct {
}

Sha256 is a sha256 implementation of the hasher interface.

func (Sha256) Compute

func (sha Sha256) Compute(s string) []byte

Compute takes a string, and returns the sha256 hash of that string

func (Sha256) EmptyHash

func (sha Sha256) EmptyHash() []byte

EmptyHash returns the sha256 hash of the empty string

func (Sha256) IsInterfaceNil

func (sha Sha256) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (Sha256) Size

func (Sha256) Size() int

Size returns the size, in number of bytes, of a sha256 hash

Jump to

Keyboard shortcuts

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