Searched refs:sigData (Results 1 - 2 of 2) sorted by relevance
/base/security/device_security_level/test/dslm_unit_test/ |
H A D | dslm_oem_property_test.cpp | 42 extern int32_t EcdsaVerify(const struct DataBuffer *srcData, const struct DataBuffer *sigData, 687 const DataBuffer sigData = {.length = length, .data = (uint8_t *)data}; in HWTEST_F() local 691 int32_t ret = EcdsaVerify(&srcData, &sigData, pbkData, algorithm); in HWTEST_F() 704 const DataBuffer sigData = {.length = length, .data = (uint8_t *)data}; in HWTEST_F() local 707 int32_t ret = EcdsaVerify(&srcData, &sigData, &pbkData, algorithm); in HWTEST_F() 713 // malformed sigData in HWTEST_F() 714 const DataBuffer sigData = {.length = length, .data = nullptr}; in HWTEST_F() local 717 int32_t ret = EcdsaVerify(&srcData, &sigData, &pbkData, algorithm); in HWTEST_F() 723 const DataBuffer sigData = {.length = length, .data = (uint8_t *)data}; in HWTEST_F() local 727 int32_t ret = EcdsaVerify(&srcData, &sigData, in HWTEST_F() 741 const DataBuffer sigData = {.length = length, .data = (uint8_t *)data}; HWTEST_F() local 751 const DataBuffer sigData = {.length = 0, .data = (uint8_t *)data}; HWTEST_F() local 760 const DataBuffer sigData = {.length = length, .data = (uint8_t *)data}; HWTEST_F() local 774 const DataBuffer sigData = {.length = length, .data = (uint8_t *)data}; HWTEST_F() local [all...] |
/base/security/device_security_level/oem_property/common/ |
H A D | dslm_credential_utils.c | 97 int32_t EcdsaVerify(const struct DataBuffer *srcData, const struct DataBuffer *sigData, 367 const char *sigData = DslmGetJsonFieldString(item, JSON_KEY_SIGNATURE); in ParsePublicKeyAttestation() local 368 if (sigData == NULL) { in ParsePublicKeyAttestation() 371 attestation->signature.length = (uint32_t)Base64UrlDecodeApp((uint8_t *)sigData, &attestation->signature.data); in ParsePublicKeyAttestation() 522 int32_t EcdsaVerify(const struct DataBuffer *srcData, const struct DataBuffer *sigData, in EcdsaVerify() argument 526 if (srcData == NULL || sigData == NULL || pbkData == NULL) { in EcdsaVerify() 529 if (srcData->data == NULL || sigData->data == NULL || pbkData->data == NULL || srcData->length == 0 || in EcdsaVerify() 530 sigData->length == 0 || pbkData->length == 0) { in EcdsaVerify() 563 if (EVP_DigestVerifyFinal(ctx, sigData->data, sigData in EcdsaVerify() [all...] |
Completed in 4 milliseconds