Home
last modified time | relevance | path

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

/aosp_15_r20/frameworks/libs/service_entitlement/tests/src/com/android/libraries/entitlement/eapaka/
DEapAkaSecurityContextTest.java88 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()
95 byte[] data = convertHexStringToBytes(GSM_SECURITY_CONTEXT_RESPONSE_TAG_DE); in parseResponseData_invalidWithWrongTag_throwsException()
113 byte[] data = convertHexStringToBytes(GSM_SECURITY_CONTEXT_RESPONSE_INVALID_RES_LENGTH); in parseResponseData_invalidWithWrongResLength_throwsException()
122 byte[] data = convertHexStringToBytes(GSM_SECURITY_CONTEXT_RESPONSE_INVALID_CK_LENGTH); in parseResponseData_invalidWithWrongCkLength_throwsException()
131 byte[] data = convertHexStringToBytes(GSM_SECURITY_CONTEXT_RESPONSE_INVALID_IK_LENGTH); in parseResponseData_invalidWithWrongIkLength_throwsException()
141 byte[] data = convertHexStringToBytes(GSM_SECURITY_CONTEXT_RESPONSE_INVALID_KC_LENGTH); in parseResponseData_validWithWrongKcLength()
146 assertThat(securityContext.getIk()).isEqualTo(convertHexStringToBytes(EXPECTED_IK)); in parseResponseData_validWithWrongKcLength()
147 assertThat(securityContext.getCk()).isEqualTo(convertHexStringToBytes(EXPECTED_CK)); in parseResponseData_validWithWrongKcLength()
[all …]
DEapAkaChallengeTest.java136 byte[] data = convertHexStringToBytes(EAP_AKA_CHALLENGE_REQUEST_WITHOUT_RAND); in parseEapAkaChallengeRequest_withoutRand()
146 byte[] data = convertHexStringToBytes(EAP_AKA_CHALLENGE_REQUEST_WITHOUT_AUTN); in parseEapAkaChallengeRequest_withoutAutn()
156 byte[] data = convertHexStringToBytes(EAP_AKA_CHALLENGE_REQUEST_WITHOUT_RAND_AUTN); in parseEapAkaChallengeRequest_withoutRandAndAutn()
166 byte[] data = convertHexStringToBytes(EAP_AKA_CHALLENGE_REQUEST_WITH_CODE_RESPONSE); in parseEapAkaChallengeRequest_withCodeResponse()
176 byte[] data = convertHexStringToBytes(EAP_AKA_CHALLENGE_REQUEST_WITH_WRONG_LENGTH); in parseEapAkaChallengeRequest_withWrongLength()
186 byte[] data = convertHexStringToBytes(EAP_AKA_CHALLENGE_REQUEST_WITH_EAP_TYPE_99); in parseEapAkaChallengeRequest_withEapType99()
196 byte[] data = convertHexStringToBytes(EAP_AKA_CHALLENGE_REQUEST_WITH_SUBTYPE_99); in parseEapAkaChallengeRequest_withSubType99()
206 byte[] data = convertHexStringToBytes(EAP_AKA_CHALLENGE_REQUEST_WITH_LENGTH_OVER_DATA); in parseEapAkaChallengeRequest_withLengthOverData()
216 byte[] data = convertHexStringToBytes(EAP_AKA_CHALLENGE_REQUEST_WITH_RAND_LENGTH_16); in parseEapAkaChallengeRequest_withRandLength16()
226 byte[] data = convertHexStringToBytes(EAP_AKA_CHALLENGE_REQUEST_WITH_AUTN_LENGTH_16); in parseEapAkaChallengeRequest_withAutnLength16()
[all …]
DMasterKeyTest.java40 convertHexStringToBytes(EXPECTED_IK), in generateTransientEapKeys_getAutPassed()
41 convertHexStringToBytes(EXPECTED_CK)); in generateTransientEapKeys_getAutPassed()
43 assertThat(masterKey.getAut()).isEqualTo(convertHexStringToBytes(EXPECTED_AUT)); in generateTransientEapKeys_getAutPassed()
51 convertHexStringToBytes(EXPECTED_IK), in generateTransientEapKeys_withoutImsiEap_getNull()
52 convertHexStringToBytes(EXPECTED_CK)); in generateTransientEapKeys_withoutImsiEap_getNull()
63 convertHexStringToBytes(EXPECTED_CK)); in generateTransientEapKeys_withoutIk_getNull()
73 convertHexStringToBytes(EXPECTED_IK), in generateTransientEapKeys_withoutCk_getNull()
79 private byte[] convertHexStringToBytes(String input) { in convertHexStringToBytes() method in MasterKeyTest
DEapAkaResponseTest.java109 convertHexStringToBytes(EAP_AKA_CHALLENGE_RESPONSE), Base64.NO_WRAP); in generateEapAkaChallengeResponse_authSuccess()
141 convertHexStringToBytes(EAP_AKA_CHALLENGE_SYNC_FAILURE), Base64.NO_WRAP); in generateEapAkaChallengeResponse_syncFailure()
149 private static byte[] convertHexStringToBytes(String input) { in convertHexStringToBytes() method in EapAkaResponseTest
/aosp_15_r20/device/google/cuttlefish/guest/hals/ril/reference-ril/
Dreference-ril.c306 extern uint8_t * convertHexStringToBytes(void *response, size_t responseLen);
2622 uint8_t* tmpBinSimResponse = convertHexStringToBytes(sres, sresLen);
2628 tmpBinSimResponse = convertHexStringToBytes(kc, kcLen);
2654 uint8_t* tmpBinSimResponse = convertHexStringToBytes(ck, ckLen);
2660 tmpBinSimResponse = convertHexStringToBytes(ik, ikLen);
2667 tmpBinSimResponse = convertHexStringToBytes(resAuts, resAutsLen);
3123 uint8_t *bytes = convertHexStringToBytes(sr.simResponse, strlen(sr.simResponse));
4291 alphaBytes = convertHexStringToBytes(alphaStr, strlen(alphaStr));
/aosp_15_r20/hardware/ril/libril/
H A Dril_service.cpp6801 uint8_t * convertHexStringToBytes(void *response, size_t responseLen) { in convertHexStringToBytes() function
6837 uint8_t *bytes = convertHexStringToBytes(response, responseLen); in newSmsInd()
6868 uint8_t *bytes = convertHexStringToBytes(response, responseLen); in newSmsStatusReportInd()
/aosp_15_r20/device/google/cuttlefish/guest/hals/ril/reference-libril/
Dril_service.cpp10730 extern "C" uint8_t * convertHexStringToBytes(void *response, size_t responseLen) { in convertHexStringToBytes() function
10766 uint8_t *bytes = convertHexStringToBytes(response, responseLen); in newSmsInd()
10797 uint8_t *bytes = convertHexStringToBytes(response, responseLen); in newSmsStatusReportInd()