sha3

package
v0.9.32 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2015 License: LGPL-2.1-or-later 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