Home
last modified time | relevance | path

Searched refs:securityContext (Results 1 – 3 of 3) sorted by relevance

/frameworks/libs/service_entitlement/tests/src/com/android/libraries/entitlement/eapaka/
DEapAkaSecurityContextTest.java85 EapAkaSecurityContext securityContext = in parseResponseData_validResponse_pass() local
88 assertThat(securityContext.getIk()).isEqualTo(convertHexStringToBytes(EXPECTED_IK)); in parseResponseData_validResponse_pass()
89 assertThat(securityContext.getCk()).isEqualTo(convertHexStringToBytes(EXPECTED_CK)); in parseResponseData_validResponse_pass()
90 assertThat(securityContext.getRes()).isEqualTo(convertHexStringToBytes(EXPECTED_RES)); in parseResponseData_validResponse_pass()
142 EapAkaSecurityContext securityContext = EapAkaSecurityContext.from(encodedData); in parseResponseData_validWithWrongKcLength() local
144 assertThat(securityContext.getIk()).isEqualTo(convertHexStringToBytes(EXPECTED_IK)); in parseResponseData_validWithWrongKcLength()
145 assertThat(securityContext.getCk()).isEqualTo(convertHexStringToBytes(EXPECTED_CK)); in parseResponseData_validWithWrongKcLength()
146 assertThat(securityContext.getRes()).isEqualTo(convertHexStringToBytes(EXPECTED_RES)); in parseResponseData_validWithWrongKcLength()
154 EapAkaSecurityContext securityContext = EapAkaSecurityContext.from(encodedData); in parseResponseData_noKcKey() local
156 assertThat(securityContext.getIk()).isEqualTo(convertHexStringToBytes(EXPECTED_IK)); in parseResponseData_noKcKey()
[all …]
/frameworks/libs/service_entitlement/java/com/android/libraries/entitlement/eapaka/
DEapAkaResponse.java101 EapAkaSecurityContext securityContext = EapAkaSecurityContext.from(response); in respondToEapAkaChallenge() local
104 if (securityContext.getRes() != null in respondToEapAkaChallenge()
105 && securityContext.getIk() != null in respondToEapAkaChallenge()
106 && securityContext.getCk() != null) { // Success authentication in respondToEapAkaChallenge()
113 securityContext.getIk(), in respondToEapAkaChallenge()
114 securityContext.getCk()); in respondToEapAkaChallenge()
124 securityContext.getRes(), eapAkaChallenge.getIdentifier(), mk.getAut()); in respondToEapAkaChallenge()
133 } else if (securityContext.getAuts() != null) { in respondToEapAkaChallenge()
137 securityContext.getAuts(), eapAkaChallenge.getIdentifier()); in respondToEapAkaChallenge()
DEapAkaSecurityContext.java59 EapAkaSecurityContext securityContext = new EapAkaSecurityContext(); in from() local
60 securityContext.parseResponseData(response); in from()
61 if (!securityContext.isValid()) { in from()
66 return securityContext; in from()