Home
last modified time | relevance | path

Searched refs:mac (Results 1 – 25 of 32) sorted by relevance

12

/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/
DEapSimAkaMethodStateMachine.java221 byte[] mac = getMac(message.eapCode, message.eapIdentifier, typeData, extraData); in isValidMac()
225 boolean isValidMac = Arrays.equals(mac, atMac.mac); in isValidMac()
231 + " received=" + Log.byteArrayToHexString(atMac.mac) in isValidMac()
232 + ", computed=" + Log.byteArrayToHexString(mac)); in isValidMac()
260 byte[] mac = mMacAlgorithm.doFinal(buffer.array()); in getMac()
265 return Arrays.copyOfRange(mac, 0, AtMac.MAC_LENGTH); in getMac()
282 byte[] mac = getMac(EAP_CODE_RESPONSE, identifier, eapSimAkaTypeData, extraData); in buildResponseMessageWithMac()
284 eapSimAkaTypeData.attributeMap.put(EAP_AT_MAC, new AtMac(mac)); in buildResponseMessageWithMac()
343 byte[] mac = getMac(EAP_CODE_REQUEST, identifier, eapSimAkaTypeData, new byte[0]); in handleEapSimAkaNotification()
346 if (!Arrays.equals(mac, atMac.mac)) { in handleEapSimAkaNotification()
DEapAkaPrimeMethodStateMachine.java331 Mac mac = Mac.getInstance(MAC_ALGORITHM_STRING); in deriveCkIkPrime() local
332 mac.init(new SecretKeySpec(key.array(), MAC_ALGORITHM_STRING)); in deriveCkIkPrime()
333 return mac.doFinal(dataToSign.array()); in deriveCkIkPrime()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/simaka/
DEapSimAkaAttribute.java607 public final byte[] mac; field in EapSimAkaAttribute.AtMac
620 mac = new byte[MAC_LENGTH]; in AtMac()
621 byteBuffer.get(mac); in AtMac()
628 mac = new byte[MAC_LENGTH]; in AtMac()
631 public AtMac(byte[] mac) throws EapSimAkaInvalidAttributeException { in AtMac() argument
633 this.mac = mac; in AtMac()
635 if (mac.length != MAC_LENGTH) { in AtMac()
644 byteBuffer.put(mac); in encode()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/crypto/
DHmacSha256ByteSigner.java49 Mac mac = Mac.getInstance(MAC_ALGORITHM_STRING); in signBytes() local
50 mac.init(new SecretKeySpec(keyBytes, MAC_ALGORITHM_STRING)); in signBytes()
51 return mac.doFinal(dataToSign); in signBytes()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpPacket.java798 public static String macToString(byte[] mac) { in macToString() argument
801 for (int i = 0; i < mac.length; i++) { in macToString()
802 String hexString = "0" + Integer.toHexString(mac[i]); in macToString()
808 if (i != (mac.length - 1)) { in macToString()
1407 Inet4Address yourIp, byte[] mac, Integer timeout, Inet4Address netMask, in buildOfferPacket() argument
1413 INADDR_ANY /* clientIp */, yourIp, mac); in buildOfferPacket()
1435 Inet4Address requestClientIp, byte[] mac, Integer timeout, Inet4Address netMask, in buildAckPacket() argument
1441 mac, rapidCommit); in buildAckPacket()
1462 Inet4Address relayIp, byte[] mac, boolean broadcast, String message) { in buildNakPacket() argument
1464 transactionId, (short) 0, relayIp, mac, broadcast); in buildNakPacket()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/simaka/attributes/
DAtMacTest.java59 assertArrayEquals(new byte[MAC_LENGTH], atMac.mac); in testConstructor()
67 assertArrayEquals(MAC_BYTES, atMac.mac); in testParameterizedConstructor()
89 assertArrayEquals(MAC_BYTES, atMac.mac); in testDecode()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/
DBluetoothDeviceCriteria.java68 public boolean isMatchingMacAddress(String mac) { in isMatchingMacAddress() argument
69 return mAddressPattern.matcher(mac).matches(); in isMatchingMacAddress()
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpLeaseRepositoryTest.java514 for (MacAddress mac : new MacAddress[] { TEST_MAC_1, TEST_MAC_2, TEST_MAC_3 }) { in testReleaseLease_StableOffer()
515 final DhcpLease lease = mRepo.getOffer(CLIENTID_UNSPEC, mac, in testReleaseLease_StableOffer()
518 requestLeaseSelecting(mac, lease.getNetAddr()); in testReleaseLease_StableOffer()
519 mRepo.releaseLease(CLIENTID_UNSPEC, mac, lease.getNetAddr()); in testReleaseLease_StableOffer()
522 final DhcpLease newLease = mRepo.getOffer(CLIENTID_UNSPEC, mac, in testReleaseLease_StableOffer()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/statemachine/
DEapSimAkaMethodStateMachineTest.java242 byte[] mac = macAlgorithm.doFinal(MAC_INPUT); in testCreateHmacSha1()
243 assertFalse(Arrays.equals(MAC_INPUT, mac)); in testCreateHmacSha1()
305 byte[] mac = mStateMachine.getMac(EAP_CODE_REQUEST, ID_INT, eapSimTypeData, NONCE_MT); in testGetMac()
306 assertArrayEquals(COMPUTED_MAC, mac); in testGetMac()
308 assertArrayEquals(ORIGINAL_MAC, postCalculationAtMac.mac); in testGetMac()
/packages/modules/NetworkStack/src/android/net/util/
DConnectivityPacketSummary.java416 private static String getMacAddressString(ByteBuffer mac) { in getMacAddressString() argument
417 if (mac == null || mac.remaining() < ETHER_ADDR_LEN) return "invalid"; in getMacAddressString()
420 mac.get(bytes, 0, bytes.length); in getMacAddressString()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/
DConnectivityFragment.java333 byte[] mac = null; in getMacAddress()
335 mac = ni.getHardwareAddress(); in getMacAddress()
341 if (mac == null) { in getMacAddress()
346 for (byte b : mac) { in getMacAddress()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/simaka/
DEapAkaTypeDataTest.java103 assertArrayEquals(EAP_AKA_CHALLENGE_RESPONSE_MAC_BYTES, ((AtMac) entry.getValue()).mac); in testDecode()
133 assertArrayEquals(MAC_BYTES, ((AtMac) entry.getValue()).mac); in testDecodeWithOptionalAttributes()
DEapAkaPrimeTypeDataTest.java114 assertArrayEquals(MAC_BYTES, ((AtMac) entry.getValue()).mac); in testDecode()
/packages/inputmethods/LatinIME/dictionaries/
Dtr_wordlist.combined.gz1dictionary=main:tr,locale=tr,description=Türkçe,date=1414726261, ...
Dfr_wordlist.combined.gz1dictionary=main:fr,locale=fr,description=Français,date=1414726264, ...
Dro_wordlist.combined.gz1dictionary=main:ro,locale=ro,description=Română,date=1412325511, ...
Dcs_wordlist.combined.gz1dictionary=main:cs,locale=cs,description=Čeština,date=1393228134, ...
Dpt_BR_wordlist.combined.gz1dictionary=main:pt_br,locale=pt_BR,description=Português (Brasil),date ...
Dpt_PT_wordlist.combined.gz1dictionary=main:pt_pt,locale=pt_PT,description=Português (Portugal),date ...
Des_wordlist.combined.gz1dictionary=main:es,locale=es,description=Español,date=1414726268, ...
Dda_wordlist.combined.gz1dictionary=main:da,locale=da,description=Dansk,date=1393228134, ...
Den_GB_wordlist.combined.gz1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...
Den_US_wordlist.combined.gz1dictionary=main:en_us,locale=en_US,description=English (US),date ...
Den_wordlist.combined.gz1dictionary=main:en,locale=en,description=English,date=1414726273, ...
/packages/apps/DocumentsUI/tests/res/raw/
Dimages_tar15733 …W�!�Λ ����'��Z[i���;�8n�ڐM�&Q=�Q�ރ#���m�U��V)����j��jaW�T�7���{�׈mac�忽�z��4�+�V�Tk�"ܑ��…

12