Home
last modified time | relevance | path

Searched refs:keyInfoBlob (Results 1 – 6 of 6) sorted by relevance

/ohos5.0/base/security/huks/services/huks_standard/huks_service/main/hks_storage/src/
H A Dhks_storage_adapter.c72 static int32_t AddStorageParams(const struct HksBlob *key, const struct HksBlob *keyInfoBlob, in AddStorageParams() argument
75 if (keyInfoBlob->size < sizeof(struct HksStoreKeyInfo)) { in AddStorageParams()
76 … HKS_LOG_E("invalid keyInfoBlob, size too small, size = %" LOG_PUBLIC "u", keyInfoBlob->size); in AddStorageParams()
80 struct HksStoreKeyInfo *keyInfo = (struct HksStoreKeyInfo *)keyInfoBlob->data; in AddStorageParams()
90 …struct HksBlob keyAuthId = { keyInfo->authIdSize, keyInfoBlob->data + sizeof(*keyInfo) + keyInfo->… in AddStorageParams()
110 int32_t TranslateKeyInfoBlobToParamSet(const struct HksBlob *key, const struct HksBlob *keyInfoBlob, in TranslateKeyInfoBlobToParamSet() argument
118 ret = AddStorageParams(key, keyInfoBlob, outputParamSet); in TranslateKeyInfoBlobToParamSet()
H A Dhks_storage_lite.c746 static int32_t GetKeyInfoList(struct HksKeyInfo *keyInfoList, const struct HksBlob *keyInfoBlob) in GetKeyInfoList() argument
748 struct HksStoreKeyInfo *keyInfo = (struct HksStoreKeyInfo *)keyInfoBlob->data; in GetKeyInfoList()
755 keyInfoBlob->data + sizeof(*keyInfo), keyInfo->aliasSize) != EOK) { in GetKeyInfoList()
762 int32_t ret = TranslateKeyInfoBlobToParamSet(NULL, keyInfoBlob, &paramSet); in GetKeyInfoList()
833 struct HksBlob keyInfoBlob = { keyInfo->keyInfoLen, tmpBuf }; in HksStoreGetKeyInfoList() local
834 ret = GetKeyInfoList(&keyInfoList[i], &keyInfoBlob); in HksStoreGetKeyInfoList()
/ohos5.0/base/security/huks/services/huks_standard/huks_service/main/hks_storage/include/
H A Dhks_storage_adapter.h29 int32_t TranslateKeyInfoBlobToParamSet(const struct HksBlob *key, const struct HksBlob *keyInfoBlob,
/ohos5.0/base/security/huks/services/huks_standard/huks_engine/main/core/include/
H A Dhks_keyblob.h88 …2_t HksTranslateKeyInfoBlobToParamSet(const struct HksBlob *key, const struct HksBlob *keyInfoBlob,
/ohos5.0/base/security/huks/services/huks_standard/huks_engine/main/core/src/
H A Dhks_keyblob_lite.c493 …2_t HksTranslateKeyInfoBlobToParamSet(const struct HksBlob *key, const struct HksBlob *keyInfoBlob, in HksTranslateKeyInfoBlobToParamSet() argument
496 return TranslateKeyInfoBlobToParamSet(key, keyInfoBlob, paramSet); in HksTranslateKeyInfoBlobToParamSet()
/ohos5.0/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/
H A Dhuks_adapter.c623 struct HksBlob keyInfoBlob = { 0, NULL }; in ConstructHkdfParamSet() local
625 keyInfoBlob.size = keyInfo->length; in ConstructHkdfParamSet()
626 keyInfoBlob.data = keyInfo->val; in ConstructHkdfParamSet()
644 hkdfParams[idx++].blob = keyInfoBlob; in ConstructHkdfParamSet()
718 struct HksBlob keyInfoBlob = { HcStrlen(PSEUDONYM_KEY_LEBEL), (uint8_t *)PSEUDONYM_KEY_LEBEL }; in ConstructPseudonymParamSet() local
736 hkdfParams[idx++].blob = keyInfoBlob; in ConstructPseudonymParamSet()