Searched refs:keyInfo_ (Results 1 – 11 of 11) sorted by relevance
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/ |
H A D | fscrypt_key_v1.cpp | 38 keyInfo_.key.Clear(); in ActiveKey() 43 if (!fscryptV1Ext.ActiveKeyExt(flag, keyInfo_.key.data.get(), keyInfo_.key.size, elType)) { in ActiveKey() 44 keyInfo_.key.Clear(); in ActiveKey() 56 keyInfo_.key.Clear(); in ActiveKey() 67 keyInfo_.key.Clear(); in ActiveKey() 95 keyInfo_.keyDesc.Clear(); in GenerateAppkey() 172 keyInfo_.key.Clear(); in UnlockUserScreen() 178 keyInfo_.key.Clear(); in UnlockUserScreen() 189 keyInfo_.key.Clear(); in UnlockUserScreen() 373 keyInfo_.key.Clear(); in InstallKeyToKeyring() [all …]
|
H A D | fscrypt_key_v2.cpp | 27 if (keyInfo_.key.IsEmpty()) { in ActiveKey() 37 arg->raw_size = keyInfo_.key.size; in ActiveKey() 38 auto err = memcpy_s(arg->raw, FSCRYPT_MAX_KEY_SIZE, keyInfo_.key.data.get(), keyInfo_.key.size); in ActiveKey() 48 keyInfo_.keyId.Alloc(FSCRYPT_KEY_IDENTIFIER_SIZE); in ActiveKey() 49 auto ret = memcpy_s(keyInfo_.keyId.data.get(), keyInfo_.keyId.size, arg->key_spec.u.identifier, in ActiveKey() 57 keyInfo_.keyId.ToString().c_str()); in ActiveKey() 58 if (!SaveKeyBlob(keyInfo_.keyId, dir_ + PATH_KEYID)) { in ActiveKey() 61 keyInfo_.key.Clear(); in ActiveKey() 69 if (keyInfo_.keyId.size == 0) { in InactiveKey() 82 keyInfo_.keyId.size); in InactiveKey() [all …]
|
H A D | base_key.cpp | 87 …if (keyInfo_.version == FSCRYPT_INVALID || keyInfo_.version > KeyCtrlGetFscryptVersion(MNT_DATA.c_… in InitKey() 88 LOGE("invalid version %{public}u", keyInfo_.version); in InitKey() 91 if (!keyInfo_.key.IsEmpty()) { in InitKey() 95 if (needGenerateKey && !GenerateKeyBlob(keyInfo_.key, keyLen_)) { in InitKey() 273 if (version != std::to_string(keyInfo_.version)) { in StoreKey() 430 if (!HuksMaster::GetInstance().EncryptKey(ctxDe, auth, keyInfo_, true)) { in StoreKey() 453 if (!HuksMaster::GetInstance().EncryptKeyEx(auth, keyInfo_.key, keyCtx)) { in StoreKey() 576 if (ver == FSCRYPT_INVALID || ver != keyInfo_.version) { in StoreKey() 675 if (ver == FSCRYPT_INVALID || ver != keyInfo_.version) { in StoreKey() 784 keyInfo_.key.Clear(); in StoreKey() [all …]
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/fscrypt_v2_test/ |
H A D | fscrypt_key_v2_test.cpp | 84 g_testKeyV2.keyInfo_.key.Alloc(FSCRYPT_MAX_KEY_SIZE + 1); 89 g_testKeyV2.keyInfo_.key.Alloc(FSCRYPT_MAX_KEY_SIZE); 93 g_testKeyV2.keyInfo_.keyId.Clear(); 94 g_testKeyV2.keyInfo_.key.Alloc(FSCRYPT_MAX_KEY_SIZE); 99 g_testKeyV2.keyInfo_.keyId.Clear(); 100 g_testKeyV2.keyInfo_.key.Alloc(FSCRYPT_MAX_KEY_SIZE); 101 g_testKeyV2.keyInfo_.keyId.Alloc(FSCRYPT_KEY_IDENTIFIER_SIZE); 117 g_testKeyV2.keyInfo_.keyId.Clear(); 121 g_testKeyV2.keyInfo_.keyId.Clear(); 122 g_testKeyV2.keyInfo_.keyId.Alloc(FSCRYPT_KEY_IDENTIFIER_SIZE); [all …]
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/ |
H A D | crypto_key_test.cpp | 154 EXPECT_EQ(FSCRYPT_V1, g_testKeyV1->keyInfo_.version); 157 g_testKeyV1->keyInfo_.key.Clear(); 176 g_testKeyV2->keyInfo_.key.Clear(); 299 g_testKeyV1->keyInfo_.key.Clear(); 361 EXPECT_FALSE(g_testKeyV1->keyInfo_.key.IsEmpty()); 366 EXPECT_TRUE(g_testKeyV1->keyInfo_.key.IsEmpty()); 367 EXPECT_TRUE(g_testKeyV1->keyInfo_.keyId.IsEmpty()); 389 EXPECT_TRUE(g_testKeyV1->keyInfo_.key.IsEmpty()); 415 g_testKeyV1->keyInfo_.keyDesc.size); 487 EXPECT_TRUE(g_testKeyV2->keyInfo_.key.IsEmpty()); [all …]
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/include/crypto/ |
H A D | fscrypt_key_v2.h | 29 keyInfo_.version = FSCRYPT_V2;
|
H A D | fscrypt_key_v1.h | 30 keyInfo_.version = FSCRYPT_V1;
|
H A D | base_key.h | 71 KeyInfo keyInfo_; variable
|
/ohos5.0/commonlibrary/ets_utils/js_api_module/xml/ |
H A D | js_xml.cpp | 460 if (keyInfo_ != "") { in DealLength() 461 keyInfo_.append(strXml_, 0, position_); in DealLength() 1590 keyInfo_ = ""; in ParseDoctype() 1602 keyInfo_.append(strXml_, 0, position_); in ParseDoctype() 1603 keyInfo_ = keyInfo_.substr(startPosition); in ParseDoctype() 1604 text_ = keyInfo_; in ParseDoctype() 1605 keyInfo_ = ""; in ParseDoctype()
|
H A D | js_xml.h | 410 std::string keyInfo_ {};
|
/ohos5.0/commonlibrary/ets_utils/js_api_module/xml/test/ |
H A D | test_xml.h | 498 xmlPullParser.keyInfo_ = pushStr; in DealLengthFuc() 501 return xmlPullParser.keyInfo_; in DealLengthFuc()
|