3 public class InternalUtils {
4 public static byte[] check_arr_len(byte[] arr, int length) throws IllegalArgumentException {
5 if (arr.length != length) {
6 throw new IllegalArgumentException("Array must be of fixed size " + length + " but was of length " + arr.length);