Searched refs:macArray (Results 1 – 2 of 2) sorted by relevance
138 public static String macAddressFromByteArray(byte[] macArray) { in macAddressFromByteArray() argument139 if (macArray == null) { in macAddressFromByteArray()142 if (macArray.length != MAC_LENGTH) { in macAddressFromByteArray()143 throw new IllegalArgumentException("invalid macArray length: " + macArray.length); in macAddressFromByteArray()146 for (int i = 0; i < macArray.length; i++) { in macAddressFromByteArray()148 sb.append(new String(HexEncoding.encode(macArray, i, 1))); in macAddressFromByteArray()177 public static Long macAddressToLong(byte[] macArray) { in macAddressToLong() argument178 if (macArray == null) { in macAddressToLong()181 if (macArray.length != MAC_LENGTH) { in macAddressToLong()182 throw new IllegalArgumentException("invalid macArray length: " + macArray.length); in macAddressToLong()[all …]
102 …ate boolean verifyMac(@Nullable byte[] cipherArray, @Nullable byte[] iv, @Nullable byte[] macArray) in verifyMac() argument104 if (cipherArray == null || cipherArray.length == 0 || macArray == null in verifyMac()105 || macArray.length == 0) { in verifyMac()111 return constantTimeArrayEquals(macArray, createMac(cipherArray, iv)); in verifyMac()