|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkz.gamma.vista.VistaSHA1
public class VistaSHA1
SHA1 Java sample. Ported from http://tools.ietf.org/html/rfc3174#section-7
| Field Summary | |
|---|---|
static int |
SHA1HashSize
|
static int |
shaInputTooLong
|
static int |
shaNull
|
static int |
shaStateError
|
static int |
shaSuccess
|
| Constructor Summary | |
|---|---|
VistaSHA1()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public VistaSHA1()
| Method Detail |
|---|
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||