| Modifier and Type | Field and Description |
|---|---|
| private static char[] | |
| private final byte[] |
| Access | Constructor and Description |
|---|---|
| public | Fingerprint(byte[]
original data to calculate the fingerprint from. source)Base constructor - use SHAKE-256 (160 bits). |
| public | Fingerprint(byte[]
original data to calculate the fingerprint from. source, int bitLength)Constructor with length - use SHAKE-256 (bitLength bits). |
| public | Fingerprint(byte[]
original data to calculate the fingerprint from. source, boolean use the old SHA512/160 calculation. useSHA512t)
Deprecated
use the SHAKE only version.
Base constructor - for backwards compatibility.
|
| Modifier and Type | Method and Description |
|---|---|
| public static byte[] | Returns: a byte array containing a 160 bit fingerprint.data to base the fingerprint on. input)Return a byte array containing a calculated fingerprint for the passed in input data. |
| public static byte[] | Returns: a byte array containing a 20 byte fingerprint.data to base the fingerprint on. input, int bit length of finger print to be produced. bitLength)Return a byte array containing a calculated fingerprint for the passed in input data. |
| public static byte[] | Returns: a byte array containing a 20 byte fingerprint.data to base the fingerprint on. input)
Deprecated
use the SHAKE based version.
Return a byte array containing a calculated fingerprint for the passed in input data.
|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public byte[] | |
| public int | |
| public String |
| encodingTable | back to summary |
|---|---|
| private static char[] encodingTable | |
| fingerprint | back to summary |
|---|---|
| private final byte[] fingerprint | |
| Fingerprint | back to summary |
|---|---|
| public Fingerprint(byte[] source) Base constructor - use SHAKE-256 (160 bits). This is the recommended one as it is also produced by the FIPS API.
| |
| Fingerprint | back to summary |
|---|---|
| public Fingerprint(byte[] source, int bitLength) Constructor with length - use SHAKE-256 (bitLength bits). This is the recommended one as it is also produced by the FIPS API.
| |
| Fingerprint | back to summary |
|---|---|
| public Fingerprint(byte[] source, boolean useSHA512t)
Deprecated use the SHAKE only version. Base constructor - for backwards compatibility.
| |
| calculateFingerprint | back to summary |
|---|---|
| public static byte[] calculateFingerprint(byte[] input) Return a byte array containing a calculated fingerprint for the passed in input data. This calculation is compatible with the BC FIPS API.
| |
| calculateFingerprint | back to summary |
|---|---|
| public static byte[] calculateFingerprint(byte[] input, int bitLength) Return a byte array containing a calculated fingerprint for the passed in input data. This calculation is compatible with the BC FIPS API.
| |
| calculateFingerprintSHA512_160 | back to summary |
|---|---|
| public static byte[] calculateFingerprintSHA512_160(byte[] input)
Deprecated use the SHAKE based version. Return a byte array containing a calculated fingerprint for the passed in input data. The fingerprint is based on SHA512/160.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getFingerprint | back to summary |
|---|---|
| public byte[] getFingerprint() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |