gnu.crypto.hash

Class Sha512

public class Sha512 extends BaseHash

Implementation of SHA2-3 [SHA-512] 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
Sha512()
Trivial 0-arguments constructor.
Method Summary
Objectclone()
protected byte[]getResult()
static long[]G(long hh0, long hh1, long hh2, long hh3, long hh4, long hh5, long hh6, long hh7, byte[] in, int offset)
protected byte[]padBuffer()
protected voidresetContext()
booleanselfTest()
protected voidtransform(byte[] in, int offset)

Constructor Detail

Sha512

public Sha512()
Trivial 0-arguments constructor.

Method Detail

clone

public Object clone()

getResult

protected byte[] getResult()

G

public static final long[] G(long hh0, long hh1, long hh2, long hh3, long hh4, long hh5, long hh6, long 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.