public class Fingerprint extends Object
| Constructor and Description |
|---|
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).
|
| Modifier and Type | Method and Description |
|---|---|
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(Object o) |
byte[] |
getFingerprint() |
int |
hashCode() |
String |
toString() |
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.public byte[] getFingerprint()
public 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.Copyright © 2015–2019 The veraPDF Consortium. All rights reserved.