/ohos5.0/drivers/peripheral/user_auth/hdi_service/database/src/ |
H A D | idm_database.c | 32 #define IAM_STATIC macro 34 #define IAM_STATIC static macro 38 IAM_STATIC LinkedList *g_userInfoList = NULL; 41 IAM_STATIC UserInfo *g_currentUser = NULL; 45 IAM_STATIC uint32_t g_globalConfigInfoNum = 0; 51 IAM_STATIC ResultCode DeleteUser(int32_t userId); 56 IAM_STATIC bool IsUserValid(UserInfo *user); 60 IAM_STATIC ResultCode ClearInvalidData(void); 646 IAM_STATIC void SwitchSubType(UserInfo *user) in SwitchSubType() 1031 IAM_STATIC bool IsUserValid(UserInfo *user) in IsUserValid() [all …]
|
H A D | idm_file_manager.c | 34 #define IAM_STATIC macro 36 #define IAM_STATIC static macro 39 IAM_STATIC uint32_t GetRemainSpace(const Buffer *object) in GetRemainSpace() 44 IAM_STATIC uint8_t *GetStreamAddress(const Buffer *object) in GetStreamAddress() 49 IAM_STATIC ResultCode CapacityExpansion(Buffer *object, uint32_t targetCapacity) in CapacityExpansion() 79 IAM_STATIC ResultCode StreamWrite(Buffer *parcel, void *from, uint32_t size) in StreamWrite() 154 IAM_STATIC ResultCode StreamWriteUserInfo(Buffer *parcel, UserInfo *userInfo) in StreamWriteUserInfo() 191 IAM_STATIC ResultCode WriteUserInfo(LinkedList *userInfoList, Buffer *parcel) in WriteUserInfo() 451 IAM_STATIC Buffer *ReadFileInfo(void) in ReadFileInfo() 478 IAM_STATIC bool StreamReadFileInfo(Buffer *parcel, LinkedList *userInfoList) in StreamReadFileInfo() [all …]
|
/ohos5.0/drivers/peripheral/user_auth/hdi_service/utils/src/ |
H A D | linked_list.c | 24 #define IAM_STATIC macro 26 #define IAM_STATIC static macro 29 IAM_STATIC ResultCode InsertNode(LinkedList *list, void *data) in InsertNode() 51 IAM_STATIC ResultCode RemoveNode(LinkedList *list, void *condition, MatchFunc matchFunc, bool destr… in RemoveNode() 89 IAM_STATIC uint32_t GetSize(LinkedList *list) in GetSize() 98 IAM_STATIC bool IteratorHasNext(LinkedListIterator *iterator) in IteratorHasNext() 107 IAM_STATIC void *IteratorNext(LinkedListIterator *iterator) in IteratorNext() 118 IAM_STATIC LinkedListIterator *CreateIterator(struct LinkedList *list) in CreateIterator() 135 IAM_STATIC void DestroyIterator(LinkedListIterator *iterator) in DestroyIterator() 166 IAM_STATIC void DestroyLinkedListNode(const LinkedList *list, LinkedListNode *node) in DestroyLinkedListNode()
|
H A D | attribute.c | 24 #define IAM_STATIC macro 26 #define IAM_STATIC static macro 81 IAM_STATIC uint32_t Ntohl32(uint32_t in) in Ntohl32() 86 IAM_STATIC uint32_t Htonl32(uint32_t in) in Htonl32() 91 IAM_STATIC uint64_t Ntohl64(uint64_t in) in Ntohl64() 96 IAM_STATIC uint64_t Htonl64(uint64_t in) in Htonl64() 101 IAM_STATIC void Ntohl64Array(Uint64Array *array) in Ntohl64Array() 108 IAM_STATIC void Htonl64Array(Uint64Array *array) in Htonl64Array() 115 IAM_STATIC ResultCode GetAttributeIndex(AttributeKey key, uint32_t *index) in GetAttributeIndex() 183 IAM_STATIC ResultCode WriteUInt32ToMsg(Uint8Array *msg, uint32_t *writeIndex, uint32_t value) in WriteUInt32ToMsg() [all …]
|
/ohos5.0/drivers/peripheral/user_auth/hdi_service/user_auth/src/ |
H A D | context_manager.c | 27 #define IAM_STATIC macro 29 #define IAM_STATIC static macro 32 IAM_STATIC bool IsContextDuplicate(uint64_t contextId); 36 IAM_STATIC void DestroyContextNode(void *data); 40 IAM_STATIC LinkedList *g_contextList = NULL; 60 IAM_STATIC UserAuthContext *InitAuthContext(AuthParamHal params) in InitAuthContext() 105 IAM_STATIC ResultCode SetContextExpiredTime(UserAuthContext *authContext) in SetContextExpiredTime() 334 IAM_STATIC ResultCode CheckCredentialSize(LinkedList *credList) in CheckCredentialSize() 448 IAM_STATIC bool IsContextDuplicate(uint64_t contextId) in IsContextDuplicate() 559 IAM_STATIC void DestroyContextNode(void *data) in DestroyContextNode() [all …]
|
H A D | user_auth_funcs.c | 34 #define IAM_STATIC macro 36 #define IAM_STATIC static macro 40 IAM_STATIC UnlockAuthResultCache g_unlockAuthResult = {false, 0, {}}; 42 IAM_STATIC UnlockAuthResultCache g_anyAuthResult = {false, 0, {}}; 75 IAM_STATIC void CacheUnlockAuthResult(int32_t userId, const UserAuthTokenHal *unlockToken) in CacheUnlockAuthResult() 83 IAM_STATIC void CacheAnyAuthResult(int32_t userId, const UserAuthTokenHal *unlockToken) in CacheAnyAuthResult() 91 IAM_STATIC void SetAuthResult(uint64_t credentialId, in SetAuthResult() 102 IAM_STATIC ResultCode GetExpiredInfoForResult(const UserAuthContext *context, AuthResult *result) in GetExpiredInfoForResult() 133 IAM_STATIC ResultCode HandleAuthSuccessResult(const UserAuthContext *context, const ExecutorResultI… in HandleAuthSuccessResult() 164 IAM_STATIC ResultCode SetAuthResultMsgToAttribute(Attribute *attribute, AuthResult *result, in SetAuthResultMsgToAttribute() [all …]
|
H A D | auth_level.c | 23 #define IAM_STATIC macro 25 #define IAM_STATIC static macro 35 IAM_STATIC AtlGeneration g_generationAtl[] = { 50 IAM_STATIC ResultCode QueryScheduleAsl(const CoAuthSchedule *coAuthSchedule, uint32_t *asl) in QueryScheduleAsl() 83 IAM_STATIC ResultCode GetExecutorAslAndAcl(uint32_t authType, uint32_t *asl, uint32_t *acl) in GetExecutorAslAndAcl() 124 IAM_STATIC ResultCode GetCredMaxAcl(int32_t userId, uint32_t authType, uint32_t *maxCredAcl) in GetCredMaxAcl()
|
H A D | auth_token_signer.c | 25 #define IAM_STATIC macro 27 #define IAM_STATIC static macro 30 IAM_STATIC ResultCode GetAuthTokenDataPlain( in GetAuthTokenDataPlain() 49 IAM_STATIC ResultCode GetAuthTokenDataToEncrypt(const UserAuthContext *context, uint64_t credential… in GetAuthTokenDataToEncrypt()
|
/ohos5.0/drivers/peripheral/user_auth/hdi_service/adaptor/src/ |
H A D | file_operator.c | 26 #define IAM_STATIC macro 28 #define IAM_STATIC static macro 31 IAM_STATIC bool IsFileExist(const char *fileName) in IsFileExist() 45 IAM_STATIC int32_t ReadFile(const char *fileName, uint8_t *buf, uint32_t len) in ReadFile() 67 IAM_STATIC int32_t WriteFile(const char *fileName, const uint8_t *buf, uint32_t len) in WriteFile() 99 IAM_STATIC int32_t GetFileLen(const char *fileName, uint32_t *len) in GetFileLen() 127 IAM_STATIC int32_t DeleteFile(const char *fileName) in DeleteFile()
|
H A D | adaptor_algorithm.c | 39 #define IAM_STATIC macro 41 #define IAM_STATIC static macro 44 IAM_STATIC KeyPair *CreateEd25519KeyPair(void) in CreateEd25519KeyPair() 225 IAM_STATIC int32_t IamHmac(const EVP_MD *alg, const Buffer *hmacKey, const Buffer *data, Buffer *hm… in IamHmac() 281 IAM_STATIC bool CheckAesGcmParam(const AesGcmParam *aesGcmParam) in CheckAesGcmParam()
|
/ohos5.0/drivers/peripheral/user_auth/hdi_service/coauth/src/ |
H A D | pool.c | 26 #define IAM_STATIC macro 28 #define IAM_STATIC static macro 32 IAM_STATIC LinkedList *g_poolList = NULL; 34 IAM_STATIC void DestroyExecutorInfo(void *data) in DestroyExecutorInfo() 43 IAM_STATIC bool IsExecutorIdMatchById(const void *data, const void *condition) in IsExecutorIdMatchById() 54 IAM_STATIC bool IsExecutorNodeMatch(const void *data, const void *condition) in IsExecutorNodeMatch() 68 IAM_STATIC bool IsInit(void) in IsInit() 90 IAM_STATIC bool IsExecutorValid(const ExecutorInfoHal *executorInfo) in IsExecutorValid() 99 IAM_STATIC bool IsExecutorIdDuplicate(uint64_t executorIndex) in IsExecutorIdDuplicate() 114 IAM_STATIC ResultCode GenerateValidExecutorId(uint64_t *executorIndex) in GenerateValidExecutorId() [all …]
|
H A D | executor_message.c | 31 #define IAM_STATIC macro 33 #define IAM_STATIC static macro 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() 263 IAM_STATIC Attribute *CreateAttributeFromExecutorMsg(const Uint8Array msg, SignParam signParam) in CreateAttributeFromExecutorMsg() 409 IAM_STATIC ResultCode SetExecutorMsgToAttribute(uint32_t authType, uint32_t authPropertyMode, in SetExecutorMsgToAttribute() 484 IAM_STATIC void DestoryExecutorMsg(void *data) in DestoryExecutorMsg() 494 IAM_STATIC ResultCode GetExecutorTemplateList( in GetExecutorTemplateList() 544 IAM_STATIC ResultCode AssemblyMessage( in AssemblyMessage() 579 IAM_STATIC ResultCode TraverseExecutor( in TraverseExecutor() [all …]
|
H A D | coauth.c | 26 #define IAM_STATIC macro 28 #define IAM_STATIC static macro 32 IAM_STATIC LinkedList *g_scheduleList = NULL; 34 IAM_STATIC bool IsCoAuthInit(void) in IsCoAuthInit() 134 IAM_STATIC bool IsScheduleMatch(const void *data, const void *condition) in IsScheduleMatch() 183 IAM_STATIC bool IsScheduleIdDuplicate(uint64_t scheduleId) in IsScheduleIdDuplicate() 198 IAM_STATIC ResultCode GenerateValidScheduleId(uint64_t *scheduleId) in GenerateValidScheduleId() 221 IAM_STATIC ResultCode MountExecutorOnce(const LinkedList *executors, CoAuthSchedule *coAuthSchedule, in MountExecutorOnce() 252 IAM_STATIC ResultCode MountExecutor(const ScheduleParam *param, CoAuthSchedule *coAuthSchedule) in MountExecutor()
|
/ohos5.0/drivers/peripheral/pin_auth/hdi_service/common/src/ |
H A D | attribute.c | 24 #define IAM_STATIC macro 26 #define IAM_STATIC static macro 62 IAM_STATIC uint32_t Ntohl32(uint32_t in) in Ntohl32() 67 IAM_STATIC uint32_t Htonl32(uint32_t in) in Htonl32() 72 IAM_STATIC uint64_t Ntohl64(uint64_t in) in Ntohl64() 77 IAM_STATIC uint64_t Htonl64(uint64_t in) in Htonl64() 82 IAM_STATIC void Ntohl64Array(Uint64Array *array) in Ntohl64Array() 89 IAM_STATIC void Htonl64Array(Uint64Array *array) in Htonl64Array() 96 IAM_STATIC ResultCode GetAttributeIndex(AttributeKey key, uint32_t *index) in GetAttributeIndex() 164 IAM_STATIC ResultCode WriteUInt32ToMsg(Uint8Array *msg, uint32_t *writeIndex, uint32_t value) in WriteUInt32ToMsg() [all …]
|
/ohos5.0/drivers/peripheral/user_auth/hdi_service/common/src/ |
H A D | user_sign_centre.c | 31 #define IAM_STATIC macro 33 #define IAM_STATIC static macro 36 IAM_STATIC bool IsTimeValid(const UserAuthTokenHal *userAuthToken) in IsTimeValid() 48 IAM_STATIC ResultCode UserAuthTokenHmac(UserAuthTokenHal *userAuthToken, HksAuthTokenKey *tokenKey) in UserAuthTokenHmac() 75 IAM_STATIC void DeinitAesGcmParam(AesGcmParam *aesGcmParam) in DeinitAesGcmParam() 83 IAM_STATIC ResultCode DecryptTokenCipher(const UserAuthTokenHal *userAuthToken, UserAuthTokenPlain … in DecryptTokenCipher() 124 IAM_STATIC ResultCode CheckUserAuthTokenHmac(const UserAuthTokenHal *userAuthToken, HksAuthTokenKey… in CheckUserAuthTokenHmac() 177 IAM_STATIC ResultCode InitAesGcmParam(AesGcmParam *aesGcmParam, const HksAuthTokenKey *tokenKey) in InitAesGcmParam() 199 IAM_STATIC ResultCode CopyTokenCipherParam(const Buffer *ciphertext, const Buffer *tag, const Buffe… in CopyTokenCipherParam() 230 IAM_STATIC ResultCode GetTokenDataCipherResult(const TokenDataToEncrypt *data, UserAuthTokenHal *au… in GetTokenDataCipherResult()
|
/ohos5.0/drivers/peripheral/user_auth/hdi_service/idm/src/ |
H A D | user_idm_funcs.c | 30 #define IAM_STATIC macro 32 #define IAM_STATIC static macro 35 IAM_STATIC ResultCode SetScheduleParam(const PermissionCheckParam *param, ScheduleParam *schedulePa… in SetScheduleParam() 54 IAM_STATIC CoAuthSchedule *GenerateIdmSchedule(const PermissionCheckParam *param) in GenerateIdmSchedule() 187 IAM_STATIC void GetInfoFromResult(CredentialInfoHal *credentialInfo, const ExecutorResultInfo *resu… in GetInfoFromResult() 197 IAM_STATIC ResultCode GetCredentialInfoFromSchedule(const ExecutorResultInfo *executorInfo, in GetCredentialInfoFromSchedule() 253 IAM_STATIC Buffer *GetAuthTokenForPinEnroll(const CredentialInfoHal *credentialInfo, int32_t userId) in GetAuthTokenForPinEnroll() 282 IAM_STATIC ResultCode ProcessAddPinCredential(int32_t userId, const CredentialInfoHal *credentialIn… in ProcessAddPinCredential() 421 IAM_STATIC ResultCode GetDeletedCredential(int32_t userId, CredentialInfoHal *deletedCredential) in GetDeletedCredential() 442 IAM_STATIC ResultCode CheckResultValid(uint64_t scheduleId, int32_t userId) in CheckResultValid() [all …]
|
H A D | enroll_specification_check.c | 23 #define IAM_STATIC macro 25 #define IAM_STATIC static macro 33 IAM_STATIC SpecificationMap g_specificationMap[] = { 39 IAM_STATIC uint32_t GetMaxNumber(uint32_t authType) in GetMaxNumber()
|
H A D | idm_session.c | 33 #define IAM_STATIC macro 35 #define IAM_STATIC static macro 50 IAM_STATIC Buffer *g_cacheRootSecret = NULL; 52 IAM_STATIC void DestroyCacheRootSecret(void) in DestroyCacheRootSecret() 58 IAM_STATIC bool IsSessionExist(void) in IsSessionExist() 67 IAM_STATIC ResultCode GenerateChallenge(uint8_t *challenge, uint32_t challengeLen) in GenerateChallenge()
|