From 733c630ffd99a6806e7156a6512102a08fd3f612 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E5=95=B8=E5=A4=A9?= Date: Tue, 7 Feb 2023 07:04:54 +0000 Subject: [PATCH] change crypto framework API ParamSpec attribute from algoName to algName MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 胡啸天 --- .../changelog-security.md | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.7/changelog-security.md diff --git a/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.7/changelog-security.md b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.7/changelog-security.md new file mode 100644 index 0000000000..1d853d92b2 --- /dev/null +++ b/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.7/changelog-security.md @@ -0,0 +1,42 @@ +# security子系统ChangeLog + +## cl.security.1 ParamsSpec属性名变更为algName。 +结构体ParamsSpec的属性algoName由于API命名统一,名称更改为algName。 + +**变更影响** + +影响已发布的JS接口,对ParamsSpec以及其子类IvParamsSpec,GcmParamsSpec与CcmParamsSpec,使用这些对象作为参数或返回值时,其属性名需要更改为algName。 +应用需要进行适配,才可以在新版本SDK环境正常编译通过。 + +**关键的接口/组件变更** + +修改前的接口原型: + + ```ts +interface ParamsSpec { + /** + * Indicates the algorithm name. Should be set before initialization of a cipher object. + * @type { string } + * @syscap SystemCapability.Security.CryptoFramework + * @since 9 + */ + algoName : string; +} + ``` +修改后的接口原型: + + ```ts +interface ParamsSpec { + /** + * Indicates the algorithm name. Should be set before initialization of a cipher object. + * @type { string } + * @syscap SystemCapability.Security.CryptoFramework + * @since 9 + */ + algName : string; +} + ``` + +**适配指导** +查看API参考中ParamsSpec对应的接口适配指南: +[加解密算法库框架-API参考](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-cryptoFramework.md) \ No newline at end of file -- GitLab