|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectj_waste.crypto.SHA1Hash
This class handles the computation of SHA1 hashes.
| Constructor Summary | |
SHA1Hash()
Constructs a new SHA1 object. |
|
| Method Summary | |
byte[] |
calculateHash()
This method calculates the hash of the initialized values. |
void |
init(byte[] modulo,
byte[] exponent)
This method initializes SHA1 with the specified modulo and exponent. |
void |
init(java.lang.String key,
boolean hex)
This method initializes SHA1 with the specified key. |
void |
init(java.lang.String modulo,
java.lang.String exponent)
This method initializes SHA1 with the specified modulo and exponent. |
void |
update(byte[] b,
int offs,
int len)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SHA1Hash()
| Method Detail |
public void init(java.lang.String modulo,
java.lang.String exponent)
modulo - The modulo that should be included in the hash.exponent - The exponent that should be included in the hash.
public void init(byte[] modulo,
byte[] exponent)
modulo - The modulo that should be included in the hash.exponent - The exponent that should be included in the hash.
public void update(byte[] b,
int offs,
int len)
public void init(java.lang.String key,
boolean hex)
key - The key that should be included in the hash.hex - If true then "key" is Hex decoded, otherwise not.public byte[] calculateHash()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||