Home
last modified time | relevance | path

Searched refs:macArray (Results 1 – 2 of 2) sorted by relevance

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DNativeUtil.java138 public static String macAddressFromByteArray(byte[] macArray) { in macAddressFromByteArray() argument
139 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() argument
178 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 …]
/frameworks/base/services/core/java/com/android/server/accounts/
DCryptoHelper.java102 …ate boolean verifyMac(@Nullable byte[] cipherArray, @Nullable byte[] iv, @Nullable byte[] macArray) in verifyMac() argument
104 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()