|
Bouncy Castle Cryptography Library 1.79 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.bouncycastle.util.Fingerprint
Basic 20 byte finger print class.
| Constructor Summary | |
Fingerprint(byte[] source)
Base constructor - use SHAKE-256 (160 bits). |
|
Fingerprint(byte[] source,
boolean useSHA512t)
Deprecated. use the SHAKE only version. |
|
Fingerprint(byte[] source,
int bitLength)
Constructor with length - use SHAKE-256 (bitLength bits). |
|
| Method Summary | |
static byte[] |
calculateFingerprint(byte[] input)
Return a byte array containing a calculated fingerprint for the passed in input data. |
static byte[] |
calculateFingerprint(byte[] input,
int bitLength)
Return a byte array containing a calculated fingerprint for the passed in input data. |
static byte[] |
calculateFingerprintSHA512_160(byte[] input)
Deprecated. use the SHAKE based version. |
boolean |
equals(java.lang.Object o)
|
byte[] |
getFingerprint()
|
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Fingerprint(byte[] source)
source - original data to calculate the fingerprint from.
public Fingerprint(byte[] source,
int bitLength)
source - original data to calculate the fingerprint from.
public Fingerprint(byte[] source,
boolean useSHA512t)
source - original data to calculate the fingerprint from.useSHA512t - use the old SHA512/160 calculation.| Method Detail |
public byte[] getFingerprint()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static byte[] calculateFingerprint(byte[] input)
input - data to base the fingerprint on.
public static byte[] calculateFingerprint(byte[] input,
int bitLength)
input - data to base the fingerprint on.bitLength - bit length of finger print to be produced.public static byte[] calculateFingerprintSHA512_160(byte[] input)
input - data to base the fingerprint on.
|
Bouncy Castle Cryptography Library 1.79 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||