From c05072543a3200dbfc3143a812b29956e5d2088c Mon Sep 17 00:00:00 2001 From: jwilkes Date: Mon, 15 May 2023 16:49:13 +0200 Subject: [PATCH] fixed and aligned Magic ID to match everywhere. --- .../metabit/custom/safe/iip/InterleavedIntegrityPadding.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/metabit/custom/safe/iip/InterleavedIntegrityPadding.java b/src/main/java/com/metabit/custom/safe/iip/InterleavedIntegrityPadding.java index 8a5186e..4fafcda 100644 --- a/src/main/java/com/metabit/custom/safe/iip/InterleavedIntegrityPadding.java +++ b/src/main/java/com/metabit/custom/safe/iip/InterleavedIntegrityPadding.java @@ -317,7 +317,7 @@ private static int calculateNumberOfBlocksOverall(final int payloadLengthInBytes } // --- class constants --- - final static byte[] MAGIC_ID_VERSION_1_0 = {0x3E, 0x7A, (byte) 0xB1, 0x7C, 0x5A, (byte) 0xFE, (byte) 0xE4, 0x10}; // 0x3E7AB17C5AFEE410L + final static byte[] MAGIC_ID_VERSION_1_0 = {0x3E, 0x7A, (byte) 0xB1, 0x70, 0x5A, (byte) 0xFE, (byte) 0xE4, 0x10}; // 0x3E7AB1705AFEE410L private static final int MAGIC_ID_LENGTH = 8; public final static int NONCE_SIZE = 4; // 4 byte. final static int PAYLOAD_LENGTH_SIZE = 4; // 4 byte.