1| 操作 | 旧版本 | 新版本 | d.ts文件 | 2| ---- | ------ | ------ | -------- | 3|新增|NA|类名:AsyKeyGeneratorBySpec;<br>方法or属性:generateKeyPair(callback: AsyncCallback\<KeyPair>): void;|@ohos.security.cryptoFramework.d.ts| 4|新增|NA|类名:AsyKeyGeneratorBySpec;<br>方法or属性:generateKeyPair(): Promise\<KeyPair>;|@ohos.security.cryptoFramework.d.ts| 5|新增|NA|类名:cert;<br>方法or属性:function createCertExtension(inStream: EncodingBlob, callback: AsyncCallback\<CertExtension>): void;|@ohos.security.cert.d.ts| 6|新增|NA|类名:cert;<br>方法or属性:function createCertExtension(inStream: EncodingBlob): Promise\<CertExtension>;|@ohos.security.cert.d.ts| 7|新增|NA|类名:CertItemType;<br>方法or属性:CERT_ITEM_TYPE_TBS = 0|@ohos.security.cert.d.ts| 8|新增|NA|类名:CertItemType;<br>方法or属性:CERT_ITEM_TYPE_PUBLIC_KEY = 1|@ohos.security.cert.d.ts| 9|新增|NA|类名:CertItemType;<br>方法or属性:CERT_ITEM_TYPE_ISSUER_UNIQUE_ID = 2|@ohos.security.cert.d.ts| 10|新增|NA|类名:CertItemType;<br>方法or属性:CERT_ITEM_TYPE_SUBJECT_UNIQUE_ID = 3|@ohos.security.cert.d.ts| 11|新增|NA|类名:CertItemType;<br>方法or属性:CERT_ITEM_TYPE_EXTENSIONS = 4|@ohos.security.cert.d.ts| 12|新增|NA|类名:ExtensionOidType;<br>方法or属性:EXTENSION_OID_TYPE_ALL = 0|@ohos.security.cert.d.ts| 13|新增|NA|类名:ExtensionOidType;<br>方法or属性:EXTENSION_OID_TYPE_CRITICAL = 1|@ohos.security.cert.d.ts| 14|新增|NA|类名:ExtensionOidType;<br>方法or属性:EXTENSION_OID_TYPE_UNCRITICAL = 2|@ohos.security.cert.d.ts| 15|新增|NA|类名:ExtensionEntryType;<br>方法or属性:EXTENSION_ENTRY_TYPE_ENTRY = 0|@ohos.security.cert.d.ts| 16|新增|NA|类名:ExtensionEntryType;<br>方法or属性:EXTENSION_ENTRY_TYPE_ENTRY_CRITICAL = 1|@ohos.security.cert.d.ts| 17|新增|NA|类名:ExtensionEntryType;<br>方法or属性:EXTENSION_ENTRY_TYPE_ENTRY_VALUE = 2|@ohos.security.cert.d.ts| 18|新增|NA|类名:X509Cert;<br>方法or属性:getCertSerialNumber(): bigint;|@ohos.security.cert.d.ts| 19|新增|NA|类名:X509Cert;<br>方法or属性:getItem(itemType: CertItemType): DataBlob;|@ohos.security.cert.d.ts| 20|新增|NA|类名:CertExtension;<br>方法or属性:getEncoded(): EncodingBlob;|@ohos.security.cert.d.ts| 21|新增|NA|类名:CertExtension;<br>方法or属性:getOidList(valueType: ExtensionOidType): DataArray;|@ohos.security.cert.d.ts| 22|新增|NA|类名:CertExtension;<br>方法or属性:getEntry(valueType: ExtensionEntryType, oid: DataBlob): DataBlob;|@ohos.security.cert.d.ts| 23|新增|NA|类名:CertExtension;<br>方法or属性:checkCA(): number;|@ohos.security.cert.d.ts| 24|新增|NA|类名:cryptoFramework;<br>方法or属性:function createAsyKeyGeneratorBySpec(asyKeySpec: AsyKeySpec): AsyKeyGeneratorBySpec;|@ohos.security.cryptoFramework.d.ts| 25|新增|NA|类名:PriKey;<br>方法or属性:getAsyKeySpec(itemType: AsyKeySpecItem): bigint \| string \| number;|@ohos.security.cryptoFramework.d.ts| 26|新增|NA|类名:PubKey;<br>方法or属性:getAsyKeySpec(itemType: AsyKeySpecItem): bigint \| string \| number;|@ohos.security.cryptoFramework.d.ts| 27|新增|NA|类名:Random;<br>方法or属性:generateRandomSync(len: number): DataBlob;|@ohos.security.cryptoFramework.d.ts| 28|新增|NA|类名:Random;<br>方法or属性:readonly algName: string;|@ohos.security.cryptoFramework.d.ts| 29|新增|NA|类名:AsyKeyGeneratorBySpec;<br>方法or属性:readonly algName: string;|@ohos.security.cryptoFramework.d.ts| 30|新增|NA|类名:CipherSpecItem;<br>方法or属性:OAEP_MD_NAME_STR = 100|@ohos.security.cryptoFramework.d.ts| 31|新增|NA|类名:CipherSpecItem;<br>方法or属性:OAEP_MGF_NAME_STR = 101|@ohos.security.cryptoFramework.d.ts| 32|新增|NA|类名:CipherSpecItem;<br>方法or属性:OAEP_MGF1_MD_STR = 102|@ohos.security.cryptoFramework.d.ts| 33|新增|NA|类名:CipherSpecItem;<br>方法or属性:OAEP_MGF1_PSRC_UINT8ARR = 103|@ohos.security.cryptoFramework.d.ts| 34|新增|NA|类名:SignSpecItem;<br>方法or属性:PSS_MD_NAME_STR = 100|@ohos.security.cryptoFramework.d.ts| 35|新增|NA|类名:SignSpecItem;<br>方法or属性:PSS_MGF_NAME_STR = 101|@ohos.security.cryptoFramework.d.ts| 36|新增|NA|类名:SignSpecItem;<br>方法or属性:PSS_MGF1_MD_STR = 102|@ohos.security.cryptoFramework.d.ts| 37|新增|NA|类名:SignSpecItem;<br>方法or属性:PSS_SALT_LEN_NUM = 103|@ohos.security.cryptoFramework.d.ts| 38|新增|NA|类名:SignSpecItem;<br>方法or属性:PSS_TRAILER_FIELD_NUM = 104|@ohos.security.cryptoFramework.d.ts| 39|新增|NA|类名:Cipher;<br>方法or属性:setCipherSpec(itemType: CipherSpecItem, itemValue: Uint8Array): void;|@ohos.security.cryptoFramework.d.ts| 40|新增|NA|类名:Cipher;<br>方法or属性:getCipherSpec(itemType: CipherSpecItem): string \| Uint8Array;|@ohos.security.cryptoFramework.d.ts| 41|新增|NA|类名:Sign;<br>方法or属性:setSignSpec(itemType: SignSpecItem, itemValue: number): void;|@ohos.security.cryptoFramework.d.ts| 42|新增|NA|类名:Sign;<br>方法or属性:getSignSpec(itemType: SignSpecItem): string \| number;|@ohos.security.cryptoFramework.d.ts| 43|新增|NA|类名:Verify;<br>方法or属性:setVerifySpec(itemType: SignSpecItem, itemValue: number): void;|@ohos.security.cryptoFramework.d.ts| 44|新增|NA|类名:Verify;<br>方法or属性:getVerifySpec(itemType: SignSpecItem): string \| number;|@ohos.security.cryptoFramework.d.ts| 45|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:DSA_P_BN = 101|@ohos.security.cryptoFramework.d.ts| 46|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:DSA_Q_BN = 102|@ohos.security.cryptoFramework.d.ts| 47|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:DSA_G_BN = 103|@ohos.security.cryptoFramework.d.ts| 48|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:DSA_SK_BN = 104|@ohos.security.cryptoFramework.d.ts| 49|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:DSA_PK_BN = 105|@ohos.security.cryptoFramework.d.ts| 50|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:ECC_FP_P_BN = 201|@ohos.security.cryptoFramework.d.ts| 51|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:ECC_A_BN = 202|@ohos.security.cryptoFramework.d.ts| 52|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:ECC_B_BN = 203|@ohos.security.cryptoFramework.d.ts| 53|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:ECC_G_X_BN = 204|@ohos.security.cryptoFramework.d.ts| 54|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:ECC_G_Y_BN = 205|@ohos.security.cryptoFramework.d.ts| 55|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:ECC_N_BN = 206|@ohos.security.cryptoFramework.d.ts| 56|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:ECC_H_NUM = 207|@ohos.security.cryptoFramework.d.ts| 57|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:ECC_SK_BN = 208|@ohos.security.cryptoFramework.d.ts| 58|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:ECC_PK_X_BN = 209|@ohos.security.cryptoFramework.d.ts| 59|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:ECC_PK_Y_BN = 210|@ohos.security.cryptoFramework.d.ts| 60|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:ECC_FIELD_TYPE_STR = 211|@ohos.security.cryptoFramework.d.ts| 61|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:ECC_FIELD_SIZE_NUM = 212|@ohos.security.cryptoFramework.d.ts| 62|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:ECC_CURVE_NAME_STR = 213|@ohos.security.cryptoFramework.d.ts| 63|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:RSA_N_BN = 301|@ohos.security.cryptoFramework.d.ts| 64|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:RSA_SK_BN = 302|@ohos.security.cryptoFramework.d.ts| 65|新增|NA|类名:AsyKeySpecItem;<br>方法or属性:RSA_PK_BN = 303|@ohos.security.cryptoFramework.d.ts| 66|新增|NA|类名:AsyKeySpecType;<br>方法or属性:COMMON_PARAMS_SPEC = 0|@ohos.security.cryptoFramework.d.ts| 67|新增|NA|类名:AsyKeySpecType;<br>方法or属性:PRIVATE_KEY_SPEC = 1|@ohos.security.cryptoFramework.d.ts| 68|新增|NA|类名:AsyKeySpecType;<br>方法or属性:PUBLIC_KEY_SPEC = 2|@ohos.security.cryptoFramework.d.ts| 69|新增|NA|类名:AsyKeySpecType;<br>方法or属性:KEY_PAIR_SPEC = 3|@ohos.security.cryptoFramework.d.ts| 70|新增|NA|类名:AsyKeySpec;<br>方法or属性:algName: string;|@ohos.security.cryptoFramework.d.ts| 71|新增|NA|类名:AsyKeySpec;<br>方法or属性:specType: AsyKeySpecType;|@ohos.security.cryptoFramework.d.ts| 72|新增|NA|类名:DSACommonParamsSpec;<br>方法or属性:p: bigint;|@ohos.security.cryptoFramework.d.ts| 73|新增|NA|类名:ECFieldFp;<br>方法or属性:p: bigint;|@ohos.security.cryptoFramework.d.ts| 74|新增|NA|类名:DSACommonParamsSpec;<br>方法or属性:q: bigint;|@ohos.security.cryptoFramework.d.ts| 75|新增|NA|类名:DSACommonParamsSpec;<br>方法or属性:g: bigint;|@ohos.security.cryptoFramework.d.ts| 76|新增|NA|类名:DSAPubKeySpec;<br>方法or属性:params: DSACommonParamsSpec;|@ohos.security.cryptoFramework.d.ts| 77|新增|NA|类名:DSAKeyPairSpec;<br>方法or属性:params: DSACommonParamsSpec;|@ohos.security.cryptoFramework.d.ts| 78|新增|NA|类名:DSAPubKeySpec;<br>方法or属性:pk: bigint;|@ohos.security.cryptoFramework.d.ts| 79|新增|NA|类名:DSAKeyPairSpec;<br>方法or属性:pk: bigint;|@ohos.security.cryptoFramework.d.ts| 80|新增|NA|类名:RSAPubKeySpec;<br>方法or属性:pk: bigint;|@ohos.security.cryptoFramework.d.ts| 81|新增|NA|类名:RSAKeyPairSpec;<br>方法or属性:pk: bigint;|@ohos.security.cryptoFramework.d.ts| 82|新增|NA|类名:DSAKeyPairSpec;<br>方法or属性:sk: bigint;|@ohos.security.cryptoFramework.d.ts| 83|新增|NA|类名:ECCPriKeySpec;<br>方法or属性:sk: bigint;|@ohos.security.cryptoFramework.d.ts| 84|新增|NA|类名:ECCKeyPairSpec;<br>方法or属性:sk: bigint;|@ohos.security.cryptoFramework.d.ts| 85|新增|NA|类名:RSAKeyPairSpec;<br>方法or属性:sk: bigint;|@ohos.security.cryptoFramework.d.ts| 86|新增|NA|类名:ECField;<br>方法or属性:fieldType: string;|@ohos.security.cryptoFramework.d.ts| 87|新增|NA|类名:Point;<br>方法or属性:x: bigint;|@ohos.security.cryptoFramework.d.ts| 88|新增|NA|类名:Point;<br>方法or属性:y: bigint;|@ohos.security.cryptoFramework.d.ts| 89|新增|NA|类名:ECCCommonParamsSpec;<br>方法or属性:field: ECField;|@ohos.security.cryptoFramework.d.ts| 90|新增|NA|类名:ECCCommonParamsSpec;<br>方法or属性:a: bigint;|@ohos.security.cryptoFramework.d.ts| 91|新增|NA|类名:ECCCommonParamsSpec;<br>方法or属性:b: bigint;|@ohos.security.cryptoFramework.d.ts| 92|新增|NA|类名:ECCCommonParamsSpec;<br>方法or属性:g: Point;|@ohos.security.cryptoFramework.d.ts| 93|新增|NA|类名:ECCCommonParamsSpec;<br>方法or属性:n: bigint;|@ohos.security.cryptoFramework.d.ts| 94|新增|NA|类名:RSACommonParamsSpec;<br>方法or属性:n: bigint;|@ohos.security.cryptoFramework.d.ts| 95|新增|NA|类名:ECCCommonParamsSpec;<br>方法or属性:h: number;|@ohos.security.cryptoFramework.d.ts| 96|新增|NA|类名:ECCPriKeySpec;<br>方法or属性:params: ECCCommonParamsSpec;|@ohos.security.cryptoFramework.d.ts| 97|新增|NA|类名:ECCPubKeySpec;<br>方法or属性:params: ECCCommonParamsSpec;|@ohos.security.cryptoFramework.d.ts| 98|新增|NA|类名:ECCKeyPairSpec;<br>方法or属性:params: ECCCommonParamsSpec;|@ohos.security.cryptoFramework.d.ts| 99|新增|NA|类名:ECCPubKeySpec;<br>方法or属性:pk: Point;|@ohos.security.cryptoFramework.d.ts| 100|新增|NA|类名:ECCKeyPairSpec;<br>方法or属性:pk: Point;|@ohos.security.cryptoFramework.d.ts| 101|新增|NA|类名:RSAPubKeySpec;<br>方法or属性:params: RSACommonParamsSpec;|@ohos.security.cryptoFramework.d.ts| 102|新增|NA|类名:RSAKeyPairSpec;<br>方法or属性:params: RSACommonParamsSpec;|@ohos.security.cryptoFramework.d.ts| 103|新增|NA|类名:AsyKeyGeneratorBySpec;<br>方法or属性:generatePriKey(callback: AsyncCallback\<PriKey>): void;|@ohos.security.cryptoFramework.d.ts| 104|新增|NA|类名:AsyKeyGeneratorBySpec;<br>方法or属性:generatePriKey(): Promise\<PriKey>;|@ohos.security.cryptoFramework.d.ts| 105|新增|NA|类名:AsyKeyGeneratorBySpec;<br>方法or属性:generatePubKey(callback: AsyncCallback\<PubKey>): void;|@ohos.security.cryptoFramework.d.ts| 106|新增|NA|类名:AsyKeyGeneratorBySpec;<br>方法or属性:generatePubKey(): Promise\<PubKey>;|@ohos.security.cryptoFramework.d.ts| 107|废弃版本有变化|类名:X509Cert;<br>方法or属性:getSerialNumber(): number;<br>旧版本信息:|类名:X509Cert;<br>方法or属性:getSerialNumber(): number;<br>新版本信息:10<br>代替接口: ohos.security.cert.X509Cert.getCertSerialNumber|@ohos.security.cert.d.ts| 108|新增(错误码)|类名:Key;<br>方法or属性:getEncoded(): DataBlob;<br>旧版本信息:|类名:Key;<br>方法or属性:getEncoded(): DataBlob;<br>新版本信息:801,17620001,17630001|@ohos.security.cryptoFramework.d.ts| 109|错误码有变化|类名:cryptoFramework;<br>方法or属性:function createAsyKeyGenerator(algName: string): AsyKeyGenerator;<br>旧版本信息:401|类名:cryptoFramework;<br>方法or属性:function createAsyKeyGenerator(algName: string): AsyKeyGenerator;<br>新版本信息:401,801,17620001|@ohos.security.cryptoFramework.d.ts| 110|错误码有变化|类名:cryptoFramework;<br>方法or属性:function createCipher(transformation: string): Cipher;<br>旧版本信息:401,801|类名:cryptoFramework;<br>方法or属性:function createCipher(transformation: string): Cipher;<br>新版本信息:401,801,17620001|@ohos.security.cryptoFramework.d.ts| 111|错误码有变化|类名:cryptoFramework;<br>方法or属性:function createSign(algName: string): Sign;<br>旧版本信息:401|类名:cryptoFramework;<br>方法or属性:function createSign(algName: string): Sign;<br>新版本信息:401,801,17620001|@ohos.security.cryptoFramework.d.ts| 112|错误码有变化|类名:cryptoFramework;<br>方法or属性:function createVerify(algName: string): Verify;<br>旧版本信息:401|类名:cryptoFramework;<br>方法or属性:function createVerify(algName: string): Verify;<br>新版本信息:401,801,17620001|@ohos.security.cryptoFramework.d.ts| 113|错误码有变化|类名:cryptoFramework;<br>方法or属性:function createKeyAgreement(algName: string): KeyAgreement;<br>旧版本信息:401|类名:cryptoFramework;<br>方法or属性:function createKeyAgreement(algName: string): KeyAgreement;<br>新版本信息:401,801,17620001|@ohos.security.cryptoFramework.d.ts| 114|错误码有变化|类名:AsyKeyGenerator;<br>方法or属性:generateKeyPair(callback: AsyncCallback\<KeyPair>): void;<br>旧版本信息:401,17620001|类名:AsyKeyGenerator;<br>方法or属性:generateKeyPair(callback: AsyncCallback\<KeyPair>): void;<br>新版本信息:401,17620001,17630001|@ohos.security.cryptoFramework.d.ts| 115|错误码有变化|类名:AsyKeyGenerator;<br>方法or属性:generateKeyPair(): Promise\<KeyPair>;<br>旧版本信息:401,17620001|类名:AsyKeyGenerator;<br>方法or属性:generateKeyPair(): Promise\<KeyPair>;<br>新版本信息:401,17620001,17630001|@ohos.security.cryptoFramework.d.ts| 116|错误码有变化|类名:AsyKeyGenerator;<br>方法or属性:convertKey(pubKey: DataBlob, priKey: DataBlob, callback: AsyncCallback\<KeyPair>): void;<br>旧版本信息:401,17620001|类名:AsyKeyGenerator;<br>方法or属性:convertKey(pubKey: DataBlob, priKey: DataBlob, callback: AsyncCallback\<KeyPair>): void;<br>新版本信息:401,17620001,17630001|@ohos.security.cryptoFramework.d.ts| 117|错误码有变化|类名:AsyKeyGenerator;<br>方法or属性:convertKey(pubKey: DataBlob, priKey: DataBlob): Promise\<KeyPair>;<br>旧版本信息:401,17620001|类名:AsyKeyGenerator;<br>方法or属性:convertKey(pubKey: DataBlob, priKey: DataBlob): Promise\<KeyPair>;<br>新版本信息:401,17620001,17630001|@ohos.security.cryptoFramework.d.ts| 118|type有变化|类名:PermissionUsedRequest;<br>方法or属性:tokenId?: number;<br>旧版本信息:number|类名:PermissionUsedRequest;<br>方法or属性:tokenId?: number;<br>新版本信息:?number|@ohos.privacyManager.d.ts| 119|type有变化|类名:PermissionUsedRequest;<br>方法or属性:isRemote?: boolean;<br>旧版本信息:boolean|类名:PermissionUsedRequest;<br>方法or属性:isRemote?: boolean;<br>新版本信息:?boolean|@ohos.privacyManager.d.ts| 120|type有变化|类名:PermissionUsedRequest;<br>方法or属性:deviceId?: string;<br>旧版本信息:string|类名:PermissionUsedRequest;<br>方法or属性:deviceId?: string;<br>新版本信息:?string|@ohos.privacyManager.d.ts| 121|type有变化|类名:PermissionUsedRequest;<br>方法or属性:bundleName?: string;<br>旧版本信息:string|类名:PermissionUsedRequest;<br>方法or属性:bundleName?: string;<br>新版本信息:?string|@ohos.privacyManager.d.ts| 122|type有变化|类名:PermissionUsedRequest;<br>方法or属性:permissionNames?: Array\<Permissions>;<br>旧版本信息:Array\<Permissions>|类名:PermissionUsedRequest;<br>方法or属性:permissionNames?: Array\<Permissions>;<br>新版本信息:?Array\<Permissions>|@ohos.privacyManager.d.ts| 123|type有变化|类名:PermissionUsedRequest;<br>方法or属性:beginTime?: number;<br>旧版本信息:number|类名:PermissionUsedRequest;<br>方法or属性:beginTime?: number;<br>新版本信息:?number|@ohos.privacyManager.d.ts| 124|type有变化|类名:PermissionUsedRequest;<br>方法or属性:endTime?: number;<br>旧版本信息:number|类名:PermissionUsedRequest;<br>方法or属性:endTime?: number;<br>新版本信息:?number|@ohos.privacyManager.d.ts| 125|函数有变化|类名:PermissionUsedRequest;<br>方法or属性:tokenId: number;|类名:PermissionUsedRequest;<br>方法or属性:tokenId?: number;|@ohos.privacyManager.d.ts| 126|函数有变化|类名:PermissionUsedRequest;<br>方法or属性:isRemote: boolean;|类名:PermissionUsedRequest;<br>方法or属性:isRemote?: boolean;|@ohos.privacyManager.d.ts| 127|函数有变化|类名:PermissionUsedRequest;<br>方法or属性:deviceId: string;|类名:PermissionUsedRequest;<br>方法or属性:deviceId?: string;|@ohos.privacyManager.d.ts| 128|函数有变化|类名:PermissionUsedRequest;<br>方法or属性:bundleName: string;|类名:PermissionUsedRequest;<br>方法or属性:bundleName?: string;|@ohos.privacyManager.d.ts| 129|函数有变化|类名:PermissionUsedRequest;<br>方法or属性:permissionNames: Array\<Permissions>;|类名:PermissionUsedRequest;<br>方法or属性:permissionNames?: Array\<Permissions>;|@ohos.privacyManager.d.ts| 130|函数有变化|类名:PermissionUsedRequest;<br>方法or属性:beginTime: number;|类名:PermissionUsedRequest;<br>方法or属性:beginTime?: number;|@ohos.privacyManager.d.ts| 131|函数有变化|类名:PermissionUsedRequest;<br>方法or属性:endTime: number;|类名:PermissionUsedRequest;<br>方法or属性:endTime?: number;|@ohos.privacyManager.d.ts| 132