!10336 【算法库适配层】提供PKCS8格式的ECC私钥基于RFC5208规范和RFC5915规范的转换能力

Merge pull request !10336 from jchx/master
This commit is contained in:
openharmony_ci 2024-04-01 08:50:46 +00:00 committed by Gitee
commit 4345b127fb
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -586,6 +586,20 @@ declare namespace cryptoFramework {
* @since 11
*/
getAsyKeySpec(itemType: AsyKeySpecItem): bigint | string | number;
/**
* Encode the private key object to binary data in DER format.
*
* @param { string } format - indicates the encoding format.
* @returns { DataBlob } the binary data of the key object in DER format.
* @throws { BusinessError } 401 - invalid parameters.
* @throws { BusinessError } 17620001 - memory error.
* @throws { BusinessError } 17630001 - crypto operation error.
* @syscap SystemCapability.Security.CryptoFramework
* @crossplatform
* @since 12
*/
getEncodedDer(format: string): DataBlob;
}
/**