Searched refs:productKeyLen (Results 1 - 5 of 5) sorted by relevance
/test/xts/device_attest/services/core/adapter/ |
H A D | attest_adapter_mock.c | 287 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 D | attest_adapter_mock.c | 286 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 D | device_attest_oem_adapter.c | 230 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 D | attest_security_token.c | 69 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 D | attest_security_token.c | 69 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