Skip to content

Commit

Permalink
Merge pull request #316 from GSA/1117-sp800-76Test-11-assert-text-fix
Browse files Browse the repository at this point in the history
Update assert messages in SP800_76_Tests.java
  • Loading branch information
JBPayne007 authored Nov 29, 2023
2 parents fd189e5 + 083a66d commit e546e29
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -418,9 +418,9 @@ void sp800_76Test_11(String oid, TestReporter reporter) {
int biometricDataBlockLength = (((recordLength[0] & 0xFF) << 8) | (recordLength[1] & 0xFF));

//BDB length must be between 26 and 1574
assertTrue(biometricDataBlockLength >= 26 && biometricDataBlockLength <= 1574, "Fingerprint recod length is not 26 <= L <= 1574");
//Confirm that the record length value is the same at the length of the leftover buffer
assertTrue(biometricDataBlockLength == biometricDataBlock.length, "Fingerprint recod length does not match leftover buffer length");
assertTrue(biometricDataBlockLength >= 26 && biometricDataBlockLength <= 1574, "Fingerprint record length is not 26 <= L <= 1574");
//Confirm that the record length value is the same as the length of the leftover buffer
assertTrue(biometricDataBlockLength == biometricDataBlock.length, "Fingerprint record length does not match leftover buffer length");
}


Expand Down

0 comments on commit e546e29

Please sign in to comment.