sha256

package
v0.0.0-...-f4bd7b1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2015 License: Apache-2.0, Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package sha256 provides SHA256SSE3, SHA256AVX, SHA256AVX2

Index

Constants

View Source
const BlockSize = 64

The blocksize of SHA256 in bytes.

View Source
const Size = 32

The size of a SHA256 checksum in bytes.

Variables

This section is empty.

Functions

func New

func New() hash.Hash

New returns a new hash.Hash computing the SHA256 checksum.

func Sum

func Sum(reader io.Reader) ([]byte, error)

Sum - io.Reader based streaming sha256 helper

func Sum256

func Sum256(data []byte) []byte

Sum256 - single caller sha256 helper

Types

This section is empty.

Jump to

Keyboard shortcuts

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