Home
last modified time | relevance | path

Searched refs:atMac (Results 1 – 5 of 5) sorted by relevance

/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/simaka/attributes/
DAtMacTest.java57 AtMac atMac = new AtMac(); in testConstructor() local
58 assertEquals(EAP_AT_MAC, atMac.attributeType); in testConstructor()
59 assertEquals(EXPECTED_LENGTH, atMac.lengthInBytes); in testConstructor()
60 assertArrayEquals(new byte[MAC_LENGTH], atMac.mac); in testConstructor()
65 AtMac atMac = new AtMac(MAC_BYTES); in testParameterizedConstructor() local
66 assertEquals(EAP_AT_MAC, atMac.attributeType); in testParameterizedConstructor()
67 assertEquals(EXPECTED_LENGTH, atMac.lengthInBytes); in testParameterizedConstructor()
68 assertArrayEquals(MAC_BYTES, atMac.mac); in testParameterizedConstructor()
74 AtMac atMac = new AtMac(INVALID_MAC); in testParameterizedConstructorInvalidMac() local
87 AtMac atMac = (AtMac) result; in testDecode() local
[all …]
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/statemachine/
DEapAkaPrimeChallengeStateTest.java173 AtMac atMac = new AtMac(MAC_BYTES); in testProcessMissingAtKdf() local
180 Arrays.asList(atRandAka, atAutn, atMac, atKdfInput))); in testProcessMissingAtKdf()
195 AtMac atMac = new AtMac(MAC_BYTES); in testProcessMissingAtKdfInput() local
201 EAP_AKA_CHALLENGE, Arrays.asList(atRandAka, atAutn, atMac, atKdf))); in testProcessMissingAtKdfInput()
216 AtMac atMac = new AtMac(MAC_BYTES); in testProcessUnsupportedKdf() local
224 Arrays.asList(atRandAka, atAutn, atMac, atKdfInput, atKdf))); in testProcessUnsupportedKdf()
239 AtMac atMac = new AtMac(MAC_BYTES); in testProcessIncorrectNetworkName() local
247 Arrays.asList(atRandAka, atAutn, atMac, atKdfInput, atKdf))); in testProcessIncorrectNetworkName()
270 AtMac atMac = new AtMac(MAC_BYTES); in testProcessIncorrectNetworkNameIsIgnored() local
277 Arrays.asList(atRandAka, atAutn, atMac, atKdfInput, atKdf)); in testProcessIncorrectNetworkNameIsIgnored()
[all …]
DEapAkaChallengeStateTest.java177 AtMac atMac = new AtMac(REQUEST_MAC_BYTES); in testProcessMissingAtRand() local
181 new EapAkaTypeData(EAP_AKA_CHALLENGE, Arrays.asList(atAutn, atMac))); in testProcessMissingAtRand()
197 AtMac atMac = new AtMac(REQUEST_MAC_BYTES); in testProcessMissingAtAutn() local
201 new EapAkaTypeData(EAP_AKA_CHALLENGE, Arrays.asList(atRandAka, atMac))); in testProcessMissingAtAutn()
278 AtMac atMac = new AtMac(REQUEST_MAC_BYTES); in testProcessIccAuthenticationNullResponse() local
284 Arrays.asList(atRandAka, atAutn, atMac))); in testProcessIccAuthenticationNullResponse()
312 AtMac atMac = new AtMac(REQUEST_MAC_BYTES); in testProcessIccAuthenticationInvalidTag() local
318 Arrays.asList(atRandAka, atAutn, atMac))); in testProcessIccAuthenticationInvalidTag()
346 AtMac atMac = new AtMac(REQUEST_MAC_BYTES); in testProcessIccAuthenticationSynchronizeTag() local
352 Arrays.asList(atRandAka, atAutn, atMac))); in testProcessIccAuthenticationSynchronizeTag()
[all …]
DEapSimAkaMethodStateMachineTest.java375 AtMac atMac = new AtMac(ORIGINAL_MAC); in testGetMac() local
378 new EapSimTypeData(EAP_SIM_CHALLENGE, Arrays.asList(atRandSim, atMac)); in testGetMac()
404 AtMac atMac = new AtMac(ORIGINAL_MAC); in testReceivedValidMac() local
407 new EapSimTypeData(EAP_SIM_CHALLENGE, Arrays.asList(atRandSim, atMac)); in testReceivedValidMac()
681 AtMac atMac = in testIsValidMac() local
688 Arrays.asList(atRand, atAutn, atCheckcode, atIv, atEncrData, atMac)); in testIsValidMac()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/
DEapSimAkaMethodStateMachine.java287 AtMac atMac = (AtMac) typeData.attributeMap.get(EAP_AT_MAC); in isValidMac() local
289 boolean isValidMac = Arrays.equals(mac, atMac.mac); in isValidMac()
295 + " received=" + Log.byteArrayToHexString(atMac.mac) in isValidMac()
567 AtMac atMac = (AtMac) eapSimAkaTypeData.attributeMap.get(EAP_AT_MAC); in handleEapSimAkaNotification() local
568 if (!Arrays.equals(mac, atMac.mac)) { in handleEapSimAkaNotification()