From 230aa836d4f33ff1853050df9a04af6257b47843 Mon Sep 17 00:00:00 2001 From: lanming Date: Wed, 14 Aug 2024 20:50:35 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=8A=A0=E8=A7=A3=E5=AF=86=E7=AE=97?= =?UTF-8?q?=E6=B3=95=E5=BA=93=E6=A1=86=E6=9E=B6=E9=87=8D=E6=96=B0=E5=88=92?= =?UTF-8?q?=E5=88=86syscap?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lanming --- api/@ohos.security.cryptoFramework.d.ts | 693 ++++++++++-------- api/device-define/default.json | 10 + api/device-define/tablet.json | 10 + .../api_check_plugin/code_style_rule.json | 12 +- 4 files changed, 418 insertions(+), 307 deletions(-) diff --git a/api/@ohos.security.cryptoFramework.d.ts b/api/@ohos.security.cryptoFramework.d.ts index 7fbb7b462..e2602fa6a 100644 --- a/api/@ohos.security.cryptoFramework.d.ts +++ b/api/@ohos.security.cryptoFramework.d.ts @@ -205,7 +205,7 @@ declare namespace cryptoFramework { * Provides the ParamsSpec type, including the algorithm name. * * @typedef ParamsSpec - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -230,7 +230,7 @@ declare namespace cryptoFramework { * Indicates the algorithm name. Should be set before initialization of a cipher object. * * @type { string } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -260,7 +260,7 @@ declare namespace cryptoFramework { * * @typedef IvParamsSpec * @extends ParamsSpec - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -285,7 +285,7 @@ declare namespace cryptoFramework { * Indicates the algorithm parameters such as iv. * * @type { DataBlob } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -315,7 +315,7 @@ declare namespace cryptoFramework { * * @typedef GcmParamsSpec * @extends ParamsSpec - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -340,7 +340,7 @@ declare namespace cryptoFramework { * Indicates the GCM algorithm parameters such as iv. * * @type { DataBlob } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -366,7 +366,7 @@ declare namespace cryptoFramework { * Indicates the additional Authenticated Data in GCM mode. * * @type { DataBlob } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -392,7 +392,7 @@ declare namespace cryptoFramework { * Indicates the output tag from the encryption operation. The tag is used for integrity check. * * @type { DataBlob } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -422,7 +422,7 @@ declare namespace cryptoFramework { * * @typedef CcmParamsSpec * @extends ParamsSpec - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -447,7 +447,7 @@ declare namespace cryptoFramework { * Indicates the GCM algorithm parameters such as IV. * * @type { DataBlob } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -473,7 +473,7 @@ declare namespace cryptoFramework { * Indicates the Additional Authenticated Data in CCM mode. * * @type { DataBlob } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -499,7 +499,7 @@ declare namespace cryptoFramework { * Indicates the output tag from the encryption operation. The tag is used for integrity check. * * @type { DataBlob } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -526,7 +526,7 @@ declare namespace cryptoFramework { * Enum for obtain the crypto operation. * * @enum { number } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -548,7 +548,7 @@ declare namespace cryptoFramework { /** * The value of encryption operation for AES, 3DES and RSA. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -571,7 +571,7 @@ declare namespace cryptoFramework { /** * The value of decryption operation for AES, 3DES and RSA. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -598,7 +598,7 @@ declare namespace cryptoFramework { * Provides the Key type, which is the common parent class of keys. * * @typedef Key - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key * @crossplatform * @atomicservice * @since 12 @@ -632,7 +632,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 801 - this operation is not supported. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key * @crossplatform * @atomicservice * @since 12 @@ -661,7 +661,7 @@ declare namespace cryptoFramework { * * @type { string } * @readonly - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key * @crossplatform * @atomicservice * @since 12 @@ -690,7 +690,7 @@ declare namespace cryptoFramework { * * @type { string } * @readonly - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key * @crossplatform * @atomicservice * @since 12 @@ -720,7 +720,7 @@ declare namespace cryptoFramework { * * @typedef SymKey * @extends Key - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.SymKey * @crossplatform * @atomicservice * @since 12 @@ -742,7 +742,7 @@ declare namespace cryptoFramework { /** * Reset the key data to zero in the memory. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.SymKey * @crossplatform * @atomicservice * @since 12 @@ -772,7 +772,7 @@ declare namespace cryptoFramework { * * @typedef PriKey * @extends Key - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -794,7 +794,7 @@ declare namespace cryptoFramework { /** * Clear memory of private key. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -835,7 +835,7 @@ declare namespace cryptoFramework { *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -851,7 +851,7 @@ declare namespace cryptoFramework { *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -867,7 +867,7 @@ declare namespace cryptoFramework { *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -897,7 +897,7 @@ declare namespace cryptoFramework { * * @typedef PubKey * @extends Key - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -937,7 +937,7 @@ declare namespace cryptoFramework { *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -953,7 +953,7 @@ declare namespace cryptoFramework { *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -969,7 +969,7 @@ declare namespace cryptoFramework { *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -996,7 +996,7 @@ declare namespace cryptoFramework { * Provides the keypair interface for asymmetric keys. A keyPair object contains both private key and public key. * * @typedef KeyPair - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -1024,7 +1024,7 @@ declare namespace cryptoFramework { * * @type { PriKey } * @readonly - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -1053,7 +1053,7 @@ declare namespace cryptoFramework { * * @type { PubKey } * @readonly - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -1077,6 +1077,15 @@ declare namespace cryptoFramework { * @atomicservice * @since 11 */ + /** + * Provides the random interface. + * + * @typedef Random + * @syscap SystemCapability.Security.CryptoFramework.Rand + * @crossplatform + * @atomicservice + * @since 12 + */ interface Random { /** * Generate random DataBlob by given length. @@ -1104,6 +1113,20 @@ declare namespace cryptoFramework { * @atomicservice * @since 11 */ + /** + * Generate random DataBlob by given length. + * + * @param { number } len - indicates the length of random DataBlob. + * @param { AsyncCallback } callback - the callback used to return random DataBlob. + * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; + *
2. Incorrect parameter types; 3. Parameter verification failed. + * @throws { BusinessError } 17620001 - memory error. + * @throws { BusinessError } 17630001 - crypto operation error. + * @syscap SystemCapability.Security.CryptoFramework.Rand + * @crossplatform + * @atomicservice + * @since 12 + */ generateRandom(len: number, callback: AsyncCallback): void; /** @@ -1132,6 +1155,20 @@ declare namespace cryptoFramework { * @atomicservice * @since 11 */ + /** + * Generate random DataBlob by given length. + * + * @param { number } len - indicates the length of random DataBlob. + * @returns { Promise } the promise used to return the generated random blob. + * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; + *
2. Incorrect parameter types; 3. Parameter verification failed. + * @throws { BusinessError } 17620001 - memory error. + * @throws { BusinessError } 17630001 - crypto operation error. + * @syscap SystemCapability.Security.CryptoFramework.Rand + * @crossplatform + * @atomicservice + * @since 12 + */ generateRandom(len: number): Promise; /** @@ -1160,6 +1197,20 @@ declare namespace cryptoFramework { * @atomicservice * @since 11 */ + /** + * Generate random DataBlob by given length synchronously. + * + * @param { number } len - indicates the length of random DataBlob. + * @returns { DataBlob } return the generated random blob. + * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; + *
2. Incorrect parameter types; 3. Parameter verification failed. + * @throws { BusinessError } 17620001 - memory error. + * @throws { BusinessError } 17630001 - crypto operation error. + * @syscap SystemCapability.Security.CryptoFramework.Rand + * @crossplatform + * @atomicservice + * @since 12 + */ generateRandomSync(len: number): DataBlob; /** @@ -1181,6 +1232,16 @@ declare namespace cryptoFramework { * @atomicservice * @since 11 */ + /** + * Set seed by given DataBlob. + * + * @param { DataBlob } seed - indicates the seed DataBlob. + * @throws { BusinessError } 17620001 - memory error. + * @syscap SystemCapability.Security.CryptoFramework.Rand + * @crossplatform + * @atomicservice + * @since 12 + */ setSeed(seed: DataBlob): void; /** @@ -1201,6 +1262,16 @@ declare namespace cryptoFramework { * @atomicservice * @since 11 */ + /** + * Indicates the random generation algorithm name. + * + * @type { string } + * @readonly + * @syscap SystemCapability.Security.CryptoFramework.Rand + * @crossplatform + * @atomicservice + * @since 12 + */ readonly algName: string; } @@ -1222,6 +1293,16 @@ declare namespace cryptoFramework { * @atomicservice * @since 11 */ + /** + * Create a random generator instance. + * + * @returns { Random } returns the created rand instance. + * @throws { BusinessError } 17620001 - memory error. + * @syscap SystemCapability.Security.CryptoFramework.Rand + * @crossplatform + * @atomicservice + * @since 12 + */ function createRandom(): Random; /** @@ -1243,7 +1324,7 @@ declare namespace cryptoFramework { * The AsyKeyGenerator provides the ability to generate or convert keyPair. * * @typedef AsyKeyGenerator - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -1277,7 +1358,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: Incorrect parameter types; * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -1315,7 +1396,7 @@ declare namespace cryptoFramework { *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -1330,7 +1411,7 @@ declare namespace cryptoFramework { *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -1374,7 +1455,7 @@ declare namespace cryptoFramework { *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -1418,7 +1499,7 @@ declare namespace cryptoFramework { *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -1462,7 +1543,7 @@ declare namespace cryptoFramework { *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -1506,7 +1587,7 @@ declare namespace cryptoFramework { *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -1523,7 +1604,7 @@ declare namespace cryptoFramework { *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -1540,7 +1621,7 @@ declare namespace cryptoFramework { *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -1557,7 +1638,7 @@ declare namespace cryptoFramework { *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -1586,7 +1667,7 @@ declare namespace cryptoFramework { * * @type { string } * @readonly - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -1613,7 +1694,7 @@ declare namespace cryptoFramework { * Provides the SymKeyGenerator type, which is used for generating symmetric key. * * @typedef SymKeyGenerator - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.SymKey * @crossplatform * @atomicservice * @since 12 @@ -1641,7 +1722,7 @@ declare namespace cryptoFramework { * * @param { AsyncCallback } callback - the callback of generateSymKey. * @throws { BusinessError } 17620001 - memory error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.SymKey * @crossplatform * @atomicservice * @since 12 @@ -1670,7 +1751,7 @@ declare namespace cryptoFramework { * * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 17620001 - memory error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.SymKey * @crossplatform * @atomicservice * @since 12 @@ -1682,7 +1763,7 @@ declare namespace cryptoFramework { * * @returns { SymKey } return SymKey. * @throws { BusinessError } 17620001 - memory error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.SymKey * @crossplatform * @atomicservice * @since 12 @@ -1720,7 +1801,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.SymKey * @crossplatform * @atomicservice * @since 12 @@ -1758,7 +1839,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.SymKey * @crossplatform * @atomicservice * @since 12 @@ -1773,7 +1854,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.SymKey * @crossplatform * @atomicservice * @since 12 @@ -1802,7 +1883,7 @@ declare namespace cryptoFramework { * * @type { string } * @readonly - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.SymKey * @crossplatform * @atomicservice * @since 12 @@ -1844,7 +1925,7 @@ declare namespace cryptoFramework { *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 801 - this operation is not supported. * @throws { BusinessError } 17620001 - memory error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -1882,7 +1963,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 801 - this operation is not supported. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.SymKey * @crossplatform * @atomicservice * @since 12 @@ -1908,7 +1989,7 @@ declare namespace cryptoFramework { * Provides the Mac type, which is used for Mac generation. * * @typedef Mac - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Mac * @crossplatform * @atomicservice * @since 12 @@ -1945,7 +2026,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Mac * @crossplatform * @atomicservice * @since 12 @@ -1983,7 +2064,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Mac * @crossplatform * @atomicservice * @since 12 @@ -1997,7 +2078,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Mac * @crossplatform * @atomicservice * @since 12 @@ -2035,7 +2116,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Mac * @crossplatform * @atomicservice * @since 12 @@ -2073,7 +2154,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Mac * @crossplatform * @atomicservice * @since 12 @@ -2087,7 +2168,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Mac * @crossplatform * @atomicservice * @since 12 @@ -2119,7 +2200,7 @@ declare namespace cryptoFramework { * @param { AsyncCallback } callback - the callback of the doFinal function. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Mac * @crossplatform * @atomicservice * @since 12 @@ -2151,7 +2232,7 @@ declare namespace cryptoFramework { * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Mac * @crossplatform * @atomicservice * @since 12 @@ -2167,7 +2248,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Mac * @crossplatform * @atomicservice * @since 12 @@ -2196,7 +2277,7 @@ declare namespace cryptoFramework { * * @returns { number } returns the length of the hmac result. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Mac * @crossplatform * @atomicservice * @since 12 @@ -2225,7 +2306,7 @@ declare namespace cryptoFramework { * * @type { string } * @readonly - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Mac * @crossplatform * @atomicservice * @since 12 @@ -2264,7 +2345,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Mac * @crossplatform * @atomicservice * @since 12 @@ -2290,7 +2371,7 @@ declare namespace cryptoFramework { * Provides the Md type, which is used for Md generation. * * @typedef Md - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.MessageDigest * @crossplatform * @atomicservice * @since 12 @@ -2327,7 +2408,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.MessageDigest * @crossplatform * @atomicservice * @since 12 @@ -2365,7 +2446,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.MessageDigest * @crossplatform * @atomicservice * @since 12 @@ -2379,7 +2460,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.MessageDigest * @crossplatform * @atomicservice * @since 12 @@ -2411,7 +2492,7 @@ declare namespace cryptoFramework { * @param { AsyncCallback } callback - the callback of the digest function. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.MessageDigest * @crossplatform * @atomicservice * @since 12 @@ -2443,7 +2524,7 @@ declare namespace cryptoFramework { * @returns { Promise } the promise returned by the function. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.MessageDigest * @crossplatform * @atomicservice * @since 12 @@ -2459,7 +2540,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.MessageDigest * @crossplatform * @atomicservice * @since 12 @@ -2488,7 +2569,7 @@ declare namespace cryptoFramework { * * @returns { number } returns the length of the hmac result. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.MessageDigest * @crossplatform * @atomicservice * @since 12 @@ -2517,7 +2598,7 @@ declare namespace cryptoFramework { * * @type { string } * @readonly - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.MessageDigest * @crossplatform * @atomicservice * @since 12 @@ -2556,7 +2637,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: 1. Mandatory parameters are left unspecified; *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.MessageDigest * @crossplatform * @atomicservice * @since 12 @@ -2582,7 +2663,7 @@ declare namespace cryptoFramework { * Enum for encryption specified parameters. * * @enum { number } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -2604,7 +2685,7 @@ declare namespace cryptoFramework { /** * Indicates the algorithm name of the message digest function. It is used during RSA encryption. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -2627,7 +2708,7 @@ declare namespace cryptoFramework { /** * Indicates the algorithm name for the mask generation function. It is used during RSA encryption. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -2650,7 +2731,7 @@ declare namespace cryptoFramework { /** * Indicates the message digest parameter for the MGF1 mask generation function. It is used during RSA encryption. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -2673,7 +2754,7 @@ declare namespace cryptoFramework { /** * Indicates the source of the encoding input P. It is used during RSA encryption. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -2690,7 +2771,7 @@ declare namespace cryptoFramework { /** * Indicates the hash algorithm name of SM2 cipher process. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -2717,7 +2798,7 @@ declare namespace cryptoFramework { * Enum for signature specified parameters, also used for verification. * * @enum { number } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -2739,7 +2820,7 @@ declare namespace cryptoFramework { /** * Indicates the algorithm name of the message digest function. It is used in RSA signing and verifying process. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -2762,7 +2843,7 @@ declare namespace cryptoFramework { /** * Indicates the algorithm name of the mask generation function. It is used in RSA signing and verifying process. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -2788,7 +2869,7 @@ declare namespace cryptoFramework { * Indicates the message digest parameter for the MGF1 mask generation function. * It is used in RSA signing and verifying process. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -2811,7 +2892,7 @@ declare namespace cryptoFramework { /** * Indicates the salt length in bits. It is used in RSA signing and verifying process. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -2834,7 +2915,7 @@ declare namespace cryptoFramework { /** * Indicates the value for the trailer field. It is used in RSA signing and verifying process. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -2851,7 +2932,7 @@ declare namespace cryptoFramework { /** * Indicates the value for user id. It is used in SM2 signing and verifying process. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -2878,7 +2959,7 @@ declare namespace cryptoFramework { * Provides the Cipher type, which is used for encryption and decryption operations. * * @typedef Cipher - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -2927,7 +3008,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -2977,7 +3058,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -3027,7 +3108,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -3077,7 +3158,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -3095,7 +3176,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -3142,7 +3223,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -3189,7 +3270,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -3207,7 +3288,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -3254,7 +3335,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -3301,7 +3382,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -3348,7 +3429,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -3395,7 +3476,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -3413,7 +3494,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -3460,7 +3541,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 801 - this operation is not supported. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -3507,7 +3588,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 801 - this operation is not supported. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -3536,7 +3617,7 @@ declare namespace cryptoFramework { * * @type { string } * @readonly - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -3585,7 +3666,7 @@ declare namespace cryptoFramework { *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 801 - this operation is not supported. * @throws { BusinessError } 17620001 - memory error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -3611,7 +3692,7 @@ declare namespace cryptoFramework { * Provides the Sign type, which is used for generating signatures. * * @typedef Sign - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -3654,7 +3735,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -3698,7 +3779,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -3714,7 +3795,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -3758,7 +3839,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -3802,7 +3883,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -3818,7 +3899,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -3862,7 +3943,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -3906,7 +3987,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -3950,7 +4031,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -3994,7 +4075,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -4011,7 +4092,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -4058,7 +4139,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 801 - this operation is not supported. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -4091,7 +4172,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 801 - this operation is not supported. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -4138,7 +4219,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 801 - this operation is not supported. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -4167,7 +4248,7 @@ declare namespace cryptoFramework { * * @type { string } * @readonly - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -4194,7 +4275,7 @@ declare namespace cryptoFramework { * Provides the Verify interface, which is used for verifying signatures. * * @typedef Verify - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -4237,7 +4318,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -4281,7 +4362,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -4297,7 +4378,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -4341,7 +4422,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -4385,7 +4466,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -4401,7 +4482,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -4448,7 +4529,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -4495,7 +4576,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -4542,7 +4623,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -4589,7 +4670,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -4607,7 +4688,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -4625,7 +4706,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -4643,7 +4724,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -4690,7 +4771,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 801 - this operation is not supported. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -4723,7 +4804,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 801 - this operation is not supported. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -4770,7 +4851,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 801 - this operation is not supported. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -4799,7 +4880,7 @@ declare namespace cryptoFramework { * * @type { string } * @readonly - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -4841,7 +4922,7 @@ declare namespace cryptoFramework { *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 801 - this operation is not supported. * @throws { BusinessError } 17620001 - memory error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -4882,7 +4963,7 @@ declare namespace cryptoFramework { *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 801 - this operation is not supported. * @throws { BusinessError } 17620001 - memory error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Signature * @crossplatform * @atomicservice * @since 12 @@ -4908,7 +4989,7 @@ declare namespace cryptoFramework { * Provides key agreement function. * * @typedef KeyAgreement - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.KeyAgreement * @crossplatform * @atomicservice * @since 12 @@ -4954,7 +5035,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.KeyAgreement * @crossplatform * @atomicservice * @since 12 @@ -5001,7 +5082,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.KeyAgreement * @crossplatform * @atomicservice * @since 12 @@ -5019,7 +5100,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.KeyAgreement * @crossplatform * @atomicservice * @since 12 @@ -5048,7 +5129,7 @@ declare namespace cryptoFramework { * * @type { string } * @readonly - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.KeyAgreement * @crossplatform * @atomicservice * @since 12 @@ -5090,7 +5171,7 @@ declare namespace cryptoFramework { *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 801 - this operation is not supported. * @throws { BusinessError } 17620001 - memory error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.KeyAgreement * @crossplatform * @atomicservice * @since 12 @@ -5116,7 +5197,7 @@ declare namespace cryptoFramework { * Enum for algorithm specified parameters. * * @enum { number } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5138,7 +5219,7 @@ declare namespace cryptoFramework { /** * Indicates the DSA prime p. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5161,7 +5242,7 @@ declare namespace cryptoFramework { /** * Indicates the DSA sub-prime q. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5184,7 +5265,7 @@ declare namespace cryptoFramework { /** * Indicates the DSA base g. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5207,7 +5288,7 @@ declare namespace cryptoFramework { /** * Indicates the DSA private key. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5230,7 +5311,7 @@ declare namespace cryptoFramework { /** * Indicates the DSA public key. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5253,7 +5334,7 @@ declare namespace cryptoFramework { /** * Indicates the prime p of an elliptic curve (EC) prime finite field. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5276,7 +5357,7 @@ declare namespace cryptoFramework { /** * Indicates the first coefficient a of this elliptic curve. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5299,7 +5380,7 @@ declare namespace cryptoFramework { /** * Indicates the second coefficient b of this elliptic curve. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5322,7 +5403,7 @@ declare namespace cryptoFramework { /** * Indicates the affine x-coordinate of base point g. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5345,7 +5426,7 @@ declare namespace cryptoFramework { /** * Indicates the affine y-coordinate of base point g. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5368,7 +5449,7 @@ declare namespace cryptoFramework { /** * Indicates the order of the base point g. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5391,7 +5472,7 @@ declare namespace cryptoFramework { /** * Indicates the cofactor of the elliptic curve. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5414,7 +5495,7 @@ declare namespace cryptoFramework { /** * Indicates the private value of the ECC private key. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5437,7 +5518,7 @@ declare namespace cryptoFramework { /** * Indicates the affine x-coordinate of a point, which is the public point of an ECC public key. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5460,7 +5541,7 @@ declare namespace cryptoFramework { /** * Indicates the affine y-coordinate of a point, which is the public point of an ECC public key. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5483,7 +5564,7 @@ declare namespace cryptoFramework { /** * Indicates an elliptic curve finite field type. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5509,7 +5590,7 @@ declare namespace cryptoFramework { * Indicates the field size in bits. * For Fp field (an elliptic curve prime finite field with prime p), the field size is the size of prime p. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5532,7 +5613,7 @@ declare namespace cryptoFramework { /** * Indicates the curve name according to SECG (Standards for Efficient Cryptography Group). * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5555,7 +5636,7 @@ declare namespace cryptoFramework { /** * Indicates the modulus n of RSA algorithm. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5578,7 +5659,7 @@ declare namespace cryptoFramework { /** * Indicates the private exponent d of RSA algorithm. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5601,7 +5682,7 @@ declare namespace cryptoFramework { /** * Indicates the public exponent e of RSA algorithm. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5618,7 +5699,7 @@ declare namespace cryptoFramework { /** * Indicates the prime p of DH algorithm. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5635,7 +5716,7 @@ declare namespace cryptoFramework { /** * Indicates the generator g of DH algorithm. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5652,7 +5733,7 @@ declare namespace cryptoFramework { /** * Indicates the number of bits of the private key length used in the DH algorithm. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5669,7 +5750,7 @@ declare namespace cryptoFramework { /** * Indicates the private value of the DH private key. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5686,7 +5767,7 @@ declare namespace cryptoFramework { /** * Indicates the public value of the DH public key. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5703,7 +5784,7 @@ declare namespace cryptoFramework { /** * Indicates the private value of the ED25519 private key. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5720,7 +5801,7 @@ declare namespace cryptoFramework { /** * Indicates the public value of the ED25519 public key. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5737,7 +5818,7 @@ declare namespace cryptoFramework { /** * Indicates the private value of the X25519 private key. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5754,7 +5835,7 @@ declare namespace cryptoFramework { /** * Indicates the public value of the X25519 public key. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5781,7 +5862,7 @@ declare namespace cryptoFramework { * Enum for algorithm specified parameters type. * * @enum { number } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5803,7 +5884,7 @@ declare namespace cryptoFramework { /** * Indicates the common specified parameters. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5826,7 +5907,7 @@ declare namespace cryptoFramework { /** * Indicates the specified parameters of private key. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5849,7 +5930,7 @@ declare namespace cryptoFramework { /** * Indicates the specified parameters of public key. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5872,7 +5953,7 @@ declare namespace cryptoFramework { /** * Indicates the specified parameters of keypair. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5899,7 +5980,7 @@ declare namespace cryptoFramework { * Provides a base interface for specifying asymmetric key parameters. * * @typedef AsyKeySpec - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5924,7 +6005,7 @@ declare namespace cryptoFramework { * Indicates the algorithm name of the asymmetric key object. * * @type { string } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5950,7 +6031,7 @@ declare namespace cryptoFramework { * Indicates the type of the specified parameters. * * @type { AsyKeySpecType } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -5980,7 +6061,7 @@ declare namespace cryptoFramework { * * @typedef DSACommonParamsSpec * @extends AsyKeySpec - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6005,7 +6086,7 @@ declare namespace cryptoFramework { * Indicates the DSA prime p. * * @type { bigint } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6031,7 +6112,7 @@ declare namespace cryptoFramework { * Indicates the DSA sub-prime q. * * @type { bigint } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6057,7 +6138,7 @@ declare namespace cryptoFramework { * Indicates the DSA base g. * * @type { bigint } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6087,7 +6168,7 @@ declare namespace cryptoFramework { * * @typedef DSAPubKeySpec * @extends AsyKeySpec - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6112,7 +6193,7 @@ declare namespace cryptoFramework { * Indicates the DSA common parameters. * * @type { DSACommonParamsSpec } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6138,7 +6219,7 @@ declare namespace cryptoFramework { * Indicates the DSA public key. * * @type { bigint } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6168,7 +6249,7 @@ declare namespace cryptoFramework { * * @typedef DSAKeyPairSpec * @extends AsyKeySpec - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6193,7 +6274,7 @@ declare namespace cryptoFramework { * Indicates the DSA common parameters. * * @type { DSACommonParamsSpec } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6219,7 +6300,7 @@ declare namespace cryptoFramework { * Indicates the DSA private key. * * @type { bigint } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6245,7 +6326,7 @@ declare namespace cryptoFramework { * Indicates the DSA public key. * * @type { bigint } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6272,7 +6353,7 @@ declare namespace cryptoFramework { * Specifies an elliptic curve finite field. * * @typedef ECField - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6300,7 +6381,7 @@ declare namespace cryptoFramework { * Currently, only Fp (elliptic curve prime finite field) is supported. * * @type { string } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6330,7 +6411,7 @@ declare namespace cryptoFramework { * * @typedef ECFieldFp * @extends ECField - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6355,7 +6436,7 @@ declare namespace cryptoFramework { * Indicates the prime p. * * @type { bigint } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6382,7 +6463,7 @@ declare namespace cryptoFramework { * Represents a point on an elliptic curve in affine coordinates. * * @typedef Point - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6407,7 +6488,7 @@ declare namespace cryptoFramework { * Indicates the affine x-coordinate. * * @type { bigint } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6433,7 +6514,7 @@ declare namespace cryptoFramework { * Indicates the affine y-coordinate. * * @type { bigint } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6463,7 +6544,7 @@ declare namespace cryptoFramework { * * @typedef ECCCommonParamsSpec * @extends AsyKeySpec - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6488,7 +6569,7 @@ declare namespace cryptoFramework { * Indicates an elliptic curve finite field. * * @type { ECField } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6514,7 +6595,7 @@ declare namespace cryptoFramework { * Indicates the first coefficient a of the elliptic curve. * * @type { bigint } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6540,7 +6621,7 @@ declare namespace cryptoFramework { * Indicates the second coefficient b of the elliptic curve. * * @type { bigint } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6566,7 +6647,7 @@ declare namespace cryptoFramework { * Indicates the base point g. * * @type { Point } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6592,7 +6673,7 @@ declare namespace cryptoFramework { * Indicates the order of the base point g. * * @type { bigint } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6618,7 +6699,7 @@ declare namespace cryptoFramework { * Indicates the cofactor h. * * @type { number } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6648,7 +6729,7 @@ declare namespace cryptoFramework { * * @typedef ECCPriKeySpec * @extends AsyKeySpec - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6673,7 +6754,7 @@ declare namespace cryptoFramework { * Indicates the ECC common parameters. * * @type { ECCCommonParamsSpec } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6699,7 +6780,7 @@ declare namespace cryptoFramework { * Indicates the private value of the ECC private key. * * @type { bigint } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6729,7 +6810,7 @@ declare namespace cryptoFramework { * * @typedef ECCPubKeySpec * @extends AsyKeySpec - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6754,7 +6835,7 @@ declare namespace cryptoFramework { * Indicates the ECC common parameters. * * @type { ECCCommonParamsSpec } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6780,7 +6861,7 @@ declare namespace cryptoFramework { * Indicates the public point of the ECC public key. * * @type { Point } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6810,7 +6891,7 @@ declare namespace cryptoFramework { * * @typedef ECCKeyPairSpec * @extends AsyKeySpec - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6835,7 +6916,7 @@ declare namespace cryptoFramework { * Indicates the ECC common parameters. * * @type { ECCCommonParamsSpec } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6861,7 +6942,7 @@ declare namespace cryptoFramework { * Indicates the private value of the ECC private key. * * @type { bigint } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6887,7 +6968,7 @@ declare namespace cryptoFramework { * Indicates the public point of the ECC public key. * * @type { Point } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6905,7 +6986,7 @@ declare namespace cryptoFramework { /** * Key utilities for ECC Algorithm. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6935,7 +7016,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 801 - this operation is not supported. * @throws { BusinessError } 17620001 - memory error. * @static - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6953,7 +7034,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. * @static - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6972,7 +7053,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. * @static - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -6994,7 +7075,7 @@ declare namespace cryptoFramework { * * @typedef DHCommonParamsSpec * @extends AsyKeySpec - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7012,7 +7093,7 @@ declare namespace cryptoFramework { * Indicates the prime p. * * @type { bigint } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7031,7 +7112,7 @@ declare namespace cryptoFramework { * Indicates the generator g. * * @type { bigint } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7050,7 +7131,7 @@ declare namespace cryptoFramework { * Indicates the byte length of the private key. * * @type { number } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7072,7 +7153,7 @@ declare namespace cryptoFramework { * * @typedef DHPriKeySpec * @extends AsyKeySpec - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7090,7 +7171,7 @@ declare namespace cryptoFramework { * Indicates the DH common parameters. * * @type { DHCommonParamsSpec } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7109,7 +7190,7 @@ declare namespace cryptoFramework { * Indicates the private value of the DH private key. * * @type { bigint } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7131,7 +7212,7 @@ declare namespace cryptoFramework { * * @typedef DHPubKeySpec * @extends AsyKeySpec - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7149,7 +7230,7 @@ declare namespace cryptoFramework { * Indicates the DH common parameters. * * @type { DHCommonParamsSpec } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7168,7 +7249,7 @@ declare namespace cryptoFramework { * Indicates the public value of the DH public key. * * @type { bigint } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7190,7 +7271,7 @@ declare namespace cryptoFramework { * * @typedef DHKeyPairSpec * @extends AsyKeySpec - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7208,7 +7289,7 @@ declare namespace cryptoFramework { * Indicates the DH common parameters. * * @type { DHCommonParamsSpec } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7227,7 +7308,7 @@ declare namespace cryptoFramework { * Indicates the private value of the DH private key. * * @type { bigint } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7246,7 +7327,7 @@ declare namespace cryptoFramework { * Indicates the public value of the DH public key. * * @type { bigint } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7264,7 +7345,7 @@ declare namespace cryptoFramework { /** * Key utilities for DH Algorithm. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7298,7 +7379,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. * @static - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7320,7 +7401,7 @@ declare namespace cryptoFramework { * * @typedef ED25519PriKeySpec * @extends AsyKeySpec - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7338,7 +7419,7 @@ declare namespace cryptoFramework { * Indicates the private value of the ED25519 private key. * * @type { bigint } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7360,7 +7441,7 @@ declare namespace cryptoFramework { * * @typedef ED25519PubKeySpec * @extends AsyKeySpec - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7378,7 +7459,7 @@ declare namespace cryptoFramework { * Indicates the public value of the ED25519 public key. * * @type { bigint } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7400,7 +7481,7 @@ declare namespace cryptoFramework { * * @typedef ED25519KeyPairSpec * @extends AsyKeySpec - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7418,7 +7499,7 @@ declare namespace cryptoFramework { * Indicates the private value of the ED25519 private key. * * @type { bigint } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7437,7 +7518,7 @@ declare namespace cryptoFramework { * Indicates the public value of the ED25519 public key. * * @type { bigint } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7459,7 +7540,7 @@ declare namespace cryptoFramework { * * @typedef X25519PriKeySpec * @extends AsyKeySpec - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7477,7 +7558,7 @@ declare namespace cryptoFramework { * Indicates the private value of the X25519 private key. * * @type { bigint } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7499,7 +7580,7 @@ declare namespace cryptoFramework { * * @typedef X25519PubKeySpec * @extends AsyKeySpec - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7517,7 +7598,7 @@ declare namespace cryptoFramework { * Indicates the public value of the X25519 public key. * * @type { bigint } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7539,7 +7620,7 @@ declare namespace cryptoFramework { * * @typedef X25519KeyPairSpec * @extends AsyKeySpec - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7557,7 +7638,7 @@ declare namespace cryptoFramework { * Indicates the private value of the X25519 private key. * * @type { bigint } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7576,7 +7657,7 @@ declare namespace cryptoFramework { * Indicates the public value of the X25519 public key. * * @type { bigint } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7606,7 +7687,7 @@ declare namespace cryptoFramework { * * @typedef RSACommonParamsSpec * @extends AsyKeySpec - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7631,7 +7712,7 @@ declare namespace cryptoFramework { * Indicates the modulus n. * * @type { bigint } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7661,7 +7742,7 @@ declare namespace cryptoFramework { * * @typedef RSAPubKeySpec * @extends AsyKeySpec - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7686,7 +7767,7 @@ declare namespace cryptoFramework { * Indicates the RSA common parameters. * * @type { RSACommonParamsSpec } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7712,7 +7793,7 @@ declare namespace cryptoFramework { * Indicates the public exponent e. * * @type { bigint } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7742,7 +7823,7 @@ declare namespace cryptoFramework { * * @typedef RSAKeyPairSpec * @extends AsyKeySpec - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7767,7 +7848,7 @@ declare namespace cryptoFramework { * Indicates the RSA common parameters. * * @type { RSACommonParamsSpec } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7793,7 +7874,7 @@ declare namespace cryptoFramework { * Indicates the private exponent d. * * @type { bigint } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7819,7 +7900,7 @@ declare namespace cryptoFramework { * Indicates the public exponent e. * * @type { bigint } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7846,7 +7927,7 @@ declare namespace cryptoFramework { * The AsyKeyGeneratorBySpec provides the ability to generate key with its associated parameters. * * @typedef AsyKeyGeneratorBySpec - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7880,7 +7961,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: Incorrect parameter types; * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7918,7 +7999,7 @@ declare namespace cryptoFramework { *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7933,7 +8014,7 @@ declare namespace cryptoFramework { *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -7968,7 +8049,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: Mandatory parameters are left unspecified; * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -8006,7 +8087,7 @@ declare namespace cryptoFramework { *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -8021,7 +8102,7 @@ declare namespace cryptoFramework { *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -8056,7 +8137,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 401 - invalid parameters. Possible causes: Incorrect parameter types; * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -8094,7 +8175,7 @@ declare namespace cryptoFramework { *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -8109,7 +8190,7 @@ declare namespace cryptoFramework { *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -8138,7 +8219,7 @@ declare namespace cryptoFramework { * * @type { string } * @readonly - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -8180,7 +8261,7 @@ declare namespace cryptoFramework { *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 801 - this operation is not supported. * @throws { BusinessError } 17620001 - memory error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Key.AsymKey * @crossplatform * @atomicservice * @since 12 @@ -8199,7 +8280,7 @@ declare namespace cryptoFramework { * Specifies the key derivation function parameters. * * @typedef KdfSpec - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Kdf * @crossplatform * @atomicservice * @since 12 @@ -8217,7 +8298,7 @@ declare namespace cryptoFramework { * Indicates the algorithm name of key derivation function. * * @type { string } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Kdf * @crossplatform * @atomicservice * @since 12 @@ -8239,7 +8320,7 @@ declare namespace cryptoFramework { * * @typedef PBKDF2Spec * @extends KdfSpec - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Kdf * @crossplatform * @atomicservice * @since 12 @@ -8257,7 +8338,7 @@ declare namespace cryptoFramework { * Indicates the password parameter of PBKDF2. * * @type { string | Uint8Array } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Kdf * @crossplatform * @atomicservice * @since 12 @@ -8276,7 +8357,7 @@ declare namespace cryptoFramework { * Indicates the salt parameter of PBKDF2. * * @type { Uint8Array } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Kdf * @crossplatform * @atomicservice * @since 12 @@ -8295,7 +8376,7 @@ declare namespace cryptoFramework { * Indicates the iteration number of PBKDF2. * * @type { number } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Kdf * @crossplatform * @atomicservice * @since 12 @@ -8314,7 +8395,7 @@ declare namespace cryptoFramework { * Indicates the byte length of output key of PBKDF2. * * @type { number } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Kdf * @crossplatform * @atomicservice * @since 12 @@ -8327,7 +8408,7 @@ declare namespace cryptoFramework { * * @typedef HKDFSpec * @extends KdfSpec - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Kdf * @crossplatform * @atomicservice * @since 12 @@ -8337,7 +8418,7 @@ declare namespace cryptoFramework { * Indicates the key parameter of HKDF. * * @type { string | Uint8Array } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Kdf * @crossplatform * @atomicservice * @since 12 @@ -8348,7 +8429,7 @@ declare namespace cryptoFramework { * Indicates the salt parameter of HKDF. * * @type { Uint8Array } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Kdf * @crossplatform * @atomicservice * @since 12 @@ -8359,7 +8440,7 @@ declare namespace cryptoFramework { * Indicates the info about the context of HKDF. * * @type { Uint8Array } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Kdf * @crossplatform * @atomicservice * @since 12 @@ -8370,7 +8451,7 @@ declare namespace cryptoFramework { * Indicates the byte length of output key of HKDF. * * @type { number } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Kdf * @crossplatform * @atomicservice * @since 12 @@ -8390,7 +8471,7 @@ declare namespace cryptoFramework { * The key derivation function object provides the ability to derive key with its associated parameters. * * @typedef Kdf - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Kdf * @crossplatform * @atomicservice * @since 12 @@ -8418,7 +8499,7 @@ declare namespace cryptoFramework { *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Kdf * @crossplatform * @atomicservice * @since 12 @@ -8447,7 +8528,7 @@ declare namespace cryptoFramework { *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Kdf * @crossplatform * @atomicservice * @since 12 @@ -8464,7 +8545,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17620002 - runtime error. * @throws { BusinessError } 17630001 - crypto operation error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Kdf * @crossplatform * @atomicservice * @since 12 @@ -8485,7 +8566,7 @@ declare namespace cryptoFramework { * * @type { string } * @readonly - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Kdf * @crossplatform * @atomicservice * @since 12 @@ -8515,7 +8596,7 @@ declare namespace cryptoFramework { *
2. Incorrect parameter types; 3. Parameter verification failed. * @throws { BusinessError } 801 - this operation is not supported. * @throws { BusinessError } 17620001 - memory error. - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Kdf * @crossplatform * @atomicservice * @since 12 @@ -8526,7 +8607,7 @@ declare namespace cryptoFramework { * Provides the interface for specifying detailed data in the SM2 ciphertext in ASN.1 format. * * @typedef SM2CipherTextSpec - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -8536,7 +8617,7 @@ declare namespace cryptoFramework { * Indicates the x coordinate, also known as C1x. * * @type { bigint } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -8547,7 +8628,7 @@ declare namespace cryptoFramework { * Indicates the y coordinate, also known as C1y. * * @type { bigint } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -8558,7 +8639,7 @@ declare namespace cryptoFramework { * Indicates the detailed ciphertext data, also known as C2. * * @type { Uint8Array } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -8569,7 +8650,7 @@ declare namespace cryptoFramework { * Indicates the hash data, also known as C3. * * @type { Uint8Array } - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -8580,7 +8661,7 @@ declare namespace cryptoFramework { /** * Utilities for SM2 crypto operations. * - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -8597,7 +8678,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. * @static - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 @@ -8615,7 +8696,7 @@ declare namespace cryptoFramework { * @throws { BusinessError } 17620001 - memory error. * @throws { BusinessError } 17630001 - crypto operation error. * @static - * @syscap SystemCapability.Security.CryptoFramework + * @syscap SystemCapability.Security.CryptoFramework.Cipher * @crossplatform * @atomicservice * @since 12 diff --git a/api/device-define/default.json b/api/device-define/default.json index 84db909de..222cbf594 100644 --- a/api/device-define/default.json +++ b/api/device-define/default.json @@ -191,6 +191,16 @@ "SystemCapability.Advertising.Ads", "SystemCapability.Security.CertificateManager", "SystemCapability.Security.CryptoFramework", + "SystemCapability.Security.CryptoFramework.Key", + "SystemCapability.Security.CryptoFramework.Key.SymKey", + "SystemCapability.Security.CryptoFramework.Key.AsymKey", + "SystemCapability.Security.CryptoFramework.Signature", + "SystemCapability.Security.CryptoFramework.Cipher", + "SystemCapability.Security.CryptoFramework.KeyAgreement", + "SystemCapability.Security.CryptoFramework.MessageDigest", + "SystemCapability.Security.CryptoFramework.Mac", + "SystemCapability.Security.CryptoFramework.Kdf", + "SystemCapability.Security.CryptoFramework.Rand", "SystemCapability.Security.Cert", "SystemCapability.BundleManager.BundleFramework.Core", "SystemCapability.BundleManager.BundleFramework.FreeInstall", diff --git a/api/device-define/tablet.json b/api/device-define/tablet.json index 84b84c3eb..165e36603 100644 --- a/api/device-define/tablet.json +++ b/api/device-define/tablet.json @@ -181,6 +181,16 @@ "SystemCapability.Advertising.Ads", "SystemCapability.Security.CertificateManager", "SystemCapability.Security.CryptoFramework", + "SystemCapability.Security.CryptoFramework.Key", + "SystemCapability.Security.CryptoFramework.Key.SymKey", + "SystemCapability.Security.CryptoFramework.Key.AsymKey", + "SystemCapability.Security.CryptoFramework.Signature", + "SystemCapability.Security.CryptoFramework.Cipher", + "SystemCapability.Security.CryptoFramework.KeyAgreement", + "SystemCapability.Security.CryptoFramework.MessageDigest", + "SystemCapability.Security.CryptoFramework.Mac", + "SystemCapability.Security.CryptoFramework.Kdf", + "SystemCapability.Security.CryptoFramework.Rand", "SystemCapability.Security.Cert", "SystemCapability.BundleManager.BundleFramework.Core", "SystemCapability.BundleManager.BundleFramework.FreeInstall", diff --git a/build-tools/api_check_plugin/code_style_rule.json b/build-tools/api_check_plugin/code_style_rule.json index 772ac08a6..9a757cd38 100644 --- a/build-tools/api_check_plugin/code_style_rule.json +++ b/build-tools/api_check_plugin/code_style_rule.json @@ -361,7 +361,17 @@ "SystemCapability.Graphics.Drawing", "SystemCapability.ResourceSchedule.SystemLoad", "SystemCapability.Ability.AppStartup", - "SystemCapability.MultimodalInput.Input.InfraredEmitter" + "SystemCapability.MultimodalInput.Input.InfraredEmitter", + "SystemCapability.Security.CryptoFramework.Key", + "SystemCapability.Security.CryptoFramework.Key.SymKey", + "SystemCapability.Security.CryptoFramework.Key.AsymKey", + "SystemCapability.Security.CryptoFramework.Signature", + "SystemCapability.Security.CryptoFramework.Cipher", + "SystemCapability.Security.CryptoFramework.KeyAgreement", + "SystemCapability.Security.CryptoFramework.MessageDigest", + "SystemCapability.Security.CryptoFramework.Mac", + "SystemCapability.Security.CryptoFramework.Kdf", + "SystemCapability.Security.CryptoFramework.Rand" ] }, "administrators": [ From 3486dbcb27409366f6b27cc08ac4892795d6cc4e Mon Sep 17 00:00:00 2001 From: lanming Date: Thu, 15 Aug 2024 19:48:43 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=8A=A0=E8=A7=A3=E5=AF=86=E7=AE=97?= =?UTF-8?q?=E6=B3=95=E5=BA=93=E6=A1=86=E6=9E=B6=E6=94=AF=E6=8C=81liteWeara?= =?UTF-8?q?ble?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lanming --- api/device-define/liteWearable.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/device-define/liteWearable.json b/api/device-define/liteWearable.json index 8aa63389e..a51545874 100644 --- a/api/device-define/liteWearable.json +++ b/api/device-define/liteWearable.json @@ -12,6 +12,9 @@ "SystemCapability.DistributedDataManager.Preferences.Core.Lite", "SystemCapability.Sensors.Sensor.Lite", "SystemCapability.Sensors.MiscDevice.Lite", - "SystemCapability.Communication.NetStack" + "SystemCapability.Communication.NetStack", + "SystemCapability.Security.CryptoFramework", + "SystemCapability.Security.CryptoFramework.MessageDigest", + "SystemCapability.Security.CryptoFramework.Rand" ] } From 08c4155c1b659c8f104f3f10ab37d1d3a2e0931e Mon Sep 17 00:00:00 2001 From: lanming Date: Fri, 16 Aug 2024 14:25:42 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E9=94=81=E5=B1=8F=E6=94=AF=E6=8C=81liteWea?= =?UTF-8?q?rable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lanming --- api/device-define/liteWearable.json | 1 + 1 file changed, 1 insertion(+) diff --git a/api/device-define/liteWearable.json b/api/device-define/liteWearable.json index a51545874..8f51d4ff4 100644 --- a/api/device-define/liteWearable.json +++ b/api/device-define/liteWearable.json @@ -13,6 +13,7 @@ "SystemCapability.Sensors.Sensor.Lite", "SystemCapability.Sensors.MiscDevice.Lite", "SystemCapability.Communication.NetStack", + "SystemCapability.MiscServices.ScreenLock", "SystemCapability.Security.CryptoFramework", "SystemCapability.Security.CryptoFramework.MessageDigest", "SystemCapability.Security.CryptoFramework.Rand"