jonelo.jacksum.adapt.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

Constructor Summary

Sha512()
Trivial 0-arguments constructor.

Method Summary

static long[]
G(long hh0, long hh1, long hh2, long hh3, long hh4, long hh5, long hh6, long hh7, byte[] in, int offset)
Object
clone()
protected byte[]
getResult()
protected byte[]
padBuffer()
protected void
resetContext()
boolean
selfTest()
protected void
transform(byte[] in, int offset)

Constructor Details

Sha512

public Sha512()
Trivial 0-arguments constructor.

Method Details

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)

clone

public Object clone()

getResult

protected byte[] getResult()

padBuffer

protected byte[] padBuffer()

resetContext

protected void resetContext()

selfTest

public boolean selfTest()

transform

protected void transform(byte[] in,
                         int offset)