Class NumericFingerprintGenerator
- java.lang.Object
-
- org.signal.libsignal.protocol.fingerprint.NumericFingerprintGenerator
-
- All Implemented Interfaces:
FingerprintGenerator
public class NumericFingerprintGenerator extends java.lang.Object implements FingerprintGenerator
-
-
Constructor Summary
Constructors Constructor Description NumericFingerprintGenerator(int iterations)Construct a fingerprint generator for 60 digit numerics.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FingerprintcreateFor(int version, byte[] localStableIdentifier, IdentityKey localIdentityKey, byte[] remoteStableIdentifier, IdentityKey remoteIdentityKey)Generate a scannable and displayable fingerprint.
-
-
-
Constructor Detail
-
NumericFingerprintGenerator
public NumericFingerprintGenerator(int iterations)
Construct a fingerprint generator for 60 digit numerics.- Parameters:
iterations- The number of internal iterations to perform in the process of generating a fingerprint. This needs to be constant, and synchronized across all clients. The higher the iteration count, the higher the security level: - 1024 ~ 109.7 bits - 1400 > 110 bits - 5200 > 112 bits
-
-
Method Detail
-
createFor
public Fingerprint createFor(int version, byte[] localStableIdentifier, IdentityKey localIdentityKey, byte[] remoteStableIdentifier, IdentityKey remoteIdentityKey)
Generate a scannable and displayable fingerprint.- Specified by:
createForin interfaceFingerprintGenerator- Parameters:
version- The version of fingerprint you are generating.localStableIdentifier- The client's "stable" identifier.localIdentityKey- The client's identity key.remoteStableIdentifier- The remote party's "stable" identifier.remoteIdentityKey- The remote party's identity key.- Returns:
- A unique fingerprint for this conversation.
-
-