/drivers/peripheral/user_auth/hdi_service/utils/inc/ |
H A D | c_array.h | 31 typedef struct Uint8Array { struct 34 } Uint8Array; typedef 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 *subMsgSize);
125 ResultCode GetMultiDataSerializedMsg(Uint8Array *sourceArrayMsg, uint32_t size, Uint8Array *retMsg);
|
/drivers/peripheral/pin_auth/hdi_service/common/inc/ |
H A D | c_array.h | 30 typedef struct Uint8Array { struct 33 } Uint8Array; typedef 40 void DestroyUint8Array(Uint8Array **array); 42 Uint8Array *CreateUint8ArrayBySize(uint32_t size); 43 Uint8Array *CreateUint8ArrayByData(const uint8_t *data, uint32_t len);
|
H A D | attribute.h | 68 Attribute *CreateAttributeFromSerializedMsg(const Uint8Array msg);
71 ResultCode GetAttributeSerializedMsg(const Attribute *attribute, Uint8Array *retMsg);
80 ResultCode GetAttributeUint8Array(const Attribute *attribute, AttributeKey key, Uint8Array *retData);
81 ResultCode SetAttributeUint8Array(Attribute *attribute, AttributeKey key, const Uint8Array data);
|
/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 *retData)
in ReadDataFromMsg() 129 IAM_STATIC ResultCode ReadUint32FromMsg(const Uint8Array msg, uint32_t *readIndex, uint32_t *retValue)
in ReadUint32FromMsg() 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() 164 IAM_STATIC ResultCode WriteUInt32ToMsg(Uint8Array *msg, uint32_t *writeIndex, uint32_t value)
in WriteUInt32ToMsg() 168 WriteDataToMsg(msg, writeIndex, (Uint8Array){ (uint8_t *)&netOrderValue, sizeof(netOrderValue) });
in WriteUInt32ToMsg() 176 IAM_STATIC ResultCode CheckAddReadIndex(const Uint8Array ms [all...] |
H A D | c_array.c | 23 void DestroyUint8Array(Uint8Array **array) in DestroyUint8Array() 51 Uint8Array *CreateUint8ArrayBySize(uint32_t size) in CreateUint8ArrayBySize() 53 Uint8Array *array = Malloc(sizeof(Uint8Array)); in CreateUint8ArrayBySize() 70 Uint8Array *CreateUint8ArrayByData(const uint8_t *data, uint32_t len) in CreateUint8ArrayByData() 77 Uint8Array *array = CreateUint8ArrayBySize(len); in CreateUint8ArrayByData()
|
/drivers/peripheral/user_auth/hdi_service/coauth/inc/ |
H A D | executor_message.h | 50 ResultCode GetAttributeExecutorMsg(const Attribute *attribute, Uint8Array *retMsg, SignParam signParam); 55 ResultCode CreateScheduleInfo(const Buffer *tlv, Uint8Array peerUdid, ScheduleInfoParam *scheduleInfo); 57 ResultCode GetExecutorInfoMsg(ExecutorInfoHal *executorInfo, Uint8Array *retMsg); 58 Buffer *GetExecutorInfoTlv(Uint8Array attrsTlv, Uint8Array peerUdid);
|
H A D | pool.h | 83 void SetExecutorConditionDeviceUdid(ExecutorCondition *condition, Uint8Array deviceUdid);
|
/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 *retData)
in ReadDataFromMsg() 148 IAM_STATIC ResultCode ReadUint32FromMsg(const Uint8Array msg, uint32_t *readIndex, uint32_t *retValue)
in ReadUint32FromMsg() 151 Uint8Array uint8Data = { (uint8_t *)&netOrderValue, sizeof(netOrderValue) };
in ReadUint32FromMsg() 162 IAM_STATIC ResultCode WriteDataToMsg(Uint8Array *msg, uint32_t *writeIndex, const Uint8Array data)
in WriteDataToMsg() 183 IAM_STATIC ResultCode WriteUInt32ToMsg(Uint8Array *msg, uint32_t *writeIndex, uint32_t value)
in WriteUInt32ToMsg() 187 WriteDataToMsg(msg, writeIndex, (Uint8Array){ (uint8_t *)&netOrderValue, sizeof(netOrderValue) });
in WriteUInt32ToMsg() 195 IAM_STATIC ResultCode ParseAttributeSerializedMsgInner(Attribute *attribute, const Uint8Array ms [all...] |
H A D | c_array.c | 23 void DestroyUint8Array(Uint8Array **array) in DestroyUint8Array() 51 Uint8Array *CreateUint8ArrayBySize(uint32_t size) in CreateUint8ArrayBySize() 53 Uint8Array *array = Malloc(sizeof(Uint8Array)); in CreateUint8ArrayBySize() 70 Uint8Array *CreateUint8ArrayByData(const uint8_t *data, uint32_t len) in CreateUint8ArrayByData() 77 Uint8Array *array = CreateUint8ArrayBySize(len); in CreateUint8ArrayByData()
|
/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 signParam) in SignData() 67 IAM_STATIC ResultCode GetAttributeDataAndSignTlv(const Attribute *attribute, Uint8Array *retDataAndSignTlv, in GetAttributeDataAndSignTlv() 71 Uint8Array dataTlv = { Malloc(MAX_EXECUTOR_MSG_LEN), MAX_EXECUTOR_MSG_LEN }; in GetAttributeDataAndSignTlv() 72 Uint8Array signTlv = { Malloc(ED25519_FIX_SIGN_BUFFER_SIZE), ED25519_FIX_SIGN_BUFFER_SIZE }; in GetAttributeDataAndSignTlv() 116 ResultCode GetAttributeExecutorMsg(const Attribute *attribute, Uint8Array *retMsg, SignParam signParam) in GetAttributeExecutorMsg() 123 Uint8Array dataAndSignTlv = { Malloc(MAX_EXECUTOR_MSG_LEN), MAX_EXECUTOR_MSG_LEN }; in GetAttributeExecutorMsg() 154 IAM_STATIC ResultCode Ed25519VerifyData(uint64_t scheduleId, Uint8Array dataTlv, Uint8Array signTlv) in Ed25519VerifyData() 185 IAM_STATIC ResultCode VerifyDataTlvSignature(const Attribute *dataAndSignAttribute, const Uint8Array dataTl [all...] |
H A D | coauth.c | 222 uint32_t sensorHint, uint32_t executorRole, Uint8Array deviceUdid) in MountExecutorOnce() 265 Uint8Array localUdidArray = { .data = (uint8_t *)(param->localUdid), .len = UDID_LEN }; in MountExecutor() 266 Uint8Array collectorUdidArray = { .data = (uint8_t *)(param->collectorUdid), .len = UDID_LEN }; in MountExecutor()
|
/drivers/peripheral/user_auth/hdi_service/key_mgr/inc/ |
H A D | udid_manager.h | 30 bool GetLocalUdid(Uint8Array *udid); 31 bool IsLocalUdid(Uint8Array udid);
|
H A D | sign_param.h | 36 Uint8Array peerUdid;
|
/drivers/peripheral/user_auth/test/unittest/co_auth/ |
H A D | executor_message_test.cpp | 30 extern ResultCode SignData(const Uint8Array *dataTlv, Uint8Array *signDataTlv, SignParam signParam); 31 extern ResultCode GetAttributeDataAndSignTlv(const Attribute *attribute, Uint8Array *retDataAndSignTlv, 33 extern ResultCode Ed25519VerifyData(uint64_t scheduleId, Uint8Array dataTlv, Uint8Array signTlv); 34 extern ResultCode VerifyDataTlvSignature(const Attribute *dataAndSignAttribute, const Uint8Array dataTlv, 36 extern Attribute *CreateAttributeFromDataAndSignTlv(const Uint8Array dataAndSignTlv, SignParam signParam); 37 extern Attribute *CreateAttributeFromExecutorMsg(const Uint8Array msg, SignParam signParam); 72 Uint8Array dataTlv = { dataTlvBuffer, len }; in HWTEST_F() 74 Uint8Array signDat in HWTEST_F() [all...] |
H A D | co_auth_test.cpp | 30 uint32_t sensorHint, uint32_t executorRole, Uint8Array deviceUdid); 169 Uint8Array deviceUdid = { deviceUdidBuffer, 64 }; in HWTEST_F() 197 Uint8Array deviceUdid = { deviceUdidBuffer, 64 }; in HWTEST_F()
|
/drivers/peripheral/user_auth/hdi_service/user_auth/src/ |
H A D | user_auth_funcs.c | 157 uint64_t scheduleId, Uint8Array authToken) in SetAuthResultMsgToAttribute() 191 IAM_STATIC ResultCode GenerateRemoteAuthResultMsg(AuthResult *result, uint64_t scheduleId, Uint8Array collectorUdid, in GenerateRemoteAuthResultMsg() 195 Uint8Array retInfo = {}; in GenerateRemoteAuthResultMsg() 199 retInfo = (Uint8Array){ Malloc(MAX_EXECUTOR_MSG_LEN), MAX_EXECUTOR_MSG_LEN }; in GenerateRemoteAuthResultMsg() 205 Uint8Array authTokenIn = { (uint8_t *)(&authToken), sizeof(UserAuthTokenHal) }; in GenerateRemoteAuthResultMsg() 233 Uint8Array collectorUdid = { userAuthContext->collectorUdid, sizeof(userAuthContext->collectorUdid) }; in RequestAuthResultFuncInner() 454 ResultCode GenerateScheduleFunc(const Buffer *tlv, Uint8Array remoteUdid, ScheduleInfoParam *scheduleInfo) in GenerateScheduleFunc() 484 Uint8Array localUdid = { localUdidData, UDID_LEN }; in GetExecutorInfoLinkedList() 528 static Buffer *GetSignExecutorInfoFuncInner(Uint8Array peerUdid, LinkedList *executorList, in GetSignExecutorInfoFuncInner() 529 Uint8Array executorInfoTlvMs in GetSignExecutorInfoFuncInner() [all...] |
/drivers/peripheral/user_auth/hdi_service/key_mgr/src/ |
H A D | udid_manager.c | 50 bool GetLocalUdid(Uint8Array *udid) in GetLocalUdid() 67 bool IsLocalUdid(Uint8Array udid) in IsLocalUdid()
|
H A D | hmac_key.c | 36 Uint8Array localUdidArray = { .data = udid, .len = UDID_LEN }; in GenerateHmacKey()
|
/drivers/peripheral/user_auth/test/unittest/attribute_test/ |
H A D | attribute_test.cpp | 223 Uint8Array data = { array.data(), size }; in HWTEST_F() 227 Uint8Array value = { out.data(), size }; in HWTEST_F() 241 Uint8Array value = {}; in HWTEST_F() 254 Uint8Array data = { out.data(), static_cast<uint32_t>(out.size()) }; in HWTEST_F() 267 Uint8Array data = { nullptr, static_cast<uint32_t>(array.size()) }; in HWTEST_F() 306 Uint8Array data = {}; in HWTEST_F() 311 Uint8Array value = { array.data(), static_cast<uint32_t>(array.size()) }; in HWTEST_F() 362 Uint8Array data = { temp.data(), static_cast<uint32_t>(temp.size()) }; in HWTEST_F() 433 Uint8Array retMsg = { nullptr, 0 }; in HWTEST_F() 449 Uint8Array ms in HWTEST_F() [all...] |
/drivers/peripheral/user_auth/hdi_service/user_auth/inc/ |
H A D | user_auth_funcs.h | 81 ResultCode GenerateScheduleFunc(const Buffer *tlv, Uint8Array remoteUdid, ScheduleInfoParam *scheduleInfo); 84 Buffer *GetSignExecutorInfoFunc(Uint8Array peerUdid, LinkedList *executorList);
|
/drivers/peripheral/pin_auth/hdi_service/main/src/ |
H A D | executor_func_common.c | 34 Uint8Array uint8Array = { in SetBufferToAttribute() 57 Uint8Array uint8Array = { in GetBufferFromAttributeBase() 107 static int32_t GetRootMsg(const Attribute *data, const KeyPair *keyPair, Uint8Array *rootMsg) in GetRootMsg() 109 Uint8Array dataMsg = { in GetRootMsg() 163 Uint8Array uint8Array = { in FormatTlvMsg() 200 Uint8Array uint8Array = { in GetRootAttributeFromTlv() 271 Uint8Array uint8Array = { in VerifyAndGetDataAttribute()
|
/drivers/peripheral/pin_auth/test/unittest/pin_auth/common/src/ |
H A D | common_impl.c | 33 Uint8Array uint8Array = { in GetAuthFwkExtraInfo()
|
/drivers/peripheral/user_auth/hdi_service/service/ |
H A D | user_auth_interface_service.cpp | 133 Uint8Array publicKey, Attribute *attribute)
in SetAttributeToCoAuthExecMsg() 142 Uint8Array localUdidIn = { paramHal.localUdid, sizeof(paramHal.localUdid) };
in SetAttributeToCoAuthExecMsg() 151 Uint8Array peerUdidIn = { paramHal.collectorUdid, sizeof(paramHal.collectorUdid) };
in SetAttributeToCoAuthExecMsg() 167 Uint8Array challenge = { paramHal.challenge, CHALLENGE_LEN };
in SetAttributeToCoAuthExecMsg() 177 Uint8Array publicKey, Uint8Array *retExtraInfo)
in SetAttributeToCollectorExecMsg() 264 Uint8Array publicKey, Uint8Array *retExtraInfo)
in SetAttributeToVerifierExecMsg() 332 Uint8Array retExtraInfo = { info.executorMessages[0].data(), MAX_EXECUTOR_MSG_LEN };
in SetAttributeToExtraInfo() 347 static int32_t SetAttributeToAllInOneExecMsg(AuthParamHal paramHal, HdiScheduleInfo &info, Uint8Array *retExtraInf [all...] |
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/ |
H A D | MainEditor.js | 1888 let u8arr = new Uint8Array(data.data);
1893 let u8arr = new Uint8Array(data.data);
1898 let u8arr = new Uint8Array(data.data);
1903 let u8arr = new Uint8Array(data.data);
1908 let u8arr = new Uint8Array(data.data);
1913 let u8arr = new Uint8Array(data.data);
1918 let u8arr = new Uint8Array(data.data);
1923 let u8arr = new Uint8Array(data.data);
1928 let u8arr = new Uint8Array(data.data);
1933 let u8arr = new Uint8Array(dat [all...] |