Home
last modified time | relevance | path

Searched refs:keyInfoLen (Results 1 – 4 of 4) sorted by relevance

/base/security/huks/services/huks_standard/huks_service/main/core/src/
Dhks_storage_lite.c366 if (HksIsKeyInfoLenInvalid(keyInfo) || (keyInfo->keyInfoLen > (totalLen - offset))) { in GetKeyOffsetByKeyAlias()
378 offset += keyInfo->keyInfoLen; in GetKeyOffsetByKeyAlias()
477 uint32_t keyInfoLen = keyInfo->keyInfoLen; in DeleteKey() local
478 uint32_t nextKeyOffset = keyOffset + keyInfoLen; in DeleteKey()
483 (void)memset_s(keyInfo, keyInfoLen, 0, keyInfoLen); in DeleteKey()
493 …emset_s(g_storageImageBuffer.data + keyInfoHead->totalLen - keyInfoLen, keyInfoLen, 0, keyInfoLen); in DeleteKey()
496 keyInfoHead->totalLen -= keyInfoLen; in DeleteKey()
516 … ret = GetLenAfterAddKey(keyBlob, keyInfoHead->totalLen - keyInfo->keyInfoLen, &totalLenAdded); in StoreKeyBlob()
643 newkeyInfoHead.totalLen -= keyInfo->keyInfoLen; in HksStoreDeleteKeyBlob()
691 … keyBlob->data = (uint8_t *)HksMalloc(keyInfo->keyInfoLen); /* need be freed by caller functions */ in HksStoreGetKeyBlob()
[all …]
Dhks_storage_adapter.c30 …(keyInfo->keyInfoLen != (sizeof(*keyInfo) + keyInfo->aliasSize + keyInfo->authIdSize + keyInfo->ke… in HksIsKeyInfoLenInvalid()
/base/security/huks/services/huks_standard/huks_engine/main/core/src/
Dhks_keyblob_lite.c121 … .size = sizeof(*keyInfo) - sizeof(keyInfo->keyInfoLen) + keyInfo->aliasSize + keyInfo->authIdSize, in BuildKeyBlobUsageSpec()
122 .data = cipherKey->data + sizeof(keyInfo->keyInfoLen) in BuildKeyBlobUsageSpec()
133 …aeadParam->tagDec.data = cipherKey->data + keyInfo->keyInfoLen - HKS_AE_TAG_LEN; /* the last 16 by… in BuildKeyBlobUsageSpec()
167 …struct HksBlob encKey = { keyInfo->keySize, cipherKey->data + keyInfo->keyInfoLen - keyInfo->keySi… in EncryptAndDecryptKeyBlob()
169 … struct HksBlob tag = { HKS_AE_TAG_LEN, cipherKey->data + keyInfo->keyInfoLen - HKS_AE_TAG_LEN }; in EncryptAndDecryptKeyBlob()
409 …keyInfo->keyInfoLen = sizeof(*keyInfo) + keyInfo->aliasSize + keyInfo->authIdSize + keyInfo->keySi… in FillStoreKeyInfo()
415 keyOut->size = keyInfo->keyInfoLen; in FillStoreKeyInfo()
/base/security/huks/interfaces/inner_api/huks_standard/main/include/
Dhks_type.h900 uint16_t keyInfoLen; /* current keyinfo len */ member