Home
last modified time | relevance | path

Searched refs:ResultCode (Results 1 - 25 of 93) sorted by relevance

1234

/drivers/peripheral/user_auth/hdi_service/idm/inc/
H A Didm_session.h30 ResultCode OpenEditSession(int32_t userId, uint8_t *challenge, uint32_t challengeLen);
31 ResultCode CloseEditSession(void);
33 ResultCode AssociateCoauthSchedule(uint64_t scheduleId, uint32_t authType, bool isUpdate);
36 ResultCode CheckSessionTimeout(void);
37 ResultCode CheckSessionValid(int32_t userId);
38 ResultCode GetUserId(int32_t *userId);
39 ResultCode CheckChallenge(uint8_t *challenge, uint32_t challengeLen);
40 ResultCode GetIsUpdate(bool *isUpdate);
41 ResultCode GetEnrollScheduleInfo(uint64_t *scheduleId, uint32_t *authType);
42 ResultCode IsValidUserTyp
[all...]
H A Duser_idm_funcs.h49 ResultCode CheckEnrollPermission(PermissionCheckParam param, uint64_t *scheduleId);
50 ResultCode CheckUpdatePermission(PermissionCheckParam param, uint64_t *scheduleId);
51 ResultCode AddCredentialFunc(int32_t userId, const Buffer *scheduleResult, uint64_t *credentialId, Buffer **rootSecret,
53 ResultCode DeleteCredentialFunc(CredentialDeleteParam param, CredentialInfoHal *credentialInfo);
54 ResultCode QueryCredentialFunc(int32_t userId, uint32_t authType, LinkedList **creds);
55 ResultCode GetUserInfoFunc(int32_t userId, uint64_t *secureUid, uint64_t *pinSubType,
57 ResultCode UpdateCredentialFunc(int32_t userId, const Buffer *scheduleResult, UpdateCredentialOutput *output);
58 ResultCode QueryAllExtUserInfoFunc(UserInfoResult *userInfos, uint32_t userInfolen, uint32_t *userInfoCount);
/drivers/peripheral/user_auth/hdi_service/utils/inc/
H A Dattribute.h111 ResultCode GetAttributeSerializedMsg(const Attribute *attribute, Uint8Array *retMsg);
113 ResultCode GetAttributeUint32(const Attribute *attribute, AttributeKey key, uint32_t *retValue);
114 ResultCode SetAttributeUint32(Attribute *attribute, AttributeKey key, const uint32_t value);
115 ResultCode GetAttributeInt32(const Attribute *attribute, AttributeKey key, int32_t *retValue);
116 ResultCode SetAttributeInt32(Attribute *attribute, AttributeKey key, const int32_t value);
117 ResultCode GetAttributeUint64(const Attribute *attribute, AttributeKey key, uint64_t *retValue);
118 ResultCode SetAttributeUint64(Attribute *attribute, AttributeKey key, const uint64_t value);
119 ResultCode GetAttributeUint8Array(const Attribute *attribute, AttributeKey key, Uint8Array *retData);
120 ResultCode SetAttributeUint8Array(Attribute *attribute, AttributeKey key, const Uint8Array data);
121 ResultCode GetAttributeUint64Arra
[all...]
/drivers/peripheral/pin_auth/hdi_service/main/inc/
H A Dall_in_one_func.h39 ResultCode DoGetAllInOneExecutorInfo(PinExecutorInfo *pinExecutorInfo);
40 ResultCode DoEnrollPin(PinEnrollParam *pinEnrollParam, Buffer *retTlv);
41 ResultCode DoAllInOneAuth(uint64_t scheduleId, uint64_t templateId,
43 ResultCode DoAuthPin(PinAuthParam *pinAuthParam, Buffer *retTlv, ResultCode *compareRet);
44 ResultCode DoDeleteTemplate(uint64_t templateId);
45 ResultCode GenerateAllInOneKeyPair(void);
47 ResultCode DoSetAllInOneFwkParam(
49 ResultCode DoWriteAntiBruteInfoToFile(uint64_t templateId);
/drivers/peripheral/pin_auth/hdi_service/common/inc/
H A Dattribute.h71 ResultCode GetAttributeSerializedMsg(const Attribute *attribute, Uint8Array *retMsg);
73 ResultCode GetAttributeLength(const Attribute *attribute, AttributeKey key, uint32_t *len);
74 ResultCode GetAttributeUint32(const Attribute *attribute, AttributeKey key, uint32_t *retValue);
75 ResultCode SetAttributeUint32(Attribute *attribute, AttributeKey key, const uint32_t value);
76 ResultCode GetAttributeInt32(const Attribute *attribute, AttributeKey key, int32_t *retValue);
77 ResultCode SetAttributeInt32(Attribute *attribute, AttributeKey key, const int32_t value);
78 ResultCode GetAttributeUint64(const Attribute *attribute, AttributeKey key, uint64_t *retValue);
79 ResultCode SetAttributeUint64(Attribute *attribute, AttributeKey key, const uint64_t value);
80 ResultCode GetAttributeUint8Array(const Attribute *attribute, AttributeKey key, Uint8Array *retData);
81 ResultCode SetAttributeUint8Arra
[all...]
/drivers/peripheral/pin_auth/hdi_service/database/inc/
H A Dpin_db.h43 ResultCode AddPin(PinEnrollParam *pinEnrollParam, uint64_t *templateId, Buffer *outRootSecret);
44 ResultCode DoGetAlgoParameter(uint64_t templateId, uint8_t *salt, uint32_t *saltLen, uint32_t *algoVersion);
45 ResultCode DoGenerateAlgoParameter(uint8_t *algoParameter, uint32_t *algoParameterLength, uint32_t *algoVersion,
47 ResultCode DelPinById(uint64_t templateId);
48 ResultCode AuthPinById(const Buffer *inputPinData, uint64_t templateId, Buffer *outRootSecret, ResultCode *compareRet);
49 ResultCode ComputeFreezeTime(uint64_t templateId, uint32_t *freezeTime, uint32_t count, uint64_t startFreezeTime);
50 ResultCode GetRemainTimes(uint64_t templateId, uint32_t *remainingAuthTimes, uint32_t authErrorCount);
51 ResultCode GetSubType(uint64_t templateId, uint64_t *subType);
52 ResultCode GetAntiBruteInf
[all...]
H A Dpin_db_ops_base.h35 ResultCode GetDataFromBuf(uint8_t **src, uint32_t *srcLen, uint8_t *dest, uint32_t destLen);
36 ResultCode GetBufFromData(uint8_t *src, uint32_t srcLen, uint8_t **dest, uint32_t *destLen);
37 ResultCode GenerateFileName(uint64_t templateId, const char *prefix, const char *suffix,
39 ResultCode ReadPinFile(uint8_t *data, uint32_t dataLen, uint64_t templateId, const char *suffix);
40 ResultCode WritePinFile(const uint8_t *data, uint32_t dataLen, uint64_t templateId, const char *suffix);
/drivers/peripheral/user_auth/hdi_service/database/inc/
H A Didm_database.h30 ResultCode InitUserInfoList(void);
54 ResultCode GetSecureUid(int32_t userId, uint64_t *secUid);
55 ResultCode GetEnrolledInfo(int32_t userId, EnrolledInfoHal **enrolledInfos, uint32_t *num);
56 ResultCode GetEnrolledInfoAuthType(int32_t userId, uint32_t authType, EnrolledInfoHal *enrolledInfo);
57 ResultCode DeleteUserInfo(int32_t userId, LinkedList **creds);
60 ResultCode QueryCredentialUserId(uint64_t credentialId, int32_t *userId);
62 ResultCode AddCredentialInfo(int32_t userId, CredentialInfoHal *credentialInfo, int32_t userType);
63 ResultCode SetPinSubType(int32_t userId, uint64_t pinSubType);
64 ResultCode GetPinSubType(int32_t userId, uint64_t *pinSubType);
65 ResultCode DeleteCredentialInf
[all...]
/drivers/peripheral/pin_auth/hdi_service/common/src/
H A Dattribute.c96 IAM_STATIC ResultCode GetAttributeIndex(AttributeKey key, uint32_t *index) in GetAttributeIndex()
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()
133 ResultCode result = ReadDataFromMsg(msg, readIndex, &uint8Data); 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()
167 ResultCode result = in WriteUInt32ToMsg()
176 IAM_STATIC ResultCode CheckAddReadIndex(const Uint8Array msg, uint32_t *readIndex, uint32_t length) in CheckAddReadIndex()
192 IAM_STATIC ResultCode ParseAttributeSerializedMsgInner(Attribute *attribute, const Uint8Array msg, in ParseAttributeSerializedMsgInner()
198 ResultCode readTypeResul in ParseAttributeSerializedMsgInner()
[all...]
/drivers/peripheral/user_auth/hdi_service/user_auth/inc/
H A Duser_auth_funcs.h73 ResultCode GenerateSolutionFunc(AuthParamHal param, LinkedList **schedules);
74 ResultCode RequestAuthResultFunc(uint64_t contextId, const Buffer *scheduleResult, UserAuthTokenHal *authToken,
76 ResultCode GetEnrolledStateFunc(int32_t userId, uint32_t authType, EnrolledStateHal *enrolledStateHal);
77 ResultCode CheckReuseUnlockResultFunc(const ReuseUnlockParamHal *info, ReuseUnlockResult *reuseResult);
78 ResultCode SetGlobalConfigParamFunc(GlobalConfigParamHal *param);
79 ResultCode GetAvailableStatusFunc(int32_t userId, int32_t authType, uint32_t authTrustLevel);
81 ResultCode GenerateScheduleFunc(const Buffer *tlv, Uint8Array remoteUdid, ScheduleInfoParam *scheduleInfo);
82 ResultCode GenerateAuthResultFunc(const Buffer *tlv, AuthResultParam *authResultInfo);
83 ResultCode GetExecutorInfoLinkedList(uint32_t authType, uint32_t executorRole, LinkedList *allExecutorInfoList);
H A Dcontext_manager.h70 ResultCode InitUserAuthContextList(void);
72 ResultCode GenerateAuthContext(AuthParamHal params, UserAuthContext **context);
76 ResultCode ScheduleOnceFinish(UserAuthContext *context, uint64_t scheduleId);
78 ResultCode DestroyContextbyId(uint64_t contextId);
79 ResultCode CopySchedules(UserAuthContext *context, LinkedList **schedules);
80 ResultCode FillInContext(UserAuthContext *context, uint64_t *credentialId, ExecutorResultInfo *info,
/drivers/peripheral/user_auth/hdi_service/utils/src/
H A Dattribute.c115 IAM_STATIC ResultCode GetAttributeIndex(AttributeKey key, uint32_t *index) in GetAttributeIndex()
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()
152 ResultCode result = ReadDataFromMsg(msg, readIndex, &uint8Data); 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()
186 ResultCode result = in WriteUInt32ToMsg()
195 IAM_STATIC ResultCode ParseAttributeSerializedMsgInner(Attribute *attribute, const Uint8Array msg, in ParseAttributeSerializedMsgInner()
201 ResultCode readTypeResult = ReadUint32FromMsg(msg, &readIndex, &type); in ParseAttributeSerializedMsgInner()
205 ResultCode readLengthResul in ParseAttributeSerializedMsgInner()
[all...]
/drivers/peripheral/face_auth/hdi_service/src/
H A Dall_in_one_executor_impl.cpp81 IAM_LOGI("enroll, result is %{public}d", ResultCode::OPERATION_NOT_SUPPORT); in Enroll()
82 int32_t ret = callbackObj->OnResult(ResultCode::OPERATION_NOT_SUPPORT, {}); in Enroll()
101 IAM_LOGI("authenticate, result is %{public}d", ResultCode::NOT_ENROLLED); in Authenticate()
102 int32_t ret = callbackObj->OnResult(ResultCode::NOT_ENROLLED, {}); in Authenticate()
120 IAM_LOGI("identify, result is %{public}d", ResultCode::OPERATION_NOT_SUPPORT); in Identify()
121 int32_t ret = callbackObj->OnResult(ResultCode::OPERATION_NOT_SUPPORT, {}); in Identify()
157 IAM_LOGI("lock template, result is %{public}d", ResultCode::SUCCESS); in SendCommand()
158 ret = callbackObj->OnResult(ResultCode::SUCCESS, {}); in SendCommand()
165 IAM_LOGI("unlock template, result is %{public}d", ResultCode::SUCCESS); in SendCommand()
166 ret = callbackObj->OnResult(ResultCode in SendCommand()
[all...]
/drivers/peripheral/fingerprint_auth/hdi_service/src/
H A Dall_in_one_executor_impl.cpp80 IAM_LOGI("enroll, result is %{public}d", ResultCode::OPERATION_NOT_SUPPORT); in Enroll()
81 int32_t ret = callbackObj->OnResult(ResultCode::OPERATION_NOT_SUPPORT, {}); in Enroll()
101 IAM_LOGI("authenticate, result is %{public}d", ResultCode::NOT_ENROLLED); in Authenticate()
102 int32_t ret = callbackObj->OnResult(ResultCode::NOT_ENROLLED, {}); in Authenticate()
120 IAM_LOGI("identify, result is %{public}d", ResultCode::OPERATION_NOT_SUPPORT); in Identify()
121 int32_t ret = callbackObj->OnResult(ResultCode::OPERATION_NOT_SUPPORT, {}); in Identify()
157 IAM_LOGI("lock template, result is %{public}d", ResultCode::SUCCESS); in SendCommand()
158 ret = callbackObj->OnResult(ResultCode::SUCCESS, {}); in SendCommand()
165 IAM_LOGI("unlock template, result is %{public}d", ResultCode::SUCCESS); in SendCommand()
166 ret = callbackObj->OnResult(ResultCode in SendCommand()
[all...]
/drivers/peripheral/pin_auth/hdi_service/main/src/
H A Dall_in_one_func.c25 static ResultCode GenerateResultTlv( in GenerateResultTlv()
50 ResultCode DoEnrollPin(PinEnrollParam *pinEnrollParam, Buffer *retTlv) in DoEnrollPin()
62 ResultCode ret = AddPin(pinEnrollParam, &templateId, rootSecret); in DoEnrollPin()
78 ResultCode DoAllInOneAuth(uint64_t scheduleId, uint64_t templateId, in DoAllInOneAuth()
87 ResultCode result = GetSubType(templateId, &(algoParam->subType)); in DoAllInOneAuth()
100 ResultCode DoAuthPin(PinAuthParam *pinAuthParam, Buffer *retTlv, ResultCode *compareRet) in DoAuthPin()
109 ResultCode ret = DoQueryPinInfo(pinAuthParam->templateId, &pinCredentialInfo); in DoAuthPin()
142 ResultCode DoDeleteTemplate(uint64_t templateId) in DoDeleteTemplate()
144 ResultCode re in DoDeleteTemplate()
[all...]
/drivers/peripheral/user_auth/hdi_service/coauth/src/
H A Dcoauth_funcs.c28 ResultCode RegisterExecutor(const ExecutorInfoHal *registerInfo, uint64_t *executorIndex) in RegisterExecutor()
36 ResultCode ret = RegisterExecutorToPool(&executorInfo); in RegisterExecutor()
45 ResultCode UnRegisterExecutor(uint64_t executorIndex) in UnRegisterExecutor()
47 ResultCode ret = UnregisterExecutorToPool(executorIndex); in UnRegisterExecutor()
H A Dexecutor_message.c36 IAM_STATIC ResultCode SignData(const Uint8Array *dataTlv, Uint8Array *signDataTlv, SignParam signParam) in SignData()
43 ResultCode result = RESULT_SUCCESS; in SignData()
67 IAM_STATIC ResultCode GetAttributeDataAndSignTlv(const Attribute *attribute, Uint8Array *retDataAndSignTlv, in GetAttributeDataAndSignTlv()
74 ResultCode result = RESULT_GENERAL_ERROR; in GetAttributeDataAndSignTlv()
116 ResultCode GetAttributeExecutorMsg(const Attribute *attribute, Uint8Array *retMsg, SignParam signParam) in GetAttributeExecutorMsg()
125 ResultCode result = RESULT_GENERAL_ERROR; in GetAttributeExecutorMsg()
154 IAM_STATIC ResultCode Ed25519VerifyData(uint64_t scheduleId, Uint8Array dataTlv, Uint8Array signTlv) in Ed25519VerifyData()
156 ResultCode result = RESULT_GENERAL_ERROR; in Ed25519VerifyData()
173 result = (ResultCode)Ed25519Verify(publicKey, &data, &sign); in Ed25519VerifyData()
185 IAM_STATIC ResultCode VerifyDataTlvSignatur
[all...]
/drivers/peripheral/user_auth/hdi_service/idm/src/
H A Didm_session.c67 IAM_STATIC ResultCode GenerateChallenge(uint8_t *challenge, uint32_t challengeLen) in GenerateChallenge()
85 ResultCode OpenEditSession(int32_t userId, uint8_t *challenge, uint32_t challengeLen) in OpenEditSession()
107 ResultCode ret = GenerateChallenge(g_session->challenge, CHALLENGE_LEN); in OpenEditSession()
145 ResultCode CloseEditSession(void) in CloseEditSession()
157 ResultCode GetUserId(int32_t *userId) in GetUserId()
167 ResultCode CheckChallenge(uint8_t *challenge, uint32_t challengeLen) in CheckChallenge()
184 ResultCode AssociateCoauthSchedule(uint64_t scheduleId, uint32_t authType, bool isUpdate) in AssociateCoauthSchedule()
207 ResultCode GetEnrollScheduleInfo(uint64_t *scheduleId, uint32_t *authType) in GetEnrollScheduleInfo()
221 ResultCode CheckSessionTimeout(void) in CheckSessionTimeout()
242 ResultCode GetIsUpdat
[all...]
H A Duser_idm_funcs.c35 IAM_STATIC ResultCode SetScheduleParam(const PermissionCheckParam *param, ScheduleParam *scheduleParam) in SetScheduleParam()
63 ResultCode ret = QueryCollecterMatcher(scheduleParam.authType, scheduleParam.collectorSensorHint, in GenerateIdmSchedule()
103 IAM_STATIC ResultCode GenerateCoAuthSchedule(PermissionCheckParam *param, bool isUpdate, uint64_t *scheduleId) in GenerateCoAuthSchedule()
110 ResultCode ret = AddCoAuthSchedule(enrollSchedule); in GenerateCoAuthSchedule()
128 ResultCode CheckEnrollPermission(PermissionCheckParam param, uint64_t *scheduleId) in CheckEnrollPermission()
138 ResultCode ret = IsValidUserType(param.userType); in CheckEnrollPermission()
165 ResultCode CheckUpdatePermission(PermissionCheckParam param, uint64_t *scheduleId) in CheckUpdatePermission()
175 ResultCode ret = CheckSessionValid(param.userId); in CheckUpdatePermission()
205 IAM_STATIC ResultCode GetCredentialInfoFromSchedule(const ExecutorResultInfo *executorInfo, in GetCredentialInfoFromSchedule()
210 ResultCode re in GetCredentialInfoFromSchedule()
[all...]
/drivers/peripheral/pin_auth/hdi_service/database/src/
H A Dpin_db_ops_base.c28 ResultCode GetDataFromBuf(uint8_t **src, uint32_t *srcLen, uint8_t *dest, uint32_t destLen) in GetDataFromBuf()
45 ResultCode GetBufFromData(uint8_t *src, uint32_t srcLen, uint8_t **dest, uint32_t *destLen) in GetBufFromData()
61 ResultCode GenerateFileName(uint64_t templateId, const char *prefix, const char *suffix, in GenerateFileName()
102 ResultCode ReadPinFile(uint8_t *data, uint32_t dataLen, uint64_t templateId, const char *suffix) in ReadPinFile()
115 ResultCode ret = GenerateFileName(templateId, DEFAULT_FILE_HEAD, suffix, fileName, MAX_FILE_NAME_LEN); in ReadPinFile()
120 ret = (ResultCode)fileOp->readFile(fileName, data, dataLen); in ReadPinFile()
130 ResultCode WritePinFile(const uint8_t *data, uint32_t dataLen, uint64_t templateId, const char *suffix) in WritePinFile()
143 ResultCode ret = GenerateFileName(templateId, DEFAULT_FILE_HEAD, suffix, fileName, MAX_FILE_NAME_LEN); in WritePinFile()
148 ret = (ResultCode)fileOp->writeFile(fileName, data, dataLen); in WritePinFile()
/drivers/peripheral/user_auth/hdi_service/coauth/inc/
H A Dexecutor_message.h50 ResultCode GetAttributeExecutorMsg(const Attribute *attribute, Uint8Array *retMsg, SignParam signParam);
52 ResultCode GetExecutorMsgList(int32_t userId, uint32_t authPropertyMode, LinkedList **executorMsg);
55 ResultCode CreateScheduleInfo(const Buffer *tlv, Uint8Array peerUdid, ScheduleInfoParam *scheduleInfo);
56 ResultCode CreateAuthResultInfo(const Buffer *tlv, AuthResultParam *authResultInfo);
57 ResultCode GetExecutorInfoMsg(ExecutorInfoHal *executorInfo, Uint8Array *retMsg);
/drivers/peripheral/user_auth/hdi_service/user_auth/src/
H A Duser_auth_funcs.c42 ResultCode GenerateSolutionFunc(AuthParamHal param, LinkedList **schedules) in GenerateSolutionFunc()
53 ResultCode result = GenerateAuthContext(param, &authContext); in GenerateSolutionFunc()
69 ResultCode ret = CopySchedules(authContext, schedules); in GenerateSolutionFunc()
96 IAM_STATIC ResultCode GetExpiredInfoForResult(const UserAuthContext *context, AuthResult *result) in GetExpiredInfoForResult()
127 IAM_STATIC ResultCode HandleAuthSuccessResult(const UserAuthContext *context, const ExecutorResultInfo *info, in HandleAuthSuccessResult()
144 ResultCode ret = GetExpiredInfoForResult(context, result); in HandleAuthSuccessResult()
156 IAM_STATIC ResultCode SetAuthResultMsgToAttribute(Attribute *attribute, AuthResult *result, in SetAuthResultMsgToAttribute()
159 ResultCode ret = SetAttributeUint64(attribute, ATTR_SCHEDULE_ID, scheduleId); in SetAuthResultMsgToAttribute()
191 IAM_STATIC ResultCode GenerateRemoteAuthResultMsg(AuthResult *result, uint64_t scheduleId, Uint8Array collectorUdid, in GenerateRemoteAuthResultMsg()
196 ResultCode funcRe in GenerateRemoteAuthResultMsg()
[all...]
H A Dcontext_manager.c33 IAM_STATIC ResultCode CreateAndInsertSchedules(UserAuthContext *context, uint32_t authMode);
34 IAM_STATIC ResultCode CreateAuthSchedule(UserAuthContext *context, CoAuthSchedule **schedule);
35 IAM_STATIC ResultCode CreateIdentifySchedule(const UserAuthContext *context, CoAuthSchedule **schedule);
37 IAM_STATIC ResultCode InsertScheduleToContext(CoAuthSchedule *schedule, UserAuthContext *context);
42 ResultCode InitUserAuthContextList(void) in InitUserAuthContextList()
105 IAM_STATIC ResultCode SetContextExpiredTime(UserAuthContext *authContext) in SetContextExpiredTime()
112 ResultCode result = GetPinExpiredInfo(authContext->userId, &expiredInfo); in SetContextExpiredTime()
129 ResultCode GenerateAuthContext(AuthParamHal params, UserAuthContext **context) in GenerateAuthContext()
149 ResultCode ret = CreateAndInsertSchedules(*context, SCHEDULE_MODE_AUTH); in GenerateAuthContext()
173 IAM_STATIC ResultCode CreateIdentifySchedul
[all...]
/drivers/peripheral/user_auth/test/unittest/service_test/inc/
H A Dsignature_operation.h34 ResultCode GenerateExecutorKeyPair();
35 ResultCode GetExecutorResultTlv(const TlvRequiredPara &para, std::vector<uint8_t> &resultTlv);
36 ResultCode GetExecutorPublicKey(std::vector<uint8_t> &vPubKey);
/drivers/peripheral/user_auth/hdi_service/common/src/
H A Duser_sign_centre.c48 IAM_STATIC ResultCode UserAuthTokenHmac(UserAuthTokenHal *userAuthToken, HksAuthTokenKey *tokenKey) in UserAuthTokenHmac()
54 ResultCode ret = HmacSha256(&key, &data, &sign); in UserAuthTokenHmac()
83 IAM_STATIC ResultCode DecryptTokenCipher(const UserAuthTokenHal *userAuthToken, UserAuthTokenPlain *tokenPlain, in DecryptTokenCipher()
124 IAM_STATIC ResultCode CheckUserAuthTokenHmac(const UserAuthTokenHal *userAuthToken, HksAuthTokenKey *tokenKey) in CheckUserAuthTokenHmac()
129 ResultCode ret = HmacSha256(&key, &data, &rightSign); in CheckUserAuthTokenHmac()
145 ResultCode UserAuthTokenVerify(UserAuthTokenHal *userAuthToken, UserAuthTokenPlain *tokenPlain) in UserAuthTokenVerify()
156 ResultCode ret = GetTokenKey(&tokenKey); in UserAuthTokenVerify()
177 IAM_STATIC ResultCode InitAesGcmParam(AesGcmParam *aesGcmParam, const HksAuthTokenKey *tokenKey) in InitAesGcmParam()
199 IAM_STATIC ResultCode CopyTokenCipherParam(const Buffer *ciphertext, const Buffer *tag, const Buffer *iv, in CopyTokenCipherParam()
230 IAM_STATIC ResultCode GetTokenDataCipherResul
[all...]

Completed in 11 milliseconds

1234