mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-08 07:36:38 +00:00
!10336 【算法库适配层】提供PKCS8格式的ECC私钥基于RFC5208规范和RFC5915规范的转换能力
Merge pull request !10336 from jchx/master
This commit is contained in:
commit
4345b127fb
14
api/@ohos.security.cryptoFramework.d.ts
vendored
14
api/@ohos.security.cryptoFramework.d.ts
vendored
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user