Home
last modified time | relevance | path

Searched refs:productKey (Results 1 - 16 of 16) sorted by relevance

/test/xts/device_attest/services/core/adapter/
H A Dattest_adapter_hal.c41 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 Dattest_adapter_mock.c277 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 Dattest_adapter_hal.c41 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 Dattest_adapter_mock.c276 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 Dkitfwk_oem_api_test.cpp317 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 Dattest_tdd_mock_hal.c41 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 Dattest_tdd_mock_hal.c43 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 Dkitfwk_oem_api_test.c327 char productKey[PRODUCT_KEY_LEN]; variable
328 int ret = GetProdKey(productKey, sizeof(productKey));
/test/xts/device_attest/services/oem_adapter/src/
H A Ddevice_attest_oem_adapter.c223 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 Dattest_security_token.c57 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 Dattest_security_token.c57 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 Ddevice_attest_oem_adapter.h76 * @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 Dattest_adapter_mock.h78 int OsGetProdKeyStub(char* productKey, uint32_t len);
H A Dattest_adapter.h68 int32_t AttestGetProductKey(uint8_t productKey[], uint32_t len);
/test/xts/device_attest_lite/services/core/include/adapter/
H A Dattest_adapter_mock.h78 int OsGetProdKeyStub(char* productKey, uint32_t len);
H A Dattest_adapter.h68 int32_t AttestGetProductKey(uint8_t productKey[], uint32_t len);

Completed in 8 milliseconds