|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.xephi.authme.security.crypts.WHIRLPOOL
public class WHIRLPOOL
| Field Summary | |
|---|---|
static int |
DIGESTBITS
The message digest size (in bits) |
static int |
DIGESTBYTES
The message digest size (in bytes) |
| Constructor Summary | |
|---|---|
WHIRLPOOL()
|
|
| Method Summary | |
|---|---|
boolean |
comparePassword(java.lang.String hash,
java.lang.String password,
java.lang.String playerName)
|
java.lang.String |
getHash(java.lang.String password,
java.lang.String salt,
java.lang.String name)
|
void |
NESSIEadd(byte[] source,
long sourceBits)
Delivers input data to the hashing algorithm. |
void |
NESSIEadd(java.lang.String source)
Delivers string input data to the hashing algorithm. |
void |
NESSIEfinalize(byte[] digest)
Get the hash value from the hashing state. |
void |
NESSIEinit()
Initialize the hashing state. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DIGESTBITS
public static final int DIGESTBYTES
| Constructor Detail |
|---|
public WHIRLPOOL()
| Method Detail |
|---|
public void NESSIEinit()
public void NESSIEadd(byte[] source,
long sourceBits)
source - plaintext data to hash.sourceBits - how many bits of plaintext to process.
This method maintains the invariant: bufferBits < 512public void NESSIEfinalize(byte[] digest)
public void NESSIEadd(java.lang.String source)
source - plaintext data to hash (ASCII text string).
This method maintains the invariant: bufferBits < 512
public java.lang.String getHash(java.lang.String password,
java.lang.String salt,
java.lang.String name)
throws java.security.NoSuchAlgorithmException
getHash in interface EncryptionMethodsalt - (can be an other data like playerName;salt , playerName,
etc... for customs methods)
java.security.NoSuchAlgorithmException
public boolean comparePassword(java.lang.String hash,
java.lang.String password,
java.lang.String playerName)
throws java.security.NoSuchAlgorithmException
comparePassword in interface EncryptionMethodjava.security.NoSuchAlgorithmException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||