/test/xts/device_attest/services/core/adapter/ |
H A D | attest_adapter_hal.c | 41 int32_t AttestGetProductKey(uint8_t productKey[], uint32_t len)
in AttestGetProductKey() argument 44 return OsGetProdKeyStub((char*)productKey, len);
in AttestGetProductKey() 46 return OEMGetProductKey((char*)productKey, len);
in AttestGetProductKey()
|
H A D | attest_adapter_mock.c | 277 int OsGetProdKeyStub(char* productKey, uint32_t len) in OsGetProdKeyStub() argument 279 if ((productKey == NULL) || (len == 0)) { in OsGetProdKeyStub() 283 char *productKeyBuf = GetDeviceParaStub("productKey"); in OsGetProdKeyStub() 293 int ret = memcpy_s(productKey, len, productKeyBuf, productKeyLen); in OsGetProdKeyStub()
|
/test/xts/device_attest_lite/services/core/adapter/ |
H A D | attest_adapter_hal.c | 41 int32_t AttestGetProductKey(uint8_t productKey[], uint32_t len)
in AttestGetProductKey() argument 44 return OsGetProdKeyStub((char*)productKey, len);
in AttestGetProductKey() 46 return HalGetProdKey((char*)productKey, len);
in AttestGetProductKey()
|
H A D | attest_adapter_mock.c | 276 int OsGetProdKeyStub(char* productKey, uint32_t len) in OsGetProdKeyStub() argument 278 if ((productKey == NULL) || (len == 0)) { in OsGetProdKeyStub() 282 char *productKeyBuf = GetDeviceParaStub("productKey"); in OsGetProdKeyStub() 292 int ret = memcpy_s(productKey, len, productKeyBuf, productKeyLen); in OsGetProdKeyStub()
|
/test/xts/acts/applications/kitframework_ipcamera/ |
H A D | kitfwk_oem_api_test.cpp | 317 char productKey[PRODUCT_KEY_LEN];
in HWTEST_F() local 318 int ret = GetProdKey(productKey, sizeof(productKey));
in HWTEST_F()
|
/test/xts/device_attest/services/devattest_ability/test/tdd/gtest/src/ |
H A D | attest_tdd_mock_hal.c | 41 int32_t AttestGetProductKey(uint8_t productKey[], uint32_t len) in AttestGetProductKey() argument 43 return memcpy_s(productKey, len, ATTEST_MOCK_HAL_PRO_KEY, strlen(ATTEST_MOCK_HAL_PRO_KEY)); in AttestGetProductKey()
|
/test/xts/device_attest_lite/test/tdd/gtest/src/ |
H A D | attest_tdd_mock_hal.c | 43 int32_t AttestGetProductKey(uint8_t productKey[], uint32_t len) in AttestGetProductKey() argument 45 return memcpy_s(productKey, len, ATTEST_MOCK_HAL_PRO_KEY, strlen(ATTEST_MOCK_HAL_PRO_KEY)); in AttestGetProductKey()
|
/test/xts/acts/applications/kitframework/ |
H A D | kitfwk_oem_api_test.c | 327 char productKey[PRODUCT_KEY_LEN];
variable 328 int ret = GetProdKey(productKey, sizeof(productKey));
|
/test/xts/device_attest/services/oem_adapter/src/ |
H A D | device_attest_oem_adapter.c | 223 int32_t OEMGetProductKey(char* productKey, uint32_t len) in OEMGetProductKey() argument 225 if ((productKey == NULL) || (len == 0)) { in OEMGetProductKey() 235 int32_t ret = memcpy_s(productKey, len, productKeyBuf, productKeyLen); in OEMGetProductKey()
|
/test/xts/device_attest/services/core/security/ |
H A D | attest_security_token.c | 57 uint8_t productKey[PRODUCT_KEY_LEN + 1] = {0}; in GetIKM() local 58 if (AttestGetProductKey(productKey, PRODUCT_KEY_LEN) != ATTEST_OK) { in GetIKM() 59 ATTEST_LOG_ERROR("[GetIKM] Failed to get productKey"); in GetIKM() 69 int32_t productKeyLen = strlen((const char *)productKey); in GetIKM() 83 if ((memcpy_s(ikm, ikmSize, productKey, productKeyLen) != 0) || \ in GetIKM() 90 (void)memset_s(productKey, PRODUCT_KEY_LEN + 1, 0, PRODUCT_KEY_LEN + 1); in GetIKM()
|
/test/xts/device_attest_lite/services/core/security/ |
H A D | attest_security_token.c | 57 uint8_t productKey[PRODUCT_KEY_LEN + 1] = {0}; in GetIKM() local 58 if (AttestGetProductKey(productKey, PRODUCT_KEY_LEN) != ATTEST_OK) { in GetIKM() 59 ATTEST_LOG_ERROR("[GetIKM] Failed to get productKey"); in GetIKM() 69 int32_t productKeyLen = strlen((const char *)productKey); in GetIKM() 83 if ((memcpy_s(ikm, ikmSize, productKey, productKeyLen) != 0) || \ in GetIKM() 90 (void)memset_s(productKey, PRODUCT_KEY_LEN + 1, 0, PRODUCT_KEY_LEN + 1); in GetIKM()
|
/test/xts/device_attest/services/oem_adapter/include/ |
H A D | device_attest_oem_adapter.h | 76 * @param productKey : The productKey value 77 * @param len : The productKey len. 80 int32_t OEMGetProductKey(char* productKey, uint32_t len);
|
/test/xts/device_attest/services/core/include/adapter/ |
H A D | attest_adapter_mock.h | 78 int OsGetProdKeyStub(char* productKey, uint32_t len);
|
H A D | attest_adapter.h | 68 int32_t AttestGetProductKey(uint8_t productKey[], uint32_t len);
|
/test/xts/device_attest_lite/services/core/include/adapter/ |
H A D | attest_adapter_mock.h | 78 int OsGetProdKeyStub(char* productKey, uint32_t len);
|
H A D | attest_adapter.h | 68 int32_t AttestGetProductKey(uint8_t productKey[], uint32_t len);
|