Home
last modified time | relevance | path

Searched refs:productKeyLen (Results 1 - 5 of 5) sorted by relevance

/test/xts/device_attest/services/core/adapter/
H A Dattest_adapter_mock.c287 uint32_t productKeyLen = strlen(productKeyBuf); in OsGetProdKeyStub() local
288 if (len < productKeyLen) { 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_mock.c286 uint32_t productKeyLen = strlen(productKeyBuf); in OsGetProdKeyStub() local
287 if (len < productKeyLen) { in OsGetProdKeyStub()
292 int ret = memcpy_s(productKey, len, productKeyBuf, productKeyLen); in OsGetProdKeyStub()
/test/xts/device_attest/services/oem_adapter/src/
H A Ddevice_attest_oem_adapter.c230 uint32_t productKeyLen = sizeof(productKeyBuf); in OEMGetProductKey() local
231 if (len < productKeyLen) { 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.c69 int32_t productKeyLen = strlen((const char *)productKey); in GetIKM() local
71 if ((productKeyLen > PRODUCT_KEY_LEN) || (productIdLen > PRODUCT_ID_LEN)) { in GetIKM()
76 int32_t ikmSize = productKeyLen + productIdLen + 1; in GetIKM()
83 if ((memcpy_s(ikm, ikmSize, productKey, productKeyLen) != 0) || \ in GetIKM()
84 (memcpy_s(ikm + productKeyLen, ikmSize, productId, productIdLen) != 0)) { in GetIKM()
/test/xts/device_attest_lite/services/core/security/
H A Dattest_security_token.c69 int32_t productKeyLen = strlen((const char *)productKey); in GetIKM() local
71 if ((productKeyLen > PRODUCT_KEY_LEN) || (productIdLen > PRODUCT_ID_LEN)) { in GetIKM()
76 int32_t ikmSize = productKeyLen + productIdLen + 1; in GetIKM()
83 if ((memcpy_s(ikm, ikmSize, productKey, productKeyLen) != 0) || \ in GetIKM()
84 (memcpy_s(ikm + productKeyLen, ikmSize, productId, productIdLen) != 0)) { in GetIKM()

Completed in 6 milliseconds