/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_5.0.0.35/ |
H A D | changelogs-arkts.md | 30 …oder | decodeWithStream(input: Uint8Array, options?: DecodeWithStreamOptions): string; | decodeTo… 47 let result = new Uint8Array(6); 87 | util.Base64Helper | encodeToStringSync(src: Uint8Array, options?: Type): string; | 9 | 88 | util.Base64Helper | encode(src: Uint8Array, options?: Type): Promise<Uint8Array>; | 9 | 89 | util.Base64Helper | encodeSync(src: Uint8Array, options?: Type): Uint8Array; | 9 | 91 | util.Base64Helper | decode(src: Uint8Array \| string, options?: Type): Promise<Uint8Array>; | 9 … 93 | util.StringDecoder | write(chunk: string \| Uint8Array): string; | 12 | 94 | util.StringDecoder | end(chunk?: string \| Uint8Array): string; | 12 | 105 | util.Base64Helper | encode(src: Uint8Array, options?: Type): Promise<Uint8Array>; | 参数异常由undefin… 106 | util.Base64Helper | encodeSync(src: Uint8Array, options?: Type): Uint8Array; | 参数异常由undefined变更为… [all …]
|
/ohos5.0/docs/zh-cn/application-dev/security/AssetStoreKit/ |
H A D | asset-js-query-auth.md | 23 …| ALIAS | 类型为Uint8Array,长度为1-256字节。 | 可选 | 关键资产别名,每… 75 | AUTH_CHALLENGE | 类型为Uint8Array,长度为32字节。 | 必选 | 用户认证的挑战值。 | 91 function stringToArray(str: string): Uint8Array { 96 function arrayToString(arr: Uint8Array): string { 102 async function userAuthenticate(challenge: Uint8Array): Promise<Uint8Array> { 132 function preQueryAsset(): Promise<Uint8Array> { 137 asset.preQuery(query).then((challenge: Uint8Array) => { 150 async function postQueryAsset(challenge: Uint8Array) { 164 preQueryAsset().then(async (challenge: Uint8Array) => { 167 let authToken: Uint8Array = await userAuthenticate(challenge); [all …]
|
H A D | asset-js-update.md | 17 …| ALIAS | 类型为Uint8Array,长度为1-256字节。 | 必选 | 关键资产别名,每… 25 …| DATA_LABEL_CRITICAL_3 | 类型为Uint8Array,长度为1-2048字节。 | 可选 | 关键资产附属信息,内容由… 31 …| DATA_LABEL_NORMAL_LOCAL_1<sup>12+</sup> | 类型为Uint8Array,长度为1-2048字节。 | 可选 | 关键资产附属的本地信息,内容由业务自定义… 32 …| DATA_LABEL_NORMAL_LOCAL_2<sup>12+</sup> | 类型为Uint8Array,长度为1-2048字节。 | 可选 | 关键资产附属的本地信息,内容由业务自定义… 33 …| DATA_LABEL_NORMAL_LOCAL_3<sup>12+</sup> | 类型为Uint8Array,长度为1-2048字节。 | 可选 | 关键资产附属的本地信息,内容由业务自定义… 34 …| DATA_LABEL_NORMAL_LOCAL_4<sup>12+</sup> | 类型为Uint8Array,长度为1-2048字节。 | 可选 | 关键资产附属的本地信息,内容由业务自定义… 45 …| DATA_LABEL_NORMAL_LOCAL_1<sup>12+</sup> | 类型为Uint8Array,长度为1-2048字节。 | 可选 | 关键资产附属的本地信息,内容由业务自定义… 46 …| DATA_LABEL_NORMAL_LOCAL_2<sup>12+</sup> | 类型为Uint8Array,长度为1-2048字节。 | 可选 | 关键资产附属的本地信息,内容由业务自定义… 47 …| DATA_LABEL_NORMAL_LOCAL_3<sup>12+</sup> | 类型为Uint8Array,长度为1-2048字节。 | 可选 | 关键资产附属的本地信息,内容由业务自定义… 48 …| DATA_LABEL_NORMAL_LOCAL_4<sup>12+</sup> | 类型为Uint8Array,长度为1-2048字节。 | 可选 | 关键资产附属的本地信息,内容由业务自定义… [all …]
|
H A D | asset-js-remove.md | 15 | ALIAS | 类型为Uint8Array,长度为1-256字节。 | 可选 | 关键资产别名,每条… 21 | DATA_LABEL_CRITICAL_1 | 类型为Uint8Array,长度为1-2048字节。 | 可选 | 关键资产附属信息,内容由… 22 | DATA_LABEL_CRITICAL_2 | 类型为Uint8Array,长度为1-2048字节。 | 可选 | 关键资产附属信息,内容由… 23 | DATA_LABEL_CRITICAL_3 | 类型为Uint8Array,长度为1-2048字节。 | 可选 | 关键资产附属信息,内容由… 24 | DATA_LABEL_CRITICAL_4 | 类型为Uint8Array,长度为1-2048字节。 | 可选 | 关键资产附属信息,内容由… 25 | DATA_LABEL_NORMAL_1 | 类型为Uint8Array,长度为1-2048字节。 | 可选 | 关键资产附属信息,内容由… 29 | DATA_LABEL_NORMAL_LOCAL_1<sup>12+</sup> | 类型为Uint8Array,长度为1-2048字节。 | 可选 | 关键资产附属的本地信息,内容由业务自定义且… 30 | DATA_LABEL_NORMAL_LOCAL_2<sup>12+</sup> | 类型为Uint8Array,长度为1-2048字节。 | 可选 | 关键资产附属的本地信息,内容由业务自定义且… 31 | DATA_LABEL_NORMAL_LOCAL_3<sup>12+</sup> | 类型为Uint8Array,长度为1-2048字节。 | 可选 | 关键资产附属的本地信息,内容由业务自定义且… 32 | DATA_LABEL_NORMAL_LOCAL_4<sup>12+</sup> | 类型为Uint8Array,长度为1-2048字节。 | 可选 | 关键资产附属的本地信息,内容由业务自定义且… [all …]
|
H A D | asset-js-add.md | 15 | SECRET | 类型为Uint8Array,长度为1-1024字节。 | 必选 | 关键资产明文。 … 16 | ALIAS | 类型为Uint8Array,长度为1-256字节。 | 必选 | 关键资产别名,每条… 22 | DATA_LABEL_CRITICAL_1 | 类型为Uint8Array,长度为1-2048字节。 | 可选 | 关键资产附属信息,内容… 23 | DATA_LABEL_CRITICAL_2 | 类型为Uint8Array,长度为1-2048字节。 | 可选 | 关键资产附属信息,内容由业… 24 | DATA_LABEL_CRITICAL_3 | 类型为Uint8Array,长度为1-2048字节。 | 可选 | 关键资产附属信息,内容由… 25 | DATA_LABEL_CRITICAL_4 | 类型为Uint8Array,长度为1-2048字节。 | 可选 | 关键资产附属信息,内容由… 30 | DATA_LABEL_NORMAL_LOCAL_1<sup>12+</sup> | 类型为Uint8Array,长度为1-2048字节。 | 可选 | 关键资产附属的本地信息,内容由业务自定义且… 31 | DATA_LABEL_NORMAL_LOCAL_2<sup>12+</sup> | 类型为Uint8Array,长度为1-2048字节。 | 可选 | 关键资产附属的本地信息,内容由业务自定义且… 32 | DATA_LABEL_NORMAL_LOCAL_3<sup>12+</sup> | 类型为Uint8Array,长度为1-2048字节。 | 可选 | 关键资产附属的本地信息,内容由业务自定义且… 33 | DATA_LABEL_NORMAL_LOCAL_4<sup>12+</sup> | 类型为Uint8Array,长度为1-2048字节。 | 可选 | 关键资产附属的本地信息,内容由业务自定义且… [all …]
|
H A D | asset-js-query.md | 14 | ALIAS | 类型为Uint8Array,长度为1-256字节。 | 可选 | 关键资产别名,每条… 20 | DATA_LABEL_CRITICAL_1 | 类型为Uint8Array,长度为1-2048字节。 | 可选 | 关键资产附属信息,内容由… 28 | DATA_LABEL_NORMAL_LOCAL_1<sup>12+</sup> | 类型为Uint8Array,长度为1-2048字节。 | 可选 | 关键资产附属的本地信息,内容由业务自定义且… 29 | DATA_LABEL_NORMAL_LOCAL_2<sup>12+</sup> | 类型为Uint8Array,长度为1-2048字节。 | 可选 | 关键资产附属的本地信息,内容由业务自定义且… 30 | DATA_LABEL_NORMAL_LOCAL_3<sup>12+</sup> | 类型为Uint8Array,长度为1-2048字节。 | 可选 | 关键资产附属的本地信息,内容由业务自定义且… 31 | DATA_LABEL_NORMAL_LOCAL_4<sup>12+</sup> | 类型为Uint8Array,长度为1-2048字节。 | 可选 | 关键资产附属的本地信息,内容由业务自定义且… 57 function stringToArray(str: string): Uint8Array { 62 function arrayToString(arr: Uint8Array): string { 75 let secret: Uint8Array = res[i].get(asset.Tag.SECRET) as Uint8Array; 97 function stringToArray(str: string): Uint8Array { [all …]
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_5.0.0.35/ |
H A D | changelogs-arkts.md | 30 …oder | decodeWithStream(input: Uint8Array, options?: DecodeWithStreamOptions): string; | decodeTo… 47 let result = new Uint8Array(6); 87 | util.Base64Helper | encodeToStringSync(src: Uint8Array, options?: Type): string; | 9 | 88 | util.Base64Helper | encode(src: Uint8Array, options?: Type): Promise\<Uint8Array>; | 9 | 89 | util.Base64Helper | encodeSync(src: Uint8Array, options?: Type): Uint8Array; | 9 | 91 | util.Base64Helper | decode(src: Uint8Array \| string, options?: Type): Promise\<Uint8Array>; | 9 … 93 | util.StringDecoder | write(chunk: string \| Uint8Array): string; | 12 | 94 | util.StringDecoder | end(chunk?: string \| Uint8Array): string; | 12 | 105 | util.Base64Helper | encode(src: Uint8Array, options?: Type): Promise\<Uint8Array>; | The error co… 106 | util.Base64Helper | encodeSync(src: Uint8Array, options?: Type): Uint8Array; | The error code in… [all …]
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_5.0.0.31/ |
H A D | changelogs-arkcompiler.md | 13 以Uint8Array为例,变更前,map函数的callbackFn声明无返回值,导致转换后的数据丢失,引起开发者使用上的困惑。 14 - map方法的回调函数声明为`map(callbackFn: TypedArrayForEachCallback<number, Uint8Array>): Uint8Array;` 30 // 创建一个Uint8Array 31 let uint8: collections.Uint8Array = new collections.Uint8Array(arr); 33 // 情况一:不能完成map功能:callbackFn无返回值,map函数返回新的collections.Uint8Array 37 // 情况二:能完成map功能:callbackFn返回map后的元素值,但类型为string,map函数返回新的collections.Uint8Array 41 // 情况三:能完成map功能:callbackFn返回map后的元素值,map函数返回新的collections.Uint8Array 56 // 创建一个Uint8Array 57 let uint8: collections.Uint8Array = new collections.Uint8Array(arr); 59 // 情况一:不能完成map功能:callbackFn无返回值,map函数返回新的collections.Uint8Array [all …]
|
/ohos5.0/docs/zh-cn/application-dev/security/DeviceCertificateKit/ |
H A D | certManager-guidelines.md | 32 | certificateManager | installPrivateCertificate(keystore: Uint8Array, keystorePwd: string, … 33 | certificateManager | installPrivateCertificate(keystore: Uint8Array, keystorePwd: string, … 40 | certificateManager | update(handle: Uint8Array, data: Uint8Array, callback: AsyncCallback\… 41 | certificateManager | update(handle: Uint8Array, data: Uint8Array) : Promise\<void> | 使用pro… 42 | certificateManager | finish(handle: Uint8Array, callback: AsyncCallback\<CMResult>) : void… 43 | certificateManager | finish(handle: Uint8Array, signature: Uint8Array, callback: AsyncCall… 44 | certificateManager | finish(handle: Uint8Array, signature?: Uint8Array) : Promise\<CMResul… 45 | certificateManager | abort(handle: Uint8Array, callback: AsyncCallback\<void>) : void … 46 | certificateManager | abort(handle: Uint8Array) : Promise\<void> | 使用promise方式中止签名、验证操作 | 63 let keystore: Uint8Array = new Uint8Array([ [all …]
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_5.0.0.43/ |
H A D | changelogs-arkts.md | 11 StringDecoder对于入参Uint8Array中存在元素0的情况,无法解码出Uint8Array中元素0后数据,在元素0位置截断,导致获取不到完整的解码数据。 18 对于存在元素0的Uint8Array对象进行编码时,数据不完整。对解码出的值进行编码时,无法正常恢复为原始Uint8Array。 21 对存在元素0的Uint8Array对象,正确进行解码,解码数据完整。 35 write(chunk: string | Uint8Array): string; 37 end(chunk?: string | Uint8Array): string; 41 变更描述:Uint8Array中存在元素0的情况,无需适配,属于问题修复。 50 let input = new Uint8Array([0xE4, 0xBD, 0xA0, 0, 0xE5, 0xA5, 0xBD]);
|
/ohos5.0/drivers/peripheral/user_auth/hdi_service/utils/src/ |
H A D | attribute.c | 78 Uint8Array *values[ATTRIBUTE_LEN]; 127 IAM_STATIC ResultCode ReadDataFromMsg(const Uint8Array msg, uint32_t *readIndex, Uint8Array *retDat… in ReadDataFromMsg() 162 IAM_STATIC ResultCode WriteDataToMsg(Uint8Array *msg, uint32_t *writeIndex, const Uint8Array data) in WriteDataToMsg() 196 const Uint8Array *readBuffer) in ParseAttributeSerializedMsgInner() 209 Uint8Array readData = { readBuffer->data, length }; in ParseAttributeSerializedMsgInner() 224 Uint8Array *readBuffer = CreateUint8ArrayBySize(MAX_EXECUTOR_MSG_LEN); in ParseAttributeSerializedMsg() 236 ResultCode ParseMultiDataSerializedMsg(const Uint8Array msg, Uint8Array *subMsgData, int *subMsgSiz… in ParseMultiDataSerializedMsg() 273 Attribute *CreateAttributeFromSerializedMsg(const Uint8Array msg) in CreateAttributeFromSerializedMsg() 302 Uint8Array *array = attribute->values[i]; in GetAttributeSerializedMsg() 502 ResultCode GetMultiDataSerializedMsg(Uint8Array *sourceArrayMsg, uint32_t size, Uint8Array *retMsg) in GetMultiDataSerializedMsg() [all …]
|
/ohos5.0/drivers/peripheral/user_auth/hdi_service/coauth/src/ |
H A D | executor_message.c | 36 IAM_STATIC ResultCode SignData(const Uint8Array *dataTlv, Uint8Array *signDataTlv, SignParam signPa… in SignData() 154 IAM_STATIC ResultCode Ed25519VerifyData(uint64_t scheduleId, Uint8Array dataTlv, Uint8Array signTlv) in Ed25519VerifyData() 371 Uint8Array msg = { tlv->buf, tlv->contentSize }; in CreateExecutorResultInfo() 690 …ResultCode GetRemoteExecutorInfoInner(Attribute *attribute, Uint8Array *authAttrs, Uint8Array *sub… in GetRemoteExecutorInfoInner() 704 IAM_STATIC ResultCode GetRemoteExecutorInfo(const Buffer *msg, Uint8Array peerUdid, Uint8Array *sub… in GetRemoteExecutorInfo() 728 Uint8Array subMsg = subMsgs[i]; in CheckRemoteExecutorInfoInner() 753 Uint8Array subMsgs[MAX_SUB_MSG_NUM] = {0}; in CheckRemoteExecutorInfo() 771 const Uint8Array challenge, Attribute *attribute) in SetExecutorCollectMsgToAttribute() 973 Uint8Array msg = { tlv->buf, tlv->contentSize }; in CreateScheduleInfo() 1034 Uint8Array msg = { tlv->buf, tlv->contentSize }; in CreateAuthResultInfo() [all …]
|
/ohos5.0/drivers/peripheral/pin_auth/hdi_service/common/src/ |
H A D | attribute.c | 59 Uint8Array *values[ATTRIBUTE_LEN]; 108 IAM_STATIC ResultCode ReadDataFromMsg(const Uint8Array msg, uint32_t *readIndex, Uint8Array *retDat… in ReadDataFromMsg() 132 Uint8Array uint8Data = { (uint8_t *)&netOrderValue, sizeof(netOrderValue) }; in ReadUint32FromMsg() 143 IAM_STATIC ResultCode WriteDataToMsg(Uint8Array *msg, uint32_t *writeIndex, const Uint8Array data) in WriteDataToMsg() 193 const Uint8Array *readBuffer) in ParseAttributeSerializedMsgInner() 212 Uint8Array readData = { readBuffer->data, length }; in ParseAttributeSerializedMsgInner() 233 Uint8Array *readBuffer = CreateUint8ArrayBySize(MAX_EXECUTOR_MSG_LEN); in ParseAttributeSerializedMsg() 254 Attribute *CreateAttributeFromSerializedMsg(const Uint8Array msg) in CreateAttributeFromSerializedMsg() 283 Uint8Array *array = attribute->values[i]; in GetAttributeSerializedMsg() 324 Uint8Array uint32Data = { (uint8_t *)&netOrderValue, sizeof(netOrderValue) }; in GetAttributeUint32() [all …]
|
/ohos5.0/drivers/peripheral/user_auth/hdi_service/utils/inc/ |
H A D | c_array.h | 31 typedef struct Uint8Array { struct 34 } Uint8Array; argument 41 inline bool Uint8ArrayIsSame(const Uint8Array array1, const Uint8Array array2) in Uint8ArrayIsSame() 52 void DestroyUint8Array(Uint8Array **array); 54 Uint8Array *CreateUint8ArrayBySize(uint32_t size); 55 Uint8Array *CreateUint8ArrayByData(const uint8_t *data, uint32_t len);
|
H A D | attribute.h | 108 Attribute *CreateAttributeFromSerializedMsg(const Uint8Array msg); 111 ResultCode GetAttributeSerializedMsg(const Attribute *attribute, Uint8Array *retMsg); 119 ResultCode GetAttributeUint8Array(const Attribute *attribute, AttributeKey key, Uint8Array *retData… 120 ResultCode SetAttributeUint8Array(Attribute *attribute, AttributeKey key, const Uint8Array data); 124 ResultCode ParseMultiDataSerializedMsg(const Uint8Array msg, Uint8Array *subMsgData, int *subMsgSiz… 125 ResultCode GetMultiDataSerializedMsg(Uint8Array *sourceArrayMsg, uint32_t size, Uint8Array *retMsg);
|
/ohos5.0/docs/en/application-dev/security/AssetStoreKit/ |
H A D | asset-js-query-auth.md | 23 …| ALIAS | Type: Uint8Array<br>Length: 1-256 bytes | No … 75 …| AUTH_CHALLENGE | Type: Uint8Array<br>Length: 32 bytes| Yes | Challenge for the user auth… 91 function stringToArray(str: string): Uint8Array { 96 function arrayToString(arr: Uint8Array): string { 102 async function userAuthenticate(challenge: Uint8Array): Promise<Uint8Array> { 132 function preQueryAsset(): Promise<Uint8Array> { 137 asset.preQuery(query).then((challenge: Uint8Array) => { 150 async function postQueryAsset(challenge: Uint8Array) { 164 preQueryAsset().then(async (challenge: Uint8Array) => { 167 let authToken: Uint8Array = await userAuthenticate(challenge); [all …]
|
H A D | asset-js-update.md | 17 …| ALIAS | Type: Uint8Array<br>Length: 1-256 bytes | Yes … 31 …| DATA_LABEL_NORMAL_LOCAL_1<sup>12+</sup> | Type: Uint8Array<br>Length: 1-2048 bytes| No| Local at… 32 …| DATA_LABEL_NORMAL_LOCAL_2<sup>12+</sup> | Type: Uint8Array<br>Length: 1-2048 bytes| No| Local at… 33 …| DATA_LABEL_NORMAL_LOCAL_3<sup>12+</sup> | Type: Uint8Array<br>Length: 1-2048 bytes| No| Local at… 34 …| DATA_LABEL_NORMAL_LOCAL_4<sup>12+</sup> | Type: Uint8Array<br>Length: 1-2048 bytes| No| Local at… 41 …| SECRET | Type: Uint8Array<br>Length: 1-1024 bytes | No … 46 …| DATA_LABEL_NORMAL_LOCAL_1<sup>12+</sup> | Type: Uint8Array<br>Length: 1-2048 bytes| No| Local at… 47 …| DATA_LABEL_NORMAL_LOCAL_2<sup>12+</sup> | Type: Uint8Array<br>Length: 1-2048 bytes| No| Local at… 48 …| DATA_LABEL_NORMAL_LOCAL_3<sup>12+</sup> | Type: Uint8Array<br>Length: 1-2048 bytes| No| Local at… 49 …| DATA_LABEL_NORMAL_LOCAL_4<sup>12+</sup> | Type: Uint8Array<br>Length: 1-2048 bytes| No| Local in… [all …]
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-device-certificate-kit/ |
H A D | js-apis-certManager.md | 204 let keystore: Uint8Array = new Uint8Array([ 265 let keystore: Uint8Array = new Uint8Array([ 626 let cmHandle: Uint8Array = new Uint8Array([ 629 let srcData: Uint8Array = new Uint8Array([ 684 let cmHandle: Uint8Array = new Uint8Array([ 687 let srcData: Uint8Array = new Uint8Array([ 733 let cmHandle: Uint8Array = new Uint8Array([ 787 let cmHandle: Uint8Array = new Uint8Array([ 790 let signRes: Uint8Array = new Uint8Array([ 845 let cmHandle: Uint8Array = new Uint8Array([ [all …]
|
/ohos5.0/docs/zh-cn/application-dev/connectivity/bluetooth/ |
H A D | ble-development-guide.md | 71 let manufactureValueBuffer = new Uint8Array(4); 76 let serviceValueBuffer = new Uint8Array(4); 215 let advData = new Uint8Array(data); 227 let serviceDatas: Record<string, Uint8Array> = {}; 228 let manufactureSpecificDatas: Record<number, Uint8Array> = {}; 293 advData: Uint8Array, serviceUuids: string[]) { 303 advData: Uint8Array, serviceSolicitationUuids: string[]) { 335 advData: Uint8Array, serviceDatas: Record<string, Uint8Array>) { 342 advData: Uint8Array, manufactureSpecificDatas: Record<number, Uint8Array>) { 352 let manufactureData: Uint8Array = new Uint8Array([1, 2, 3, 4]); [all …]
|
/ohos5.0/commonlibrary/ets_utils/js_util_module/stream/src/ |
H A D | stream_js.ts | 483 dataCallback: (data: { data: string | Uint8Array }): void => { 643 let bufferArr: Uint8Array; 647 if (typeof chunk === 'string' || chunk instanceof Uint8Array) { 652 } else if (chunk instanceof Uint8Array) { 900 if (typeof chunk !== 'string' && !(chunk instanceof Uint8Array)) { 915 if (chunk instanceof Uint8Array) { 926 private getChunkLength(chunk: string | Uint8Array): number { 927 if (chunk instanceof Uint8Array) { 1529 if (chunk instanceof Uint8Array) { 1537 this.doFlush?.((...args: (string | Uint8Array)[]) => { [all …]
|
/ohos5.0/docs/zh-cn/application-dev/security/CryptoArchitectureKit/ |
H A D | crypto-rsa-asym-encrypt-decrypt-pkcs1.md | 56 async function genKeyPairByData(pubKeyData: Uint8Array, priKeyData: Uint8Array) { 65 …let pkData = new Uint8Array([48, 129, 159, 48, 13, 6, 9, 42, 134, 72, 134, 247, 13, 1, 1, 1, 5, 0,… 66 …let skData = new Uint8Array([48, 130, 2, 119, 2, 1, 0, 48, 13, 6, 9, 42, 134, 72, 134, 247, 13, 1,… 71 // 把字符串按utf-8解码为Uint8Array 72 …let plainText: cryptoFramework.DataBlob = { data: new Uint8Array(buffer.from(message, 'utf-8').buf… 77 // 把Uint8Array按utf-8编码为字符串 106 function genKeyPairByData(pubKeyData: Uint8Array, priKeyData: Uint8Array) { 115 …let pkData = new Uint8Array([48, 129, 159, 48, 13, 6, 9, 42, 134, 72, 134, 247, 13, 1, 1, 1, 5, 0,… 121 // 把字符串按utf-8解码为Uint8Array 122 …let plainText: cryptoFramework.DataBlob = { data: new Uint8Array(buffer.from(message, 'utf-8').buf… [all …]
|
H A D | crypto-sm2-asym-encrypt-decrypt.md | 57 async function genKeyPairByData(pubKeyData: Uint8Array, priKeyData: Uint8Array) { 66 …let pkData = new Uint8Array([48, 89, 48, 19, 6, 7, 42, 134, 72, 206, 61, 2, 1, 6, 8, 42, 129, 28, … 67 …let skData = new Uint8Array([48, 49, 2, 1, 1, 4, 32, 54, 41, 239, 240, 63, 188, 134, 113, 31, 102,… 72 // 把字符串按utf-8解码为Uint8Array 73 …let plainText: cryptoFramework.DataBlob = { data: new Uint8Array(buffer.from(message, 'utf-8').buf… 78 // 把Uint8Array按utf-8编码为字符串 108 function genKeyPairByData(pubKeyData: Uint8Array, priKeyData: Uint8Array) { 118 …let skData = new Uint8Array([48, 49, 2, 1, 1, 4, 32, 54, 41, 239, 240, 63, 188, 134, 113, 31, 102,… 123 // 把字符串按utf-8解码为Uint8Array 124 …let plainText: cryptoFramework.DataBlob = { data: new Uint8Array(buffer.from(message, 'utf-8').buf… [all …]
|
H A D | crypto-compute-mac.md | 55 async function genSymKeyByData(symKeyData: Uint8Array) { 63 // 把字符串按utf-8解码为Uint8Array,使用固定的128位的密钥,即16字节 64 let keyData = new Uint8Array(buffer.from("12345678abcdefgh", 'utf-8').buffer); 85 function genSymKeyByData(symKeyData: Uint8Array) { 93 // 把字符串按utf-8解码为Uint8Array,使用固定的128位的密钥,即16字节 130 async function genSymKeyByData(symKeyData: Uint8Array) { 138 // 把字符串按utf-8解码为Uint8Array,使用固定的128位的密钥,即16字节 145 let messageData = new Uint8Array(buffer.from(messageText, 'utf-8').buffer); 166 function genSymKeyByData(symKeyData: Uint8Array) { 174 // 把字符串按utf-8解码为Uint8Array,使用固定的128位的密钥,即16字节 [all …]
|
/ohos5.0/base/useriam/face_auth/ui/Settings_FaceAuth/entry/src/main/ets/model/ |
H A D | userIdmModel.ts | 23 protected challenge: Uint8Array; 24 protected token: Uint8Array; 25 protected credentialId: Uint8Array; 41 async getChallenge() : Promise<Uint8Array> { 45 setToken(token: Uint8Array): void { 51 getToken() : Uint8Array { 58 setCredentialId(credId: Uint8Array): void { 64 getCredentialId() : Uint8Array {
|
/ohos5.0/docs/zh-cn/application-dev/basic-services/account/ |
H A D | manage-os-account-credential.md | 60 …let pinData: Uint8Array = new Uint8Array([31, 32, 33, 34, 35, 36]); // you can obtain a PIN throug… 84 let challenge: Uint8Array = await userIDM.openSession(); 99 token: new Uint8Array([0]) 123 let challenge: Uint8Array = new Uint8Array([1, 2, 3, 4, 5]); 155 token: new Uint8Array([1, 2, 3, 4, 5]) 176 token: new Uint8Array([1, 2, 3, 4, 5]) 200 let challenge: Uint8Array = new Uint8Array([1, 2, 3, 4, 5]); 231 token: new Uint8Array([1, 2, 3, 4, 5]) 273 let credentialId: Uint8Array = new Uint8Array([1, 2, 3, 4, 5]); 274 let token: Uint8Array = new Uint8Array([1, 2, 3, 4, 5])
|