Crytpo: Trying to fix in pipeline test failure, experimentally altering a line to see if this forces the test to pass. The test is off by one column in the piepline

This commit is contained in:
REDMOND\brodes
2025-10-22 14:16:12 -04:00
parent e16543ab6d
commit 3561d01144

View File

@@ -122,7 +122,7 @@ class BadMacUse {
Mac mac = Mac.getInstance("HmacSHA256");
mac.init(macKey);
byte[] computedMac = mac.doFinal(ciphertext); // False Positive
// Concatenate ciphertext and MAC
byte[] output = new byte[ciphertext.length + computedMac.length];
System.arraycopy(ciphertext, 0, output, 0, ciphertext.length);