Home
last modified time | relevance | path

Searched refs:encryptedData (Results 1 – 25 of 29) sorted by relevance

12

/ohos5.0/foundation/communication/dsoftbus/tests/core/adapter/unittest/
H A Ddsoftbus_rsa_crypto_test.cpp122 uint8_t *encryptedData = NULL; variable
132 SoftBusFree(encryptedData);
148 uint8_t *encryptedData = NULL; variable
162 ret = SoftBusRsaEncrypt(srcData, srcDataLen, &peerPublicKey, &encryptedData, nullptr);
180 uint8_t *encryptedData = NULL; variable
205 uint8_t *encryptedData = NULL; variable
219 ret = SoftBusRsaDecrypt(encryptedData, encryptedDataLen, nullptr, &decryptedDataLen);
221 ret = SoftBusRsaDecrypt(encryptedData, encryptedDataLen, &decryptedData, nullptr);
224 SoftBusFree(encryptedData);
240 uint8_t *encryptedData = NULL; variable
[all …]
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/utils/
H A Dwifi_encryption_util.cpp90 EncryptedData &encryptedData) in WifiEncryption() argument
134 encryptedData.IV = ConvertArrayToHex(nonce, NONCE_SIZE); in WifiEncryption()
142 if (encryptedData.encryptedPassword.size() == 0) { in WifiDecryption()
155 retStrToArrat = HexStringToVec(encryptedData.IV, nonce, NONCE_SIZE, lengthIV); in WifiDecryption()
318 const EncryptedData &encryptedData) in EncryptParamSet() argument
347 const EncryptedData &encryptedData) in DecryptParamSet() argument
356 uint32_t cipherLength = encryptedData.encryptedPassword.length(); in DecryptParamSet()
384 EncryptedData &encryptedData) in WifiLoopEncrypt() argument
423 encryptedData.encryptedPassword = temp; in WifiLoopEncrypt()
433 if (encryptedData.encryptedPassword.length() == 0) { in WifiLoopDecrypt()
[all …]
H A Dwifi_encryption_util.h87 EncryptedData &encryptedData);
96 …_t WifiDecryption(const WifiEncryptionInfo &wifiEncryptionInfo, const EncryptedData &encryptedData,
123 EncryptedData &encryptedData);
133 …t WifiLoopDecrypt(const WifiEncryptionInfo &wifiEncryptionInfo, const EncryptedData &encryptedData,
/ohos5.0/foundation/communication/dsoftbus/tests/core/adapter/fuzztest/softbusrsacrypto_fuzzer/
H A Dsoftbusrsacrypto_fuzzer.cpp31 uint8_t *encryptedData = nullptr; in SoftBusRsaEncryptFuzzTest() local
34 …if (SoftBusRsaEncrypt(data, size, &peerPublicKey, &encryptedData, &encryptedDataLen) != SOFTBUS_OK… in SoftBusRsaEncryptFuzzTest()
38 SoftBusFree(encryptedData); in SoftBusRsaEncryptFuzzTest()
/ohos5.0/foundation/communication/dsoftbus/core/adapter/huks/src/
H A Dsoftbus_rsa_encrypt.c280 …Encrypt(const uint8_t *srcData, uint32_t srcDataLen, PublicKey *publicKey, uint8_t **encryptedData, in SoftBusRsaEncrypt() argument
284 …publicKey->len <= RSA_PUB_KEY_LEN_SUBTRACT_ENCRYPT_LEN || encryptedData == NULL || encryptedDataLe… in SoftBusRsaEncrypt()
307 *encryptedData = (uint8_t *)SoftBusCalloc(cipherTextLen); in SoftBusRsaEncrypt()
308 if (*encryptedData == NULL) { in SoftBusRsaEncrypt()
315 if (memcpy_s(*encryptedData, cipherTextLen, cipherText, cipherTextLen) != EOK) { in SoftBusRsaEncrypt()
320 SoftBusFree(*encryptedData); in SoftBusRsaEncrypt()
321 *encryptedData = NULL; in SoftBusRsaEncrypt()
H A Dsoftbus_rsa_encrypt_virtual.c26 …Encrypt(const uint8_t *srcData, uint32_t srcDataLen, PublicKey *publicKey, uint8_t **encryptedData, in SoftBusRsaEncrypt() argument
32 (void)encryptedData; in SoftBusRsaEncrypt()
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webview/
H A Dark_keystore_adapter_impl.cpp34 …ng ArkKeystoreAdapterImpl::DecryptKey(const ArkWebString& alias, const ArkWebString& encryptedData) in DecryptKey() argument
37 std::string s_encryptedData = ArkWebStringStructToClass(encryptedData); in DecryptKey()
H A Dark_keystore_adapter_impl.h31 ArkWebString DecryptKey(const ArkWebString& alis, const ArkWebString& encryptedData) override;
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/
H A Dark_keystore_adapter_wrapper.cpp40 …ing ArkKeystoreAdapterWrapper::DecryptKey(const std::string alias, const std::string encryptedData) in DecryptKey() argument
47 ArkWebString ark_encryptedData = ArkWebStringClassToStruct(encryptedData); in DecryptKey()
H A Dark_keystore_adapter_wrapper.h30 std::string DecryptKey(const std::string alis, const std::string encryptedData) override;
/ohos5.0/base/web/webview/ohos_adapter/keystore_adapter/src/
H A Dkeystore_adapter_impl.cpp189 …d::string KeystoreAdapterImpl::DecryptKey(const std::string alias, const std::string encryptedData) in DecryptKey() argument
192 struct HksBlob cipherText = { encryptedData.length(), (uint8_t *)encryptedData.c_str() }; in DecryptKey()
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/src/smp/
H A Dsmp_privacy.c58 … pEncCmdData->address + SMP_RPA_HIGH_BIT_LEN, returnParam->encryptedData, SMP_RPA_HIGH_BIT_LEN); in SMP_GenerateRpaStep1()
80 …if (memcmp(returnParam->encryptedData, pEncCmdData->address, BT_ADDRESS_SIZE - SMP_RPA_HIGH_BIT_LE… in SMP_ResolveRpaStep1()
H A Dsmp_send.c624 uint8_t encryptedData[SMP_ENCRYPT_PLAINTEXTDATA_LEN] = {0x00}; in SMP_Aes128Software() local
630 encryptedData); in SMP_Aes128Software()
638 …(void)memcpy_s(ctx->encryptedData, sizeof(ctx->encryptedData), encryptedData, sizeof(ctx->encrypte… in SMP_Aes128Software()
H A Dsmp_oob.c127 …(void)memcpy_s(cryptAesCmacStep4Param.X, CRYPT_AESCMAC_X_LEN, returnParam->encryptedData, CRYPT_AE… in SMP_GenerateScOobDataStep3()
161 …(void)memcpy_s(g_smpScOobMng.confirm, SMP_CONFIRM_DATA_LEN, returnParam->encryptedData, SMP_CONFIR… in SMP_GenerateScOobDataStep4()
H A Dsmp_legacy.c119 …SMP_MemoryReverseCopy(SMP_GetPairMng()->local.confirm, returnParam->encryptedData, SMP_CONFIRM_DAT… in SMP_LegacyPairMasterStep5()
210 SMP_MemoryReverseCopy(confirmTemp, returnParam->encryptedData, SMP_CONFIRM_DATA_LEN); in SMP_LegacyPairMasterStep9()
246 (void)memcpy_s(SMP_GetPairMng()->STK, SMP_STK_LEN, returnParam->encryptedData, SMP_STK_LEN); in SMP_LegacyPairMasterStep10()
515 …SMP_MemoryReverseCopy(SMP_GetPairMng()->local.confirm, returnParam->encryptedData, SMP_CONFIRM_DAT… in SMP_LegacyPairSlaveStep7()
584 SMP_MemoryReverseCopy(confirm, returnParam->encryptedData, SMP_CONFIRM_DATA_LEN); in SMP_LegacyPairSlaveStep10()
622 (void)memcpy_s(SMP_GetPairMng()->STK, SMP_STK_LEN, returnParam->encryptedData, SMP_STK_LEN); in SMP_LegacyPairSlaveStep11()
H A Dsmp_sc_accepter.c212 …SMP_MemoryReverseCopy(SMP_GetPairMng()->local.confirm, encData->encRetParam->encryptedData, SMP_CO… in SMP_ScPairJustworkOrNumericSlaveStep8()
345 uint32_t numeric = *((uint32_t *)encData->encRetParam->encryptedData); in SMP_ScPairJustworkOrNumericSlaveStep12()
600 …SMP_MemoryReverseCopy(SMP_GetPairMng()->local.confirm, encData->encRetParam->encryptedData, SMP_CO… in SMP_ScPairPasskeyEntrySlaveStep11()
700 SMP_MemoryReverseCopy(confirmTmp, encData->encRetParam->encryptedData, SMP_CONFIRM_DATA_LEN); in SMP_ScPairPasskeyEntrySlaveStep15()
885 …(void)memcpy_s(tmpConfirm, SMP_CONFIRM_DATA_LEN, encData->encRetParam->encryptedData, SMP_CONFIRM_… in SMP_ScPairOobSlaveStep12()
1046 …(void)memcpy_s(encryptParam.key, sizeof(encryptParam.key), returnParam->encryptedData, sizeof(encr… in SMP_ScPairCommonSlaveStep4()
1120 …SMP_MemoryReverseCopy(SMP_GetPairMng()->macKey, encData->encRetParam->encryptedData, SMP_MACKEY_LE… in SMP_ScPairCommonSlaveStep7()
1197 (void)memcpy_s(tmpLTK, SMP_LTK_LEN, returnParam->encryptedData, SMP_LTK_LEN); in SMP_ScPairCommonSlaveStep10()
1273 …(void)memcpy_s(dhkeyCheckTmp, SMP_DHKEY_CHECK_LEN, encData->encRetParam->encryptedData, SMP_DHKEY_… in SMP_ScPairCommonSlaveStep13()
1353 …SMP_GetPairMng()->local.DHKeyCheck, SMP_DHKEY_CHECK_LEN, returnParam->encryptedData, SMP_DHKEY_CHE… in SMP_ScPairCommonSlaveStep16()
H A Dsmp_sc_initiator.c241 SMP_MemoryReverseCopy(confirmTemp, encData->encRetParam->encryptedData, SMP_CONFIRM_DATA_LEN); in SMP_ScPairJustworkOrNumericMasterStep10()
334 numeric = *((uint32_t *)encData->encRetParam->encryptedData); in SMP_ScPairJustworkOrNumericMasterStep13()
546 …SMP_MemoryReverseCopy(SMP_GetPairMng()->local.confirm, encData->encRetParam->encryptedData, SMP_CO… in SMP_ScPairPasskeyEntryMasterStep10()
672 SMP_MemoryReverseCopy(confirmTemp, encData->encRetParam->encryptedData, SMP_CONFIRM_DATA_LEN); in SMP_ScPairPasskeyEntryMasterStep15()
839 …(void)memcpy_s(confirmTemp, SMP_CONFIRM_DATA_LEN, encData->encRetParam->encryptedData, SMP_CONFIRM… in SMP_ScPairOobMasterStep12()
979 …encryptParam.key, sizeof(encryptParam.key), encData->encRetParam->encryptedData, sizeof(encryptPar… in SMP_ScPairCommonMasterStep3()
1051 …SMP_MemoryReverseCopy(SMP_GetPairMng()->macKey, encData->encRetParam->encryptedData, SMP_MACKEY_LE… in SMP_ScPairCommonMasterStep6()
1126 (void)memcpy_s(tempLTK, SMP_LTK_LEN, encData->encRetParam->encryptedData, SMP_LTK_LEN); in SMP_ScPairCommonMasterStep9()
1201 encData->encRetParam->encryptedData, in SMP_ScPairCommonMasterStep12()
1299 …(void)memcpy_s(dhkeyCheckTemp, SMP_DHKEY_CHECK_LEN, encData->encRetParam->encryptedData, SMP_DHKEY… in SMP_ScPairCommonMasterStep16()
H A Dsmp.c815 uint8_t encryptedData[SMP_ENCRYPT_PLAINTEXTDATA_LEN] = {0x00}; in SMP_ResolveRPA() local
816 ret = SMP_Aes128(irk, SMP_IRK_LEN, message, sizeof(message), encryptedData); in SMP_ResolveRPA()
822 if (memcmp(encryptedData, addr, SMP_RPA_HIGH_BIT_LEN) != 0x00) { in SMP_ResolveRPA()
1659 …SMP_MemoryReverseCopy(cryptAesCmacStep1parm.input, returnParam->encryptedData, sizeof(cryptAesCmac… in SMP_GenerateSignatureStep1()
1709 returnParam->encryptedData, in SMP_GenerateSignatureStep2()
1739 &returnParam->encryptedData[SMP_SIGNATURE_LEN - SMP_SIGNCOUNTER_LEN], in SMP_GenerateSignatureStep3()
/ohos5.0/foundation/communication/wifi/wifi/test/fuzztest/wifi_sta/wifidevicestub_fuzzer/
H A Dwifidevicestub_fuzzer.cpp793 config.wifiEapConfig.encryptedData = std::string(reinterpret_cast<const char*>(data), size); in WifiDeviceServiceImplTest()
821 config.wifiEapConfig.encryptedData = std::string(reinterpret_cast<const char*>(data), size); in CheckConfigEapTest()
845 config.wifiEapConfig.encryptedData = std::string(reinterpret_cast<const char*>(data), size); in CheckConfigWapiTest()
867 config.wifiEapConfig.encryptedData = std::string(reinterpret_cast<const char*>(data), size); in CheckConfigPwdTest()
883 config.wifiEapConfig.encryptedData = std::string(reinterpret_cast<const char*>(data), size); in InitWifiBrokerProcessInfoTest()
906 config.wifiEapConfig.encryptedData = std::string(reinterpret_cast<const char*>(data), size); in RemoveCandidateConfigFuzzTest()
932 config.wifiEapConfig.encryptedData = std::string(reinterpret_cast<const char*>(data), size); in AddDeviceConfigTest()
957 config.wifiEapConfig.encryptedData = std::string(reinterpret_cast<const char*>(data), size); in ConnectToDeviceTest()
1007 config.wifiEapConfig.encryptedData = std::string(reinterpret_cast<const char*>(data), size); in HilinkGetMacAddressTest()
1024 config.wifiEapConfig.encryptedData = std::string(reinterpret_cast<const char*>(data), size); in EnableHiLinkHandshakeTest()
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/include/
H A Dark_keystore_adapter.h32 … virtual ArkWebString DecryptKey(const ArkWebString& alis, const ArkWebString& encryptedData) = 0;
/ohos5.0/base/web/webview/ohos_interface/include/ohos_adapter/
H A Dkeystore_adapter.h31 virtual std::string DecryptKey(const std::string alis, const std::string encryptedData) = 0;
/ohos5.0/foundation/communication/dsoftbus/core/adapter/huks/include/
H A Dsoftbus_rsa_encrypt.h37 …Encrypt(const uint8_t *srcData, uint32_t srcDataLen, PublicKey *publicKey, uint8_t **encryptedData,
/ohos5.0/base/web/webview/ohos_adapter/keystore_adapter/include/
H A Dkeystore_adapter_impl.h33 std::string DecryptKey(const std::string alias, const std::string encryptedData) override;
/ohos5.0/foundation/communication/wifi/wifi/interfaces/inner_api/
H A Dwifi_msg.h421 std::string encryptedData; /* EAP mode password encryptedData */ variable
627 std::string encryptedData; member
/ohos5.0/foundation/communication/wifi/wifi/test/fuzztest/wifi_sta/wifistaserver_fuzzer/
H A Dwifistaserver_fuzzer.cpp137 config.wifiEapConfig.encryptedData = std::string(reinterpret_cast<const char*>(data), size); in StaServerFuzzTest()
408 config.wifiEapConfig.encryptedData = std::string(reinterpret_cast<const char*>(data), size); in UpdateEapConfigTest()
427 config.wifiEapConfig.encryptedData = std::string(reinterpret_cast<const char*>(data), size); in AddDeviceConfigTest()

12