|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.dalsemi.system.Security
A SHA-1 Hash and a "Better than Java" random number generator.
| Method Summary | |
static int |
getRandom()
Return a 32 bit random number from the system random number generator. |
static byte[] |
hashMessage(byte[] message)
Computes a SHA-1 hash on the given message. |
static void |
hashMessage(byte[] msg,
int msgoffs,
int msglen,
byte[] hash,
int hashoffs,
byte[] buffer)
Computes a SHA-1 hash on the given message. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static int getRandom()
public static byte[] hashMessage(byte[] message)
message - the message to hash
public static void hashMessage(byte[] msg,
int msgoffs,
int msglen,
byte[] hash,
int hashoffs,
byte[] buffer)
msg - the message to hashmsgoffs - offset into the message arraymsglen - length of the message to hashhash - holds the hash value on return (20 bytes minimum)hashoffs - offset into the hash value arraybuffer - buffer for SHA-1 calculation (320 bytes minimum)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||