DGHashInfo¶
Class to hold hashes and validate them.
Public Methods:¶
DGHashInfo(int dgNumber, byte[] readHash, byte[] calculatedHash)
Class constructor.
-
Parameters:
- dgNumber:
- readHash:
- calculatedHash:
int getDgNumber()
-
Returns:
- The DG number.
byte[] getReadHash()
-
Returns:
- The read hash bytes.
byte[] getCalculatedHash()
-
Returns:
- The caculated hash bytes.
boolean isValid()
-
Returns:
- True if read and calculated hashes are equal, false otherwise.