public class VistaSHA1
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
SHA1HashSize |
static int |
shaInputTooLong |
static int |
shaNull |
static int |
shaStateError |
static int |
shaSuccess |
Constructor and Description |
---|
VistaSHA1() |
Modifier and Type | Method and Description |
---|---|
static void |
DigestPrint(byte[] digest)
Prints a message digest in hexadecimal.
|
static int |
SHA1CircularShift(int bits,
int word) |
int |
SHA1Input(VistaSha1Context context,
byte[] message_array,
int length)
SHA1Input
Description:
This function accepts an array of octets as the next portion
of the message.
|
void |
SHA1PadMessage(VistaSha1Context context)
SHA1PadMessage
Description:
According to the standard, the message must be padded to an even
512 bits.
|
void |
SHA1ProcessMessageBlock(VistaSha1Context context)
SHA1ProcessMessageBlock
Description:
This function will process the next 512 bits of the message
stored in the Message_Block array.
|
int |
SHA1Reset(VistaSha1Context context)
SHA1Reset
Description:
This function will initialize the SHA1Context in preparation
for computing a new SHA1 message digest.
|
int |
SHA1Result(VistaSha1Context context,
byte[] Message_Digest)
SHA1Result
Description:
This function will return the 160-bit message digest into the
Message_Digest array provided by the caller.
|
public static final int SHA1HashSize
public static final int shaSuccess
public static final int shaNull
public static final int shaInputTooLong
public static final int shaStateError
public static void DigestPrint(byte[] digest)
public int SHA1Reset(VistaSha1Context context)
public int SHA1Input(VistaSha1Context context, byte[] message_array, int length)
public void SHA1ProcessMessageBlock(VistaSha1Context context)
public static int SHA1CircularShift(int bits, int word)
public int SHA1Result(VistaSha1Context context, byte[] Message_Digest)
public void SHA1PadMessage(VistaSha1Context context)
Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.