sha3

package
v0.0.0-...-65af2ff Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2014 License: AGPL-3.0, BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package sha3 implements the SHA3 hash algorithm (formerly called Keccak) chosen by NIST in 2012. This file provides a SHA3 implementation which implements the standard hash.Hash interface. Writing input data, including padding, and reading output data are computed in this file. Note that the current implementation can compute the hash of an integral number of bytes only. This is a consequence of the hash interface in which a buffer of bytes is passed in. The internals of the Keccak-f function are computed in keccakf.go. For the detailed specification, refer to the Keccak web site (http://keccak.noekeon.org/).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKeccak224

func NewKeccak224() hash.Hash

The NewKeccakX constructors enable initializing a hash in any of the four recommend sizes from the Keccak specification, all of which set capacity=2*outputSize. Note that the final NIST standard for SHA3 may specify different input/output lengths. The output size is indicated in bits but converted into bytes internally.

func NewKeccak256

func NewKeccak256() hash.Hash

func NewKeccak384

func NewKeccak384() hash.Hash

func NewKeccak512

func NewKeccak512() hash.Hash

Types

This section is empty.

Jump to

Keyboard shortcuts

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