Searched refs:credBuff (Results 1 - 7 of 7) sorted by relevance
/base/security/device_security_level/oem_property/common/ |
H A D | dslm_credential.c | 45 int32_t DefaultRequestDslmCred(const DeviceIdentify *device, const RequestObject *obj, DslmCredBuff **credBuff) in DefaultRequestDslmCred() argument 50 return request(device, obj, credBuff); in DefaultRequestDslmCred() 56 int32_t DefaultVerifyDslmCred(const DeviceIdentify *device, uint64_t challenge, const DslmCredBuff *credBuff, in DefaultVerifyDslmCred() argument 62 return verify(device, challenge, credBuff, credInfo); in DefaultVerifyDslmCred() 122 void DestroyDslmCred(DslmCredBuff *credBuff) in DestroyDslmCred() argument 124 if (credBuff == NULL) { in DestroyDslmCred() 127 if (credBuff->credVal != NULL) { in DestroyDslmCred() 128 FREE(credBuff->credVal); in DestroyDslmCred() 129 credBuff->credVal = NULL; in DestroyDslmCred() 131 FREE(credBuff); in DestroyDslmCred() [all...] |
/base/security/device_security_level/oem_property/include/ |
H A D | dslm_credential.h | 27 int32_t DefaultRequestDslmCred(const DeviceIdentify *device, const RequestObject *obj, DslmCredBuff **credBuff); 29 int32_t DefaultVerifyDslmCred(const DeviceIdentify *device, uint64_t challenge, const DslmCredBuff *credBuff, 36 int32_t VerifyOhosDslmCred(const DeviceIdentify *device, uint64_t challenge, const DslmCredBuff *credBuff, 39 int32_t RequestOhosDslmCred(const DeviceIdentify *device, const RequestObject *obj, DslmCredBuff **credBuff);
|
H A D | dslm_cred.h | 71 typedef int32_t RequestDslmCredFunc(const DeviceIdentify *device, const RequestObject *obj, DslmCredBuff **credBuff); 72 typedef int32_t VerifyDslmCredFunc(const DeviceIdentify *device, uint64_t challenge, const DslmCredBuff *credBuff, 91 void DestroyDslmCred(DslmCredBuff *credBuff);
|
/base/security/device_security_level/oem_property/ohos/common/ |
H A D | dslm_ohos_verify.c | 209 static int32_t VerifyLiteDslmCred(const DeviceIdentify *device, const DslmCredBuff *credBuff, DslmCredInfo *credInfo) in VerifyLiteDslmCred() argument 211 if (credBuff->credLen > UINT16_MAX) { in VerifyLiteDslmCred() 216 if (memcpy_s(credStr, DSLM_CRED_STR_LEN_MAX, credBuff->credVal, credBuff->credLen + 1) != EOK) { in VerifyLiteDslmCred() 235 static int32_t VerifyStandardDslmCred(const DeviceIdentify *device, uint64_t challenge, const DslmCredBuff *credBuff, in VerifyStandardDslmCred() argument 247 ret = ValidateCertChainAdapter(credBuff->credVal, credBuff->credLen, &resultInfo); in VerifyStandardDslmCred() 280 int32_t VerifyOhosDslmCred(const DeviceIdentify *device, uint64_t challenge, const DslmCredBuff *credBuff, in VerifyOhosDslmCred() argument 283 if (device == NULL || credBuff == NULL || credInfo == NULL) { in VerifyOhosDslmCred() 288 credInfo->credType = credBuff in VerifyOhosDslmCred() [all...] |
H A D | dslm_ohos_request.c | 119 static int32_t RequestLiteDslmCred(uint32_t credType, uint8_t *data, uint32_t dataLen, DslmCredBuff **credBuff) in RequestLiteDslmCred() argument 126 *credBuff = out; in RequestLiteDslmCred() 132 DslmCredBuff **credBuff) in RequestStandardDslmCred() 148 *credBuff = out; in RequestStandardDslmCred() 217 int32_t RequestOhosDslmCred(const DeviceIdentify *device, const RequestObject *obj, DslmCredBuff **credBuff) in RequestOhosDslmCred() argument 234 return RequestStandardDslmCred(device, obj, credStr, credBuff); in RequestOhosDslmCred() 237 return RequestLiteDslmCred(credType, (uint8_t *)credStr, strlen(credStr) + 1, credBuff); in RequestOhosDslmCred() 131 RequestStandardDslmCred(const DeviceIdentify *device, const RequestObject *obj, char *credStr, DslmCredBuff **credBuff) RequestStandardDslmCred() argument
|
H A D | dslm_ohos_verify.h | 28 int32_t VerifyOhosDslmCred(const DeviceIdentify *device, uint64_t challenge, const DslmCredBuff *credBuff,
|
H A D | dslm_ohos_request.h | 29 int32_t RequestOhosDslmCred(const DeviceIdentify *device, const RequestObject *obj, DslmCredBuff **credBuff);
|
Completed in 3 milliseconds