/foundation/communication/bluetooth_service/services/bluetooth/stack/src/smp/ |
H A D | smp_sc_initiator.c | 161 HciLeEncryptParam encryptParam; in SMP_ScPairJustworkOrNumericMasterStep7() local 165 SMP_MemoryReverseCopy(encryptParam.key, SMP_GetPairMng()->peer.random, SMP_RANDOM_DATA_LEN); in SMP_ScPairJustworkOrNumericMasterStep7() 166 (void)memcpy_s(encryptParam.plaintextData, sizeof(encryptParam.plaintextData), cryptAesCmacZ, CRYPT_AESCMAC_Z_LEN); in SMP_ScPairJustworkOrNumericMasterStep7() 169 &encryptParam, SMP_SC_PAIR_JUSTWORKORNUMERIC_MASTER_STEP_8, NULL, SMP_USING_HW_AES128_PAIR); in SMP_ScPairJustworkOrNumericMasterStep7() 174 (void)memset_s(encryptParam.key, SMP_ENCRYPT_KEY_LEN, 0x00, SMP_ENCRYPT_KEY_LEN); in SMP_ScPairJustworkOrNumericMasterStep7() 235 HciLeEncryptParam encryptParam; in SMP_ScPairJustworkOrNumericMasterStep10() local 249 SMP_MemoryReverseCopy(encryptParam.key, SALT, sizeof(encryptParam.key)); in SMP_ScPairJustworkOrNumericMasterStep10() 251 encryptParam in SMP_ScPairJustworkOrNumericMasterStep10() 463 HciLeEncryptParam encryptParam; SMP_ScPairPasskeyEntryMasterStep7() local 591 HciLeEncryptParam encryptParam; SMP_ScPairPasskeyEntryMasterStep12() local 666 HciLeEncryptParam encryptParam; SMP_ScPairPasskeyEntryMasterStep15() local 748 HciLeEncryptParam encryptParam; SMP_ScPairOobMasterStep9() local 904 HciLeEncryptParam encryptParam; SMP_ScPairOobMasterStep15() local 971 HciLeEncryptParam encryptParam; SMP_ScPairCommonMasterStep3() local 1045 HciLeEncryptParam encryptParam; SMP_ScPairCommonMasterStep6() local 1119 HciLeEncryptParam encryptParam; SMP_ScPairCommonMasterStep9() local 1222 HciLeEncryptParam encryptParam; SMP_ScPairCommonMasterStep13() local [all...] |
H A D | smp_sc_accepter.c | 128 HciLeEncryptParam encryptParam; in SMP_ScPairJustworkOrNumericSlaveStep5() local 138 SMP_MemoryReverseCopy(encryptParam.key, SMP_GetPairMng()->local.random, SMP_RANDOM_DATA_LEN); in SMP_ScPairJustworkOrNumericSlaveStep5() 139 (void)memcpy_s(encryptParam.plaintextData, sizeof(encryptParam.plaintextData), cryptAesCmacZ, CRYPT_AESCMAC_Z_LEN); in SMP_ScPairJustworkOrNumericSlaveStep5() 141 SMP_SendLeEncryptCmd(&encryptParam, SMP_SC_PAIR_JUSTWORKORNUMERIC_SLAVE_STEP_6, NULL, SMP_USING_HW_AES128_PAIR); in SMP_ScPairJustworkOrNumericSlaveStep5() 146 (void)memset_s(encryptParam.key, SMP_ENCRYPT_KEY_LEN, 0x00, SMP_ENCRYPT_KEY_LEN); in SMP_ScPairJustworkOrNumericSlaveStep5() 233 HciLeEncryptParam encryptParam; in SMP_ScPairJustworkOrNumericSlaveStep9() local 253 SMP_MemoryReverseCopy(encryptParam.key, SMP_GetPairMng()->peer.random, sizeof(encryptParam.key)); in SMP_ScPairJustworkOrNumericSlaveStep9() 256 encryptParam in SMP_ScPairJustworkOrNumericSlaveStep9() 516 HciLeEncryptParam encryptParam; SMP_ScPairPasskeyEntrySlaveStep8() local 621 HciLeEncryptParam encryptParam; SMP_ScPairPasskeyEntrySlaveStep12() local 793 HciLeEncryptParam encryptParam; SMP_ScPairOobSlaveStep9() local 972 HciLeEncryptParam encryptParam; SMP_ScPairCommonSlaveStep1() local 1040 HciLeEncryptParam encryptParam; SMP_ScPairCommonSlaveStep4() local 1111 HciLeEncryptParam encryptParam; SMP_ScPairCommonSlaveStep7() local 1190 HciLeEncryptParam encryptParam; SMP_ScPairCommonSlaveStep10() local 1266 HciLeEncryptParam encryptParam; SMP_ScPairCommonSlaveStep13() local [all...] |
H A D | smp_oob.c | 42 HciLeEncryptParam encryptParam; in SMP_GenerateScOobDataStep1() local 62 (void)memcpy_s(encryptParam.key, sizeof(encryptParam.key), g_smpScOobMng.random, SMP_RANDOM_DATA_LEN); in SMP_GenerateScOobDataStep1() 63 (void)memcpy_s(encryptParam.plaintextData, sizeof(encryptParam.plaintextData), cryptAesCmacZ, CRYPT_AESCMAC_Z_LEN); in SMP_GenerateScOobDataStep1() 65 int ret = SMP_SendLeEncryptCmd(&encryptParam, SMP_GENERATE_SC_OOB_DATA_STEP_2, NULL, SMP_USING_HW_AES128_PAIR); in SMP_GenerateScOobDataStep1() 69 (void)memset_s(encryptParam.key, SMP_ENCRYPT_KEY_LEN, 0x00, SMP_ENCRYPT_KEY_LEN); in SMP_GenerateScOobDataStep1()
|
H A D | smp_tool.c | 274 HciLeEncryptParam encryptParam; in SMP_CryptographicC1Step1() local 294 SMP_MemoryReverseCopy(encryptParam.key, SMP_GetPairMng()->TK, SMP_TK_LEN); in SMP_CryptographicC1Step1() 295 SMP_MemoryReverseCopy(encryptParam.plaintextData, param->output, sizeof(param->output)); in SMP_CryptographicC1Step1() 296 int ret = SMP_SendLeEncryptCmd(&encryptParam, step, NULL, SMP_USING_HW_AES128_PAIR); in SMP_CryptographicC1Step1() 320 HciLeEncryptParam encryptParam; in SMP_CryptographicC1Step2() local 338 SMP_MemoryReverseCopy(encryptParam.key, SMP_GetPairMng()->TK, SMP_TK_LEN); in SMP_CryptographicC1Step2() 339 SMP_MemoryReverseCopy(encryptParam.plaintextData, param->output, sizeof(param->output)); in SMP_CryptographicC1Step2() 340 int ret = SMP_SendLeEncryptCmd(&encryptParam, step, NULL, SMP_USING_HW_AES128_PAIR); in SMP_CryptographicC1Step2() 592 HciLeEncryptParam encryptParam; in SMP_CryptographicAesCmacStep3() local 616 (void)memcpy_s(encryptParam in SMP_CryptographicAesCmacStep3() 653 HciLeEncryptParam encryptParam; SMP_CryptographicAesCmacStep4() local [all...] |
H A D | smp.c | 784 HciLeEncryptParam encryptParam; in SMP_GenSignTask() local 796 (void)memcpy_s(encryptParam.key, SMP_CSRK_LEN, param->csrk, SMP_CSRK_LEN); in SMP_GenSignTask() 797 (void)memcpy_s(encryptParam.plaintextData, sizeof(encryptParam.plaintextData), cryptAesCmacZ, CRYPT_AESCMAC_Z_LEN); in SMP_GenSignTask() 799 int ret = SMP_SendLeEncryptCmd(&encryptParam, SMP_GENERATE_SIGNATURE_STEP_1, encCmd, SMP_USING_HW_AES128_SIGN); in SMP_GenSignTask() 800 (void)memset_s(encryptParam.key, SMP_ENCRYPT_KEY_LEN, 0x00, SMP_ENCRYPT_KEY_LEN); in SMP_GenSignTask() 859 HciLeEncryptParam encryptParam; in SMP_AsyncResoRpaTask() local 866 (void)memcpy_s(encryptParam.key, sizeof(encryptParam.key), param->irk, sizeof(encryptParam in SMP_AsyncResoRpaTask() 906 HciLeEncryptParam encryptParam; SMP_GenRpaTask() local 1093 HciLeEncryptParam encryptParam; SMP_AuthReqReplyStepTransMaster() local 1195 HciLeEncryptParam encryptParam; SMP_AuthReqReplyNumericSlave() local [all...] |
H A D | smp_legacy.c | 202 HciLeEncryptParam encryptParam; in SMP_LegacyPairMasterStep9() local 222 SMP_MemoryReverseCopy(encryptParam.key, SMP_GetPairMng()->TK, SMP_TK_LEN); in SMP_LegacyPairMasterStep9() 223 SMP_MemoryReverseCopy(encryptParam.plaintextData, cryptS1Param.output, sizeof(cryptS1Param.output)); in SMP_LegacyPairMasterStep9() 225 ret = SMP_SendLeEncryptCmd(&encryptParam, SMP_LEGACY_PAIR_MASTER_STEP_10, NULL, SMP_USING_HW_AES128_PAIR); in SMP_LegacyPairMasterStep9() 576 HciLeEncryptParam encryptParam; in SMP_LegacyPairSlaveStep10() local 596 SMP_MemoryReverseCopy(encryptParam.key, SMP_GetPairMng()->TK, SMP_TK_LEN); in SMP_LegacyPairSlaveStep10() 597 SMP_MemoryReverseCopy(encryptParam.plaintextData, cryptS1Param.output, sizeof(cryptS1Param.output)); in SMP_LegacyPairSlaveStep10() 599 ret = SMP_SendLeEncryptCmd(&encryptParam, SMP_LEGACY_PAIR_SLAVE_STEP_11, NULL, SMP_USING_HW_AES128_PAIR); in SMP_LegacyPairSlaveStep10()
|
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/ |
H A D | huks_master.cpp | 537 HksParam encryptParam[] = { in GenHuksOptionParamEx() local 553 ret = HksAddParams(paramSet, encryptParam, HKS_ARRAY_SIZE(encryptParam)); in GenHuksOptionParamEx() 591 HksParam encryptParam[] = { in GenHuksOptionParam() local 607 ret = HksAddParams(paramSet, encryptParam, HKS_ARRAY_SIZE(encryptParam)); in GenHuksOptionParam()
|
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/utils/ |
H A D | wifi_encryption_util.cpp | 326 struct HksParam encryptParam[] = { in EncryptParamSet() local 333 HksAddParams(*encryParamSet, encryptParam, sizeof(encryptParam) / sizeof(HksParam)); in EncryptParamSet()
|