/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/ |
H A D | hap_parser_test.cpp | 69 std::vector<KeyParam *> keyParams; in HWTEST_F() local 74 keyParams.push_back(kp); in HWTEST_F() 79 keyParams.push_back(kp); in HWTEST_F() 84 keyParams.push_back(kp); in HWTEST_F() 89 keyParams.push_back(kp); in HWTEST_F() 94 keyParams.push_back(kp); in HWTEST_F() 95 auto config = HapParser::CreateResConfigFromKeyParams(keyParams); in HWTEST_F() 107 for (auto kp = keyParams.begin(); kp != keyParams.end(); kp++) { in HWTEST_F() 152 std::vector<KeyParam *> keyParams; in HWTEST_F() local [all...] |
/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/ |
H A D | huks_adapter.c | 61 static int32_t CheckKeyParams(const KeyParams *keyParams) in CheckKeyParams() argument 63 CHECK_PTR_RETURN_HAL_ERROR_CODE(keyParams, "keyParams"); in CheckKeyParams() 64 CHECK_PTR_RETURN_HAL_ERROR_CODE(keyParams->keyBuff.key, "keyParams->keyBuff.key"); in CheckKeyParams() 65 CHECK_LEN_ZERO_RETURN_ERROR_CODE(keyParams->keyBuff.keyLen, "keyParams->keyBuff.keyLen"); in CheckKeyParams() 422 static int32_t CheckHmacParams(const KeyParams *keyParams, const Uint8Buff *message, const Uint8Buff *outHmac) in CheckHmacParams() argument 424 int32_t res = CheckKeyParams(keyParams); in CheckHmacParams() 438 static int32_t ComputeHmac(const KeyParams *keyParams, cons argument 479 ConstructDeriveParamSet(const KeyParams *keyParams, const Uint8Buff *message, struct HksParamSet **deriveParamSet) ConstructDeriveParamSet() argument 509 ConstructFinishParamSet(const KeyParams *keyParams, struct HksParamSet **finishParamSet) ConstructFinishParamSet() argument 533 CheckHmacWithThreeStageParams(const KeyParams *keyParams, const Uint8Buff *message, const Uint8Buff *outHmac) CheckHmacWithThreeStageParams() argument 550 ComputeHmacWithThreeStageInner(const KeyParams *keyParams, const Uint8Buff *message, Uint8Buff *outHmac) ComputeHmacWithThreeStageInner() argument 594 ComputeHmacWithThreeStage(const KeyParams *keyParams, const Uint8Buff *message, Uint8Buff *outHmac) ComputeHmacWithThreeStage() argument 619 ConstructHkdfParamSet(bool isDeStorage, const KeyParams *keyParams, const Uint8Buff *salt, const Uint8Buff *keyInfo, struct HksParamSet **paramSet) ConstructHkdfParamSet() argument 656 CheckHkdfParams(const KeyParams *keyParams, const Uint8Buff *salt, const Uint8Buff *outHkdf) CheckHkdfParams() argument 667 ComputeHkdf(const KeyParams *keyParams, const Uint8Buff *salt, const Uint8Buff *keyInfo, Uint8Buff *outHkdf) ComputeHkdf() argument 714 ConstructPseudonymParamSet(const KeyParams *keyParams, const Uint8Buff *pskKeyAlias, const struct HksBlob *extInfoBlob, uint32_t outLen, struct HksParamSet **paramSet) ConstructPseudonymParamSet() argument 755 CheckPskParams(const KeyParams *keyParams, const Uint8Buff *pskKeyAlias, const Uint8Buff *outPsk) CheckPskParams() argument 766 ComputePseudonymPskInner(const KeyParams *keyParams, const Uint8Buff *pskKeyAlias, const Uint8Buff *extInfo, Uint8Buff *outPsk) ComputePseudonymPskInner() argument 795 ComputePseudonymPsk(const KeyParams *keyParams, const Uint8Buff *pskKeyAlias, const Uint8Buff *extInfo, Uint8Buff *outPsk) ComputePseudonymPsk() argument 886 ConstructGetKeyExtInfoParamSet(const KeyParams *keyParams, struct HksParamSet **paramSet) ConstructGetKeyExtInfoParamSet() argument 907 GetKeyExtInfoInner(const KeyParams *keyParams, Uint8Buff *outExtInfo) GetKeyExtInfoInner() argument 933 GetKeyExtInfo(const KeyParams *keyParams, Uint8Buff *outExtInfo) GetKeyExtInfo() argument 962 CheckAesGcmEncryptParam(const KeyParams *keyParams, const Uint8Buff *plain, const GcmParam *encryptInfo, Uint8Buff *outCipher) CheckAesGcmEncryptParam() argument 986 ConstructAesGcmEncryptParamSet(const GcmParam *encryptInfo, const KeyParams *keyParams, struct HksParamSet **paramSet) ConstructAesGcmEncryptParamSet() argument 1021 AesGcmEncrypt(const KeyParams *keyParams, const Uint8Buff *plain, const GcmParam *encryptInfo, Uint8Buff *outCipher) AesGcmEncrypt() argument 1050 CheckAesGcmDecryptParam(const KeyParams *keyParams, const Uint8Buff *cipher, const GcmParam *decryptInfo, Uint8Buff *outPlain) CheckAesGcmDecryptParam() argument 1074 ConstructAesGcmDecryptParamSet(const GcmParam *decryptInfo, const KeyParams *keyParams, struct HksParamSet **paramSet) ConstructAesGcmDecryptParamSet() argument 1109 AesGcmDecrypt(const KeyParams *keyParams, const Uint8Buff *cipher, const GcmParam *decryptInfo, Uint8Buff *outPlain) AesGcmDecrypt() argument 1159 ConstructInitParamsP256(struct HksParamSet **initParamSet, const KeyParams *keyParams) ConstructInitParamsP256() argument 1183 ConstructFinishParamsP256(struct HksParamSet **finishParamSet, const KeyParams *keyParams, const struct HksBlob *sharedKeyAliasBlob) ConstructFinishParamsP256() argument 1342 KeyParams keyParams = { AgreeSharedSecretWithStorage() local 1398 ConstructAgreeParamSet(const KeyParams *keyParams, Algorithm algo, const Uint8Buff *sharedKey, struct HksParamSet **paramSet) ConstructAgreeParamSet() argument 1536 CheckGenerateKeyPairParams(const KeyParams *keyParams, const ExtraInfo *exInfo, uint32_t keyLen) CheckGenerateKeyPairParams() argument 1549 GenerateKeyPairWithStorage(const KeyParams *keyParams, uint32_t keyLen, Algorithm algo, KeyPurpose purpose, const ExtraInfo *exInfo) GenerateKeyPairWithStorage() argument 1717 CheckExportParams(const KeyParams *keyParams, const Uint8Buff *outPubKey) CheckExportParams() argument 1729 ExportPublicKey(const KeyParams *keyParams, Uint8Buff *outPubKey) ExportPublicKey() argument 1800 CheckSignParams(const KeyParams *keyParams, const Uint8Buff *message, const Uint8Buff *outSignature) CheckSignParams() argument 1812 Sign(const KeyParams *keyParams, const Uint8Buff *message, Algorithm algo, Uint8Buff *outSignature) Sign() argument 1867 ConstructVerifyParams(struct HksParamSet **paramSet, const KeyParams *keyParams, Algorithm algo) ConstructVerifyParams() argument 1893 CheckVerifyParams(const KeyParams *keyParams, const Uint8Buff *message, const Uint8Buff *signature) CheckVerifyParams() argument 1905 Verify(const KeyParams *keyParams, const Uint8Buff *message, Algorithm algo, const Uint8Buff *signature) Verify() argument 1980 CheckImportPubKeyParams(const KeyParams *keyParams, const Uint8Buff *pubKey, const ExtraInfo *exInfo) CheckImportPubKeyParams() argument 1997 ImportPublicKey(const KeyParams *keyParams, const Uint8Buff *pubKey, Algorithm algo, const ExtraInfo *exInfo) ImportPublicKey() argument 2146 InitImportParam(const KeyParams *keyParams, const ExtraInfo *exInfo, struct HksParam **importParam) InitImportParam() argument 2163 ConstructImportSymmetricKeyParam(struct HksParamSet **paramSet, const KeyParams *keyParams, uint32_t keyLen, KeyPurpose purpose, const ExtraInfo *exInfo) ConstructImportSymmetricKeyParam() argument 2206 CheckImportSymmetricKeyParams(const KeyParams *keyParams, const Uint8Buff *authToken) CheckImportSymmetricKeyParams() argument 2217 ImportSymmetricKey(const KeyParams *keyParams, const Uint8Buff *authToken, KeyPurpose purpose, const ExtraInfo *exInfo) ImportSymmetricKey() argument [all...] |
/base/security/device_auth/deps_adapter/key_management_adapter/interfaces/ |
H A D | alg_defs.h | 86 typedef int32_t (*ComputeHmacFunc)(const KeyParams *keyParams, const Uint8Buff *message, Uint8Buff *outHmac); 88 typedef int32_t (*ComputeHmacWithThreeStageFunc)(const KeyParams *keyParams, const Uint8Buff *message, 91 typedef int32_t (*ComputeHkdfFunc)(const KeyParams *keyParams, const Uint8Buff *salt, const Uint8Buff *keyInfo, 94 typedef int32_t (*ComputePseudonymPskFunc)(const KeyParams *keyParams, const Uint8Buff *pskKeyAlias, 97 typedef int32_t (*GetKeyExtInfoFunc)(const KeyParams *keyParams, Uint8Buff *outExtInfo); 99 typedef int32_t (*ImportSymmetricKeyFunc)(const KeyParams *keyParams, const Uint8Buff *authToken, KeyPurpose purpose, 105 typedef int32_t (*AesGcmEncryptFunc)(const KeyParams *keyParams, const Uint8Buff *plain, const GcmParam *encryptInfo, 107 typedef int32_t (*AesGcmDecryptFunc)(const KeyParams *keyParams, const Uint8Buff *cipher, const GcmParam *decryptInfo, 124 typedef int32_t (*GenerateKeyPairWithStorageFunc)(const KeyParams *keyParams, uint32_t keyLen, Algorithm algo, 129 typedef int32_t (*ExportPublicKeyFunc)(const KeyParams *keyParams, Uint8Buf [all...] |
/base/security/huks/test/unittest/huks_lite_test/liteos_m_adapter/ |
H A D | hks_mac_test.c | 140 g_testMacParams[index].keyParams.blobExist, in BaseTestMac() 141 g_testMacParams[index].keyParams.blobSize, in BaseTestMac() 142 g_testMacParams[index].keyParams.blobDataExist, in BaseTestMac() 143 g_testMacParams[index].keyParams.blobDataSize); in BaseTestMac() 150 g_testMacParams[index].keyParams.blobExist, in BaseTestMac() 151 g_testMacParams[index].keyParams.blobSize, in BaseTestMac() 152 g_testMacParams[index].keyParams.blobDataExist, in BaseTestMac() 153 g_testMacParams[index].keyParams.blobDataSize); in BaseTestMac()
|
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/ |
H A D | hks_mac_test.cpp | 140 g_testMacParams[index].keyParams.blobExist, in BaseTestMac() 141 g_testMacParams[index].keyParams.blobSize, in BaseTestMac() 142 g_testMacParams[index].keyParams.blobDataExist, in BaseTestMac() 143 g_testMacParams[index].keyParams.blobDataSize); in BaseTestMac() 150 g_testMacParams[index].keyParams.blobExist, in BaseTestMac() 151 g_testMacParams[index].keyParams.blobSize, in BaseTestMac() 152 g_testMacParams[index].keyParams.blobDataExist, in BaseTestMac() 153 g_testMacParams[index].keyParams.blobDataSize); in BaseTestMac()
|
/base/security/huks/test/unittest/huks_lite_test/liteos_a_adapter/ |
H A D | hks_mac_test.cpp | 139 g_testMacParams[index].keyParams.blobExist, in BaseTestMac() 140 g_testMacParams[index].keyParams.blobSize, in BaseTestMac() 141 g_testMacParams[index].keyParams.blobDataExist, in BaseTestMac() 142 g_testMacParams[index].keyParams.blobDataSize); in BaseTestMac() 149 g_testMacParams[index].keyParams.blobExist, in BaseTestMac() 150 g_testMacParams[index].keyParams.blobSize, in BaseTestMac() 151 g_testMacParams[index].keyParams.blobDataExist, in BaseTestMac() 152 g_testMacParams[index].keyParams.blobDataSize); in BaseTestMac()
|
/base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
H A D | hap_parser_test.cpp | 69 std::vector<std::shared_ptr<KeyParam>> keyParams; in HWTEST_F() local 74 keyParams.push_back(kp); in HWTEST_F() 79 keyParams.push_back(kp1); in HWTEST_F() 84 keyParams.push_back(kp2); in HWTEST_F() 89 keyParams.push_back(kp3); in HWTEST_F() 94 keyParams.push_back(kp4); in HWTEST_F() 99 keyParams.push_back(kp5); in HWTEST_F() 100 auto config = HapParser::CreateResConfigFromKeyParams(keyParams); in HWTEST_F() 112 keyParams.clear(); in HWTEST_F() 155 std::vector<std::shared_ptr<KeyParam>> keyParams; in HWTEST_F() local [all...] |
/base/global/resource_management_lite/frameworks/resmgr_lite/include/ |
H A D | hap_parser.h | 67 * @param keyParams the keyParams contain type and value 68 * @return the resource config related to the keyParams 70 static ResConfigImpl *CreateResConfigFromKeyParams(const std::vector<KeyParam *> &keyParams); 74 * @param keyParams the keyParams contain type and value 77 static std::string ToFolderPath(const std::vector<KeyParam *> &keyParams);
|
H A D | global_utils.h | 75 KeyParam *keyParams;
member
|
H A D | hap_resource.h | 97 ValueUnderQualifierDir(const std::vector<KeyParam *> &keyParams, IdItem *idItem,
|
/base/security/device_auth/services/protocol/src/iso_protocol/ |
H A D | iso_protocol_common.c | 129 KeyParams keyParams = { { pskBuf.val, pskBuf.length, false }, false, params->osAccountId }; in IsoCalSelfToken() local 130 res = params->loader->computeHmac(&keyParams, &messageBuf, outHmac); in IsoCalSelfToken() 176 KeyParams keyParams = { { pskBuf.val, pskBuf.length, false }, false, params->osAccountId }; in IsoCalPeerToken() local 177 res = params->loader->computeHmac(&keyParams, &messageBufSelf, selfToken); in IsoCalPeerToken() 230 KeyParams keyParams = { { pskBuf->val, pskBuf->length, false }, false, params->osAccountId }; in IsoGenSessionKey() local 231 res = params->loader->computeHkdf(&keyParams, &hkdfSaltBuf, &keyInfoBuf, ¶ms->sessionKey); in IsoGenSessionKey() 303 KeyParams keyParams = { { pskBuf.val, pskBuf.length, false }, false, params->osAccountId }; in IsoClientGenSessionKey() local 304 int res = params->loader->computeHmac(&keyParams, &hmacMessage, &outHmacBuf); in IsoClientGenSessionKey() 386 KeyParams keyParams = { { pskBuf.val, pskBuf.length, false }, false, params->osAccountId }; in IsoServerGenSessionKeyAndCalToken() local 387 res = params->loader->computeHmac(&keyParams, in IsoServerGenSessionKeyAndCalToken() [all...] |
/base/security/device_auth/services/mk_agree/src/ |
H A D | key_manager.c | 183 KeyParams keyParams = { { keyAliasBuff.val, keyAliasBuff.length, true }, false, osAccountId }; in GenerateDeviceKeyPair() local 184 res = GetLoaderInstance()->generateKeyPairWithStorage(&keyParams, PAKE_X25519_KEY_PAIR_LEN, X25519, in GenerateDeviceKeyPair() 283 KeyParams keyParams = { { pskAliasBuff.val, pskAliasBuff.length, true }, false, osAccountId }; in GeneratePseudonymPsk() local 284 res = GetLoaderInstance()->importSymmetricKey(&keyParams, &pskBuff, KEY_PURPOSE_MAC, NULL); in GeneratePseudonymPsk() 336 KeyParams keyParams = { { pskAliasBuff.val, pskAliasBuff.length, true }, false, osAccountId }; in GenerateAndSavePseudonymId() local 337 res = GetLoaderInstance()->computeHmac(&keyParams, saltBuff, &pseudonymIdBuff); in GenerateAndSavePseudonymId() 384 KeyParams keyParams = { { keyAliasBuff.val, keyAliasBuff.length, true }, false, osAccountId }; in GetDevicePubKey() local 385 res = GetLoaderInstance()->exportPublicKey(&keyParams, devicePk); in GetDevicePubKey()
|
/base/security/device_auth/services/protocol/src/pake_protocol/pake_v1_protocol/ |
H A D | pake_v1_protocol_common.c | 198 KeyParams keyParams = { { params->psk.val, params->psk.length, false }, false, params->osAccountId }; in GeneratePakeParams() local 199 res = params->loader->computeHkdf(&keyParams, &(params->salt), &keyInfo, &secret); in GeneratePakeParams() 241 KeyParams keyParams = { in DeriveKeyFromSharedSecret() local 246 res = params->loader->computeHkdf(&keyParams, &(params->salt), &keyInfo, &unionKey); in DeriveKeyFromSharedSecret() 322 KeyParams keyParams = { { params->hmacKey.val, params->hmacKey.length, false }, false, params->osAccountId }; in GenerateProof() local 323 res = params->loader->computeHmac(&keyParams, &challenge, &(params->kcfData)); in GenerateProof() 355 KeyParams keyParams = { { params->hmacKey.val, params->hmacKey.length, false }, false, params->osAccountId }; in VerifyProof() local 356 res = params->loader->computeHmac(&keyParams, &challenge, &verifyProof); in VerifyProof()
|
/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/ |
H A D | hap_parser.cpp | 290 bool IsLocaleMatch(const ResConfigImpl *defaultConfig, const std::vector<KeyParam *> &keyParams) in IsLocaleMatch() argument 293 ResConfigImpl *config = HapParser::CreateResConfigFromKeyParams(keyParams); in IsLocaleMatch() 298 HILOG_DEBUG("mismatch, do not parse %s", HapParser::ToFolderPath(keyParams).c_str()); in IsLocaleMatch() 396 ResConfigImpl *HapParser::CreateResConfigFromKeyParams(const std::vector<KeyParam *> &keyParams) in CreateResConfigFromKeyParams() argument 403 size_t len = keyParams.size(); in CreateResConfigFromKeyParams() 417 const KeyParam *kp = keyParams.at(i); in CreateResConfigFromKeyParams() 496 std::string HapParser::ToFolderPath(const std::vector<KeyParam *> &keyParams) in ToFolderPath() argument 498 if (keyParams.size() == 0) { in ToFolderPath() 508 for (size_t i = 0; i < keyParams.size(); ++i) { in ToFolderPath() 509 KeyParam *keyParam = keyParams[ in ToFolderPath() [all...] |
/base/global/resource_management_lite/frameworks/resmgr_lite/src/ |
H A D | global_utils.c | 147 if (keys[i].keyParams[j].type == LANGUAGES && keys[i].keyParams[j].value == value) {
in FindOffsetByLanguage() 188 SetLocaleItemViaKeys(&(keys[i].keyParams[j]), &locale);
in FindOffsetByLangWithScriptOrRegion() 224 SetLocaleItemViaKeys(&(keys[i].keyParams[j]), &locale);
in FindOffsetByAllParam() 287 free(keys[i].keyParams);
in FreeKeyParams() 288 keys[i].keyParams = NULL;
in FreeKeyParams() 316 keys[i].keyParams = (KeyParam *)malloc(sizeof(KeyParam) * keys[i].keysCount);
in GetKeyParams() 317 if (keys[i].keyParams == NULL) {
in GetKeyParams() 322 keys[i].keyParams[j].type = (KeyType)GetDefaultOffsetValue(file);
in GetKeyParams() 323 keys[i].keyParams[ in GetKeyParams() [all...] |
/base/global/resource_management/frameworks/resmgr/src/ |
H A D | hap_resource.cpp | 478 const std::vector<std::shared_ptr<KeyParam>> &keyParams = item->keyParams_; in GetLimitPathsKeys() 479 for_each(keyParams.begin(), keyParams.end(), [&](auto &keyParam) { in GetLimitPathsKeys() 500 void HapResource::GetKeyParamsLocales(const std::vector<std::shared_ptr<KeyParam>> keyParams, in GetKeyParamsLocales() argument 505 for (size_t i = 0; i < keyParams.size(); i++) { in GetKeyParamsLocales() 506 KeyType keyType = keyParams[i]->type_; in GetKeyParamsLocales() 511 locale = keyParams[i]->GetStr(); in GetKeyParamsLocales() 517 locale.append(keyParams[i]->GetStr()); in GetKeyParamsLocales() 522 locale.append(keyParams[i]->GetStr()); in GetKeyParamsLocales()
|
/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/pake_task/standard_exchange_task/ |
H A D | common_standard_bind_exchange.c | 104 KeyParams keyParams = { { keyAlias->val, keyAlias->length, true }, false, pakeParams->baseParams.osAccountId }; in GenerateKeyPairIfNotExist() local 105 res = pakeParams->baseParams.loader->generateKeyPairWithStorage(&keyParams, PAKE_ED25519_KEY_PAIR_LEN, alg, in GenerateKeyPairIfNotExist() 124 KeyParams keyParams = { in PackageAuthInfo() local 129 res = pakeParams->baseParams.loader->exportPublicKey(&keyParams, &(exchangeParams->pubKeySelf)); in PackageAuthInfo() 260 KeyParams keyParams = { in EncryptAuthAndSignInfo() local 265 res = pakeParams->baseParams.loader->aesGcmEncrypt(&keyParams, &exchangeInfo, &encryptInfo, in EncryptAuthAndSignInfo() 294 KeyParams keyParams = { in DecryptAuthAndSignInfo() local 299 int32_t res = pakeParams->baseParams.loader->aesGcmDecrypt(&keyParams, &(exchangeParams->exInfoCipher), in DecryptAuthAndSignInfo() 383 KeyParams keyParams = { in VerifySignInfo() local 388 res = pakeParams->baseParams.loader->verify(&keyParams, in VerifySignInfo() 419 KeyParams keyParams = { { keyAlias.val, keyAlias.length, true }, false, pakeParams->baseParams.osAccountId }; SaveAuthInfo() local [all...] |
/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/iso_task/lite_exchange_task/ |
H A D | iso_client_bind_exchange_task.c | 56 KeyParams keyParams = { in DecAndImportInner() local 61 res = params->baseParams.loader->aesGcmDecrypt(&keyParams, encDataBuf, &gcmParam, authCodeBuf); in DecAndImportInner() 192 KeyParams keyParams = { in ClientBindAesEncrypt() local 197 res = params->baseParams.loader->aesGcmEncrypt(&keyParams, &challengeBuf, &gcmParams, &outBuf); in ClientBindAesEncrypt()
|
H A D | iso_server_bind_exchange_task.c | 102 KeyParams keyParams = { in DecryptChallenge() local 107 res = params->baseParams.loader->aesGcmDecrypt(&keyParams, &encDataBuf, &gcmParam, &challengeBuf); in DecryptChallenge() 165 KeyParams keyParams = { in GenAndEncAuthCode() local 170 res = params->baseParams.loader->aesGcmEncrypt(&keyParams, &authCodeBuf, &gcmParam, encAuthCodeBuf); in GenAndEncAuthCode()
|
/base/global/resource_management/frameworks/resmgr/include/ |
H A D | hap_parser.h | 147 * @param keyParams the keyParams contain type and value 148 * @return the resource config related to the keyParams 151 const std::vector<std::shared_ptr<KeyParam>> &keyParams); 155 * @param keyParams the keyParams contain type and value 158 static std::string ToFolderPath(const std::vector<std::shared_ptr<KeyParam>> &keyParams);
|
/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/pake_task/pake_v1_task/pake_v1_protocol_task/ |
H A D | pake_v1_protocol_task_common.c | 156 KeyParams keyParams = { { peerKeyAlias.val, peerKeyAlias.length, true }, true, params->baseParams.osAccountId }; in LoadPseudonymFlagIfNeed() local 157 res = params->baseParams.loader->getKeyExtInfo(&keyParams, &extInfoBuff); in LoadPseudonymFlagIfNeed() 316 KeyParams keyParams = { { pskAlias.val, pskAlias.length, true }, isDeStorage, params->baseParams.osAccountId }; in FillPskWithDerivedKeyHex() local 318 res = params->baseParams.loader->computeHkdf(&keyParams, &(params->nonce), &keyInfo, &pskByte); in FillPskWithDerivedKeyHex() 401 KeyParams keyParams = { { pskAliasBuff.val, pskAliasBuff.length, true }, true, params->baseParams.osAccountId }; in LoadPseudonymExtInfoIfNeed() local 402 res = params->baseParams.loader->getKeyExtInfo(&keyParams, &extInfoBuff); in LoadPseudonymExtInfoIfNeed() 483 KeyParams keyParams = { { baseKeyAlias.val, baseKeyAlias.length, true }, true, params->baseParams.osAccountId }; in GeneratePseudonymPskIfNotExist() local 484 res = params->baseParams.loader->computePseudonymPsk(&keyParams, &pskAliasBuff, NULL, &outKeyBuff); in GeneratePseudonymPskIfNotExist() 808 KeyParams keyParams = { { baseKeyAlias.val, baseKeyAlias.length, true }, true, params->baseParams.osAccountId }; in SaveExtInfoToPseudonymPsk() local 809 res = params->baseParams.loader->computePseudonymPsk(&keyParams, pskAliasBuf in SaveExtInfoToPseudonymPsk() [all...] |
/base/security/device_auth/services/session_manager/src/session/v2/expand_sub_session/expand_process_lib/ |
H A D | pub_key_exchange.c | 232 KeyParams keyParams = { { keyAlias.val, keyAlias.length, true }, params->isSelfFromUpgrade, params->osAccountId }; in ExportSelfPubKey() local 242 res = GetLoaderInstance()->generateKeyPairWithStorage(&keyParams, PAKE_ED25519_KEY_PAIR_LEN, alg, in ExportSelfPubKey() 254 res = GetLoaderInstance()->exportPublicKey(&keyParams, ¶ms->pkSelf); in ExportSelfPubKey() 370 KeyParams keyParams = { { peerKeyAlias->val, peerKeyAlias->length, true }, false, osAccountId }; in ComputeAndSavePskInner() local 371 int32_t res = GetLoaderInstance()->exportPublicKey(&keyParams, &peerPubKeyBuff); in ComputeAndSavePskInner() 439 KeyParams keyParams = { { keyAlias.val, keyAlias.length, true }, false, params->osAccountId }; in SavePeerPubKey() local 440 res = GetLoaderInstance()->importPublicKey(&keyParams, ¶ms->pkPeer, ED25519, &exInfo); in SavePeerPubKey()
|
/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/creds_manager/ |
H A D | das_standard_token_manager.c | 43 KeyParams keyParams = { { keyAliasBuff.val, keyAliasBuff.length, true }, false, params->osAccountId }; in RegisterLocalIdentityStd() local 44 res = loader->generateKeyPairWithStorage(&keyParams, PAKE_ED25519_KEY_PAIR_LEN, ED25519, in RegisterLocalIdentityStd() 405 KeyParams keyParams = { { keyAliasBuff.val, keyAliasBuff.length, true }, isDeStorage, params->osAccountId }; in GetPublicKeyStd() local 406 res = loader->exportPublicKey(&keyParams, returnPk); in GetPublicKeyStd()
|
/base/security/device_auth/services/session_manager/src/session/v2/expand_sub_session/ |
H A D | expand_sub_session.c | 107 KeyParams keyParams = { { impl->encKey.val, impl->encKey.length, false }, false, DEFAULT_OS_ACCOUNT }; in EncryptMsg() local 108 int32_t res = GetLoaderInstance()->aesGcmEncrypt(&keyParams, rawData, &gcmParam, &encData); in EncryptMsg() 130 KeyParams keyParams = { { impl->encKey.val, impl->encKey.length, false }, false, DEFAULT_OS_ACCOUNT }; in DecryptMsg() local 131 int32_t res = GetLoaderInstance()->aesGcmDecrypt(&keyParams, encData, &gcmParam, &rawData); in DecryptMsg()
|
/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/iso_task/iso_task_common/ |
H A D | iso_task_common.c | 109 KeyParams keyParams = { in GenerateEncResult() local 114 ret = params->baseParams.loader->aesGcmEncrypt(&keyParams, &plainBuf, &encryptInfo, &outBuf); in GenerateEncResult() 246 KeyParams keyParams = { in CheckEncResult() local 251 res = params->baseParams.loader->aesGcmDecrypt(&keyParams, &encResultBuf, &gcmParam, &outBuf); in CheckEncResult() 609 KeyParams keyParams = { { hashBuf.val, hashBuf.length, false }, false, params->baseParams.osAccountId }; in AuthGeneratePskUsePin() local 610 return params->baseParams.loader->computeHmac(&keyParams, seed, &pskBuf); in AuthGeneratePskUsePin()
|