Searched refs:keyDesc (Results 1 – 5 of 5) sorted by relevance
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/ |
H A D | fscrypt_key_v1.cpp | 82 keyDesc = ""; in GenerateAppkey() 94 keyDesc = keyInfo_.keyDesc.ToString(); in GenerateAppkey() 95 keyInfo_.keyDesc.Clear(); in GenerateAppkey() 370 if (!SaveKeyBlob(keyInfo_.keyDesc, dir_ + PATH_KEYDESC)) { in InstallKeyToKeyring() 412 if (!SaveKeyBlob(keyInfo_.keyDesc, dir_ + PATH_KEYDESC)) { in InstallEceSeceKeyToKeyring() 425 if (!keyInfo_.keyDesc.IsEmpty() && !UninstallKeyToKeyring()) { in InactiveKey() 486 if (keyInfo_.keyDesc.IsEmpty()) { in UninstallKeyToKeyring() 526 keyInfo_.keyDesc.Alloc(CRYPTO_KEY_DESC_SIZE); in GenerateKeyDesc() 527 …auto err = memcpy_s(keyInfo_.keyDesc.data.get(), keyInfo_.keyDesc.size, keyRef2, CRYPTO_KEY_DESC_S… in GenerateKeyDesc() 553 keyInfo_.keyDesc.Alloc(CRYPTO_KEY_DESC_SIZE); in GenerateAppKeyDesc() [all …]
|
H A D | base_key.cpp | 1110 return keyInfo_.keyDesc.IsEmpty(); in StoreKey()
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/libfscrypt/src/ |
H A D | fscrypt_control.c | 307 char keyDesc[FSCRYPT_KEY_DESCRIPTOR_SIZE] = {0}; in SetPolicyLegacy() local 308 int ret = ReadKeyFile(keyDescPath, keyDesc, FSCRYPT_KEY_DESCRIPTOR_SIZE); in SetPolicyLegacy() 314 FSCRYPT_KEY_DESCRIPTOR_SIZE, keyDesc, FSCRYPT_KEY_DESCRIPTOR_SIZE); in SetPolicyLegacy() 406 static int ActSetFileXattrActSetFileXattr(const char *path, char *keyDesc, int storageType) in ActSetFileXattrActSetFileXattr() argument 415 int ret = memcpy_s((char *)PolicySDP.masterKeyDescriptor, FS_KEY_DESC_SIZE, (char *)keyDesc, in ActSetFileXattrActSetFileXattr() 459 char keyDesc[FSCRYPT_KEY_DESCRIPTOR_SIZE] = {0}; in LoadAndSetEceAndSecePolicy() local 460 ret = ReadKeyFile(pathBuf, keyDesc, FSCRYPT_KEY_DESCRIPTOR_SIZE); in LoadAndSetEceAndSecePolicy() 464 ret = ActSetFileXattrActSetFileXattr(dir, keyDesc, type); in LoadAndSetEceAndSecePolicy()
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/include/crypto/ |
H A D | key_blob.h | 148 KeyBlob keyDesc; member
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/ |
H A D | crypto_key_test.cpp | 369 EXPECT_FALSE(g_testKeyV1->keyInfo_.keyDesc.IsEmpty()); 414 …rg.v1.master_key_descriptor, FSCRYPT_KEY_DESCRIPTOR_SIZE, g_testKeyV1->keyInfo_.keyDesc.data.get(), 415 g_testKeyV1->keyInfo_.keyDesc.size); 488 EXPECT_TRUE(g_testKeyV2->keyInfo_.keyDesc.IsEmpty());
|