/ohos5.0/docs/zh-cn/application-dev/database/ |
H A D | data-encryption.md | 74 当encrypt为true时,支持开发者通过ArkTs API中的可选属性cryptoParam设置自定义的加密/解密密钥和算法等参数。Native侧暂不支持此配置项。 76 针对cryptoParam的配置与否,有如下两种场景: 78 场景1:不配置cryptoParam属性,此时会使用默认的加密配置进行数据库的加密/解密。 101 场景2:配置cryptoParam属性,此时会使用开发者自定义的密钥和算法参数进行数据库的加密/解密。 128 cryptoParam: CRYPTO_PARAM 145 如果开发者不关心加密使用的算法及参数,则无需配置cryptoParam属性,使用默认加密配置即可。当开发者需要自定义加密配置,或需要打开非默认配置的加密数据库时,则需要配置cryptoParam属性。
|
/ohos5.0/foundation/distributeddatamgr/relational_store/test/js/relationalstore/unittest/src/ |
H A D | RdbstoreEncryptionJsunit.test.js | 51 cryptoParam: { class in STORE_CONFIG_DEFAULT 65 cryptoParam: { class in STORE_CONFIG_NON_DEFAULT 384 cryptoParam: { class in console.info 439 cryptoParam: { class in console.info 468 cryptoParam: { class in console.info 498 cryptoParam: { class in console.info 528 cryptoParam: { class in console.info 576 cryptoParam: { class in console.info 652 cryptoParam: { class in console.info 669 invalid_page_size_config.cryptoParam.cryptoPageSize = -1 [all …]
|
/ohos5.0/docs/en/application-dev/database/ |
H A D | data-encryption.md | 74 …can set parameters such as the key and algorithm used for encryption/decryption in **cryptoParam**. 76 The **cryptoParam** parameter is optional. 78 If **cryptoParam** is not set, the default configuration is used for database encryption and decryp… 101 If **cryptoParam** is set, the specified key and algorithm are used for database encryption and dec… 128 cryptoParam: CRYPTO_PARAM 145 …cryptoParam** unspecified. In this case, the default encryption configuration is used. If you want…
|
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/js/napi/relationalstore/src/ |
H A D | napi_rdb_js_utils.cpp | 319 int32_t Convert2Value(napi_env env, napi_value input, CryptoParam &cryptoParam) in Convert2Value() argument 328 …NAPI_CALL_RETURN_ERR(GetNamedProperty(env, input, "encryptionKey", cryptoParam.encryptKey_), napi_… in Convert2Value() 329 …NAPI_CALL_RETURN_ERR(GetNamedProperty(env, input, "iterationCount", cryptoParam.iterNum, true), na… in Convert2Value() 331 … GetNamedProperty(env, input, "encryptionAlgo", cryptoParam.encryptAlgo, true), napi_invalid_arg); in Convert2Value() 332 …NAPI_CALL_RETURN_ERR(GetNamedProperty(env, input, "hmacAlgo", cryptoParam.hmacAlgo, true), napi_in… in Convert2Value() 333 …NAPI_CALL_RETURN_ERR(GetNamedProperty(env, input, "kdfAlgo", cryptoParam.kdfAlgo, true), napi_inva… in Convert2Value() 335 …GetNamedProperty(env, input, "cryptoPageSize", cryptoParam.cryptoPageSize, true), napi_invalid_arg… in Convert2Value() 382 status = GetNamedProperty(env, jsValue, "cryptoParam", rdbConfig.cryptoParam, true); in Convert2Value() 516 rdbStoreConfig.SetCryptoParam(rdbConfig.cryptoParam); in GetRdbStoreConfig()
|
H A D | napi_rdb_store_helper.cpp | 70 …CHECK_RETURN_SET_E(context->config.cryptoParam.IsValid(), std::make_shared<ParamError>("Illegal Cr… in GetRdbStore()
|
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/js/napi/relationalstore/include/ |
H A D | napi_rdb_js_utils.h | 66 CryptoParam cryptoParam; member 95 int32_t Convert2Value(napi_env env, napi_value jsValue, CryptoParam &cryptoParam);
|
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/ |
H A D | rdb_store_config.cpp | 629 void RdbStoreConfig::SetCryptoParam(RdbStoreConfig::CryptoParam cryptoParam) in SetCryptoParam() argument 631 cryptoParam_ = cryptoParam; in SetCryptoParam()
|
/ohos5.0/foundation/distributeddatamgr/relational_store/interfaces/inner_api/rdb/mock/include/ |
H A D | rdb_store_config.h | 255 void SetCryptoParam(CryptoParam cryptoParam);
|
/ohos5.0/foundation/distributeddatamgr/relational_store/interfaces/inner_api/rdb/include/ |
H A D | rdb_store_config.h | 675 void SetCryptoParam(CryptoParam cryptoParam);
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkdata/ |
H A D | js-apis-data-relationalStore.md | 568 | cryptoParam<sup>14+</sup> | [CryptoParam](#cryptoparam14) | 否 | 指定用户自定义的加密参数。<br/>当此参数不填时,使用默认的加密…
|
/ohos5.0/docs/en/application-dev/reference/apis-arkdata/ |
H A D | js-apis-data-relationalStore.md | 563 | cryptoParam<sup>14+</sup> | [CryptoParam](#cryptoparam14) | No| Custom encryption parameters.<br>…
|