Home
last modified time | relevance | path

Searched refs:encryptedKey (Results 1 – 18 of 18) sorted by relevance

/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/executor/base/
H A Dgrd_db_api.cpp53 GRD_API int32_t GRD_DBBackup(GRD_DB *db, const char *backupDbFile, uint8_t *encryptedKey, uint32_t … in GRD_DBBackup() argument
62 return GRD_DBApiInfo.DBBackupApi(db, backupDbFile, encryptedKey, encryptedKeyLen); in GRD_DBBackup()
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/include/
H A Drd_utils.h63 …static int RdDbBackup(GRD_DB *db, const char *backupDbFile, uint8_t *encryptedKey, uint32_t encryp…
64 …static int RdDbRestore(GRD_DB *db, const char *backupDbFile, uint8_t *encryptedKey, uint32_t encry…
H A Dgrd_api_manager.h53 typedef int (*DBBackup) (GRD_DB *db, const char *backupDbFile, uint8_t *encryptedKey, uint32_t encr…
54 typedef int (*DBRestore) (GRD_DB *db, const char *backupDbFile, uint8_t *encryptedKey, uint32_t enc…
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/mock/
H A Dbase_key_mock.cpp98 KeyBlob &encryptedKey) in EncryptKeyBlob() argument
103 return IBaseKeyMoc::baseKeyMoc->EncryptKeyBlob(auth, keyPath, planKey, encryptedKey); in EncryptKeyBlob()
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/
H A Dfscrypt_key_v1.cpp320 KeyBlob encryptedKey(AES_256_HASH_RANDOM_SIZE + GCM_MAC_BYTES + GCM_NONCE_BYTES); in EncryptClassE() local
321 if (!EncryptKeyBlob(auth, dir_ + PATH_LATEST, eSecretFBE, encryptedKey)) { in EncryptClassE()
332 if (!fscryptV1Ext.WriteClassE(status, encryptedKey.data.get(), encryptedKey.size)) { in EncryptClassE()
336 encryptedKey.Clear(); in EncryptClassE()
H A Dbase_key.cpp892 KeyBlob &encryptedKey) in StoreKey() argument
917 CombKeyBlob(keyCtx.rndEnc, keyCtx.nonce, encryptedKey); in StoreKey()
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/
H A Drdb_security_manager.cpp302 std::vector<uint8_t> encryptedKey(plainKey.size * TIMES + 1); in EncryptWorkKey() local
303 struct HksBlob cipherText = { uint32_t(encryptedKey.size()), encryptedKey.data() }; in EncryptWorkKey()
307 encryptedKey.assign(encryptedKey.size(), 0); in EncryptWorkKey()
311 encryptedKey.resize(cipherText.size); in EncryptWorkKey()
312 return encryptedKey; in EncryptWorkKey()
H A Drd_utils.cpp420 int RdUtils::RdDbBackup(GRD_DB *db, const char *backupDbFile, uint8_t *encryptedKey, uint32_t encry… in RdDbBackup() argument
428 …return TransferGrdErrno(GRD_KVApiInfo.DBBackupApi(db, backupDbFile, encryptedKey, encryptedKeyLen)… in RdDbBackup()
431 int RdUtils::RdDbRestore(GRD_DB *db, const char *backupDbFile, uint8_t *encryptedKey, uint32_t encr… in RdDbRestore() argument
439 …return TransferGrdErrno(GRD_KVApiInfo.DBRestoreApi(db, backupDbFile, encryptedKey, encryptedKeyLen… in RdDbRestore()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/include/grd_base/
H A Dgrd_db_api.h29 GRD_API int32_t GRD_DBBackup(GRD_DB *db, const char *backupDbFile, uint8_t *encryptedKey, uint32_t …
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/crypto/src/
H A Dcrypto_manager.cpp165 std::vector<uint8_t> encryptedKey(cipherText.data, cipherText.data + cipherText.size); in Encrypt() local
167 return encryptedKey; in Encrypt()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/gaussdb_rd/
H A Drd_utils.h48 int RdBackup(GRD_DB *db, const char *backupDbFile, uint8_t *encryptedKey, uint32_t encryptedKeyLen);
H A Drd_utils.cpp151 int RdBackup(GRD_DB *db, const char *backupDbFile, uint8_t *encryptedKey, uint32_t encryptedKeyLen) in RdBackup() argument
153 return TransferGrdErrno(GRD_DBBackup(db, backupDbFile, encryptedKey, encryptedKeyLen)); in RdBackup()
H A Drd_single_ver_natural_store.cpp273 uint8_t *encryptedKey = const_cast<uint8_t*>(passwd.GetData()); in Export() local
275 errCode = handle->Backup(filePath, encryptedKey, encryptedKeyLen); in Export()
H A Drd_single_ver_storage_executor.h55 int Backup(const std::string &filePath, uint8_t *encryptedKey, uint32_t encryptedKeyLen);
H A Drd_single_ver_storage_executor.cpp281 int RdSingleVerStorageExecutor::Backup(const std::string &filePath, uint8_t *encryptedKey, uint32_t… in Backup() argument
283 return RdBackup(db_, filePath.c_str(), encryptedKey, encryptedKeyLen); in Backup()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/
H A Dsecurity_manager.cpp227 std::vector<uint8_t> encryptedKey(cipherText.data, cipherText.data + cipherText.size); in Encrypt() local
229 return encryptedKey; in Encrypt()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/common/include/
H A Dgrd_api_manager.h24 typedef int32_t (*DBBackup)(GRD_DB *db, const char *backupDbFile, uint8_t *encryptedKey, uint32_t e…
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/include/crypto/
H A Dbase_key.h64 …KeyBlob(const UserAuth &auth, const std::string &keyPath, KeyBlob &planKey, KeyBlob &encryptedKey);