Home
last modified time | relevance | path

Searched refs:sres (Results 1 – 7 of 7) sorted by relevance

/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/
DEapSimMethodStateMachine.java469 sresValues.put(result.sres); in process()
514 LOG.d(mTAG, "SRES=" + LOG.pii(randChallengeResult.sres)); in getRandChallengeResults()
534 byte[] sres = new byte[mSresLenBytes]; in getRandChallengeResultFromResponse()
535 buffer.get(sres); in getRandChallengeResultFromResponse()
544 return new RandChallengeResult(sres, kc); in getRandChallengeResultFromResponse()
549 public final byte[] sres; field in EapSimMethodStateMachine.ChallengeState.RandChallengeResult
552 RandChallengeResult(byte[] sres, byte[] kc) throws EapSimAkaInvalidLengthException { in RandChallengeResult() argument
553 this.sres = sres; in RandChallengeResult()
556 if (sres.length != mSresLenBytes) { in RandChallengeResult()
569 return Arrays.equals(sres, that.sres) in equals()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DSupplicantStaNetworkHalAidlImplTest.java422 final byte[] sres = new byte[]{0x12, 0x10, 0x32, 0x23}; in testSendNetworkEapSimGsmAuthResponseWith2KcSresPair()
426 + ":" + NativeUtil.hexStringFromByteArray(sres) in testSendNetworkEapSimGsmAuthResponseWith2KcSresPair()
428 + ":" + NativeUtil.hexStringFromByteArray(sres); in testSendNetworkEapSimGsmAuthResponseWith2KcSresPair()
439 assertArrayEquals(sres, captured[0].sres); in testSendNetworkEapSimGsmAuthResponseWith2KcSresPair()
441 assertArrayEquals(sres, captured[1].sres); in testSendNetworkEapSimGsmAuthResponseWith2KcSresPair()
473 assertArrayEquals(sres1, captured[0].sres); in testSendNetworkEapSimGsmAuthResponseWith3KcSresPair()
475 assertArrayEquals(sres2, captured[1].sres); in testSendNetworkEapSimGsmAuthResponseWith3KcSresPair()
477 assertArrayEquals(sres3, captured[2].sres); in testSendNetworkEapSimGsmAuthResponseWith3KcSresPair()
507 final byte[] sres = new byte[]{0x12, 0x23, 0x12, 0x23}; in testSendInvalidKcSresPairNumNetworkEapSimGsmAuthResponse()
511 + ":" + NativeUtil.hexStringFromByteArray(sres); in testSendInvalidKcSresPairNumNetworkEapSimGsmAuthResponse()
DSupplicantStaNetworkHalHidlImplTest.java552 final byte[] sres = new byte[]{0x12, 0x10, 0x32, 0x23}; in testSendNetworkEapSimGsmAuthResponseWith2KcSresPair()
555 + ":" + NativeUtil.hexStringFromByteArray(sres) in testSendNetworkEapSimGsmAuthResponseWith2KcSresPair()
557 + ":" + NativeUtil.hexStringFromByteArray(sres); in testSendNetworkEapSimGsmAuthResponseWith2KcSresPair()
565 assertArrayEquals(sres, params.get(0).sres); in testSendNetworkEapSimGsmAuthResponseWith2KcSresPair()
567 assertArrayEquals(sres, params.get(1).sres); in testSendNetworkEapSimGsmAuthResponseWith2KcSresPair()
600 assertArrayEquals(sres1, params.get(0).sres); in testSendNetworkEapSimGsmAuthResponseWith3KcSresPair()
602 assertArrayEquals(sres2, params.get(1).sres); in testSendNetworkEapSimGsmAuthResponseWith3KcSresPair()
604 assertArrayEquals(sres3, params.get(2).sres); in testSendNetworkEapSimGsmAuthResponseWith3KcSresPair()
644 final byte[] sres = new byte[]{0x12, 0x23, 0x12, 0x23}; in testSendInvalidKcSresPairNumNetworkEapSimGsmAuthResponse()
647 + ":" + NativeUtil.hexStringFromByteArray(sres); in testSendInvalidKcSresPairNumNetworkEapSimGsmAuthResponse()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DSupplicantStaNetworkHalAidlImpl.java3079 param.sres = new byte[4]; in sendNetworkEapSimGsmAuthResponse()
3085 byte[] sres = NativeUtil.hexStringToByteArray(match.group(2)); in sendNetworkEapSimGsmAuthResponse()
3086 if (sres == null || sres.length != param.sres.length) { in sendNetworkEapSimGsmAuthResponse()
3091 System.arraycopy(sres, 0, param.sres, 0, param.sres.length); in sendNetworkEapSimGsmAuthResponse()
DWifiCarrierInfoManager.java1403 String sres = makeHex(result, 1, sresLen); in getGsmAuthResponseWithLength() local
1415 sb.append(":" + kc + ":" + sres); in getGsmAuthResponseWithLength()
1416 Log.v(TAG, "kc:" + kc + " sres:" + sres); in getGsmAuthResponseWithLength()
1475 String sres = makeHex(result, START_SRES_POS, SRES_LEN); in getGsmSimpleSimNoLengthAuthResponse() local
1477 sb.append(":" + kc + ":" + sres); in getGsmSimpleSimNoLengthAuthResponse()
1478 Log.v(TAG, "kc:" + kc + " sres:" + sres); in getGsmSimpleSimNoLengthAuthResponse()
DSupplicantStaNetworkHalHidlImpl.java3242 param.sres = new byte[4]; in sendNetworkEapSimGsmAuthResponse()
3248 byte[] sres = NativeUtil.hexStringToByteArray(match.group(2)); in sendNetworkEapSimGsmAuthResponse()
3249 if (sres == null || sres.length != param.sres.length) { in sendNetworkEapSimGsmAuthResponse()
3254 System.arraycopy(sres, 0, param.sres, 0, param.sres.length); in sendNetworkEapSimGsmAuthResponse()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/statemachine/
DEapSimChallengeStateTest.java231 assertArrayEquals(SRES_1_BYTES, result.sres); in testGetRandChallengeResultFromResponse()