gnu.crypto.hash

Class Sha256

public class Sha256 extends BaseHash

Implementation of SHA2-1 [SHA-256] per the IETF Draft Specification.

References:

  1. Descriptions of SHA-256, SHA-384, and SHA-512,
  2. http://csrc.nist.gov/cryptval/shs/sha256-384-512.pdf

Version: $Revision: 1.2 $

Constructor Summary
Sha256()
Trivial 0-arguments constructor.
Method Summary
Objectclone()
protected byte[]getResult()
static int[]G(int hh0, int hh1, int hh2, int hh3, int hh4, int hh5, int hh6, int hh7, byte[] in, int offset)
protected byte[]padBuffer()
protected voidresetContext()
booleanselfTest()
protected voidtransform(byte[] in, int offset)

Constructor Detail

Sha256

public Sha256()
Trivial 0-arguments constructor.

Method Detail

clone

public Object clone()

getResult

protected byte[] getResult()

G

public static final int[] G(int hh0, int hh1, int hh2, int hh3, int hh4, int hh5, int hh6, int hh7, byte[] in, int offset)

padBuffer

protected byte[] padBuffer()

resetContext

protected void resetContext()

selfTest

public boolean selfTest()

transform

protected void transform(byte[] in, int offset)
Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.