Home
last modified time | relevance | path

Searched refs:planKey (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/mock/
H A Dbase_key_mock.cpp88 bool BaseKey::DecryptKeyBlob(const UserAuth &auth, const std::string &keyPath, KeyBlob &planKey, in DecryptKeyBlob() argument
94 return IBaseKeyMoc::baseKeyMoc->DecryptKeyBlob(auth, keyPath, planKey, decryptedKey); in DecryptKeyBlob()
97 bool BaseKey::EncryptKeyBlob(const UserAuth &auth, const std::string &keyPath, KeyBlob &planKey, in EncryptKeyBlob() argument
103 return IBaseKeyMoc::baseKeyMoc->EncryptKeyBlob(auth, keyPath, planKey, encryptedKey); in EncryptKeyBlob()
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/include/crypto/
H A Dbase_key.h64 …bool EncryptKeyBlob(const UserAuth &auth, const std::string &keyPath, KeyBlob &planKey, KeyBlob &e…
65 …bool DecryptKeyBlob(const UserAuth &auth, const std::string &keyPath, KeyBlob &planKey, KeyBlob &d…
H A Dkey_backup.h49 KeyBlob &planKey,
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/
H A Dbase_key.cpp891 bool BaseKey::EncryptKeyBlob(const UserAuth &auth, const std::string &keyPath, KeyBlob &planKey, in StoreKey() argument
911 if (!HuksMaster::GetInstance().EncryptKey(keyCtx, auth, {.key = planKey}, false)) { in StoreKey()
924 bool BaseKey::DecryptKeyBlob(const UserAuth &auth, const std::string &keyPath, KeyBlob &planKey, in StoreKey() argument
941 KeyInfo planKeyInfo = {.key = planKey}; in StoreKey()
942 SplitKeyBlob(planKey, keyCtx.rndEnc, keyCtx.nonce, AES_256_HASH_RANDOM_SIZE + GCM_MAC_BYTES); in StoreKey()
H A Dkey_backup.cpp136 KeyBlob &planKey, in TryRestoreUeceKey() argument
146 if (baseKey->DecryptKeyBlob(auth, keyDir + PATH_LATEST, planKey, decryptedKey)) { in TryRestoreUeceKey()
152 if (baseKey->DecryptKeyBlob(auth, backupDir + PATH_LATEST, planKey, decryptedKey)) { in TryRestoreUeceKey()