Home
last modified time | relevance | path

Searched refs:algorithmType (Results 1 – 6 of 6) sorted by relevance

/base/security/device_auth/services/data_manager/cred_data_manager/inc/
Dcredential_data_manager.h38 uint8_t algorithmType; member
61 uint8_t algorithmType; member
/base/security/device_auth/services/data_manager/cred_data_manager/src/
Dcredential_data_manager.c45 CredTlvUint8 algorithmType; member
74 CRED_TLV_MEMBER(CredTlvUint8, algorithmType, 0x4009)
258 returnEntry->algorithmType = entry->algorithmType; in GenerateCredFromCred()
307 entry->algorithmType = credential->algorithmType.data; in GenerateCredentialFromTlv()
591 element->algorithmType.data = entry->algorithmType; in SetCredentialElement()
680 …if ((params->algorithmType != DEFAULT_CRED_PARAM_VAL) && (params->algorithmType != entry->algorith… in CompareIntParams()
875 uint8_t algorithmType = credInfo->algorithmType; in AddAlgorithmTypeToReturn() local
876 if (AddIntToJson(json, FIELD_ALGORITHM_TYPE, algorithmType) != IS_SUCCESS) { in AddAlgorithmTypeToReturn()
1246 … dprintf(fd, "||%-16s = %-43d| |\n", "algorithmType", credential->algorithmType); in DumpCredential()
/base/security/device_auth/services/identity_service/src/
Didentity_operation.c293 static Algorithm GetAlgoFromCred(uint8_t algorithmType) in GetAlgoFromCred() argument
295 switch (algorithmType) { in GetAlgoFromCred()
314 …uint32_t keyLen = (credential->algorithmType == ALGO_TYPE_AES_128) ? AES_128_KEY_LEN : ALGO_KEY_LE… in GenerateKeyValue()
366 Algorithm algo = GetAlgoFromCred(credential->algorithmType); in AddKeyValueToHuks()
536 if (GetUint8FromJson(json, FIELD_ALGORITHM_TYPE, &credential->algorithmType) != IS_SUCCESS) { in SetAlgorithmType()
542 if (!IsValueInArray(credential->algorithmType, algorithmTypeRange, length)) { in SetAlgorithmType()
878 if (GetUint8FromJson(json, FIELD_ALGORITHM_TYPE, &queryParams->algorithmType) == IS_SUCCESS) { in SetQueryParamsFromJson()
Didentity_service_impl.c601 agreeCredential->algorithmType, &selfCredIdByte, &peerKeyAlias, &agreeCredIdByte); in AgreeCredentialImplInner()
/base/security/device_auth/test/fuzztest/identityservice_fuzzer/
Didentityservice_fuzzer.cpp320 credential->algorithmType = ALGO_TYPE_AES_256; in CompareAlgorithmType()
322 credential->algorithmType = DEFAULT_CRED_PARAM_VAL; in CompareAlgorithmType()
324 params->algorithmType = ALGO_TYPE_AES_256; in CompareAlgorithmType()
325 credential->algorithmType = ALGO_TYPE_AES_256; in CompareAlgorithmType()
327 credential->algorithmType = ALGO_TYPE_AES_128; in CompareAlgorithmType()
329 params->algorithmType = DEFAULT_CRED_PARAM_VAL; in CompareAlgorithmType()
/base/security/device_auth/test/unittest/deviceauth/source/
Ddeviceauth_identity_service_test.cpp366 credential->algorithmType = ALGO_TYPE_AES_256; in CompareAlgorithmType()
368 credential->algorithmType = DEFAULT_CRED_PARAM_VAL; in CompareAlgorithmType()
370 params->algorithmType = ALGO_TYPE_AES_256; in CompareAlgorithmType()
371 credential->algorithmType = ALGO_TYPE_AES_256; in CompareAlgorithmType()
373 credential->algorithmType = ALGO_TYPE_AES_128; in CompareAlgorithmType()
375 params->algorithmType = DEFAULT_CRED_PARAM_VAL; in CompareAlgorithmType()