From 5c3c013c6ca3cc421459594916bc504c34db831c Mon Sep 17 00:00:00 2001 From: cherat01 Date: Thu, 14 Feb 2019 16:54:21 +0530 Subject: [PATCH] Reverting constant read buffer & MAX_UINT32 len check Change-Id: I0fcd0cac80343fc90b42eeaecfbd13a05c4c5a4f --- .../test_s003/test_s003.c | 8 ++++++-- .../test_s008/test_its_data.h | 3 --- .../test_s008/test_ps_data.h | 3 --- .../test_s008/test_s008.c | 8 ++------ .../test_s009/test_its_data.h | 3 --- .../test_s009/test_ps_data.h | 3 --- .../test_s009/test_s009.c | 16 +++++----------- api-tests/docs/psa_its_testlist.md | 2 +- api-tests/docs/psa_ps_testlist.md | 2 +- .../targets/tgt_dev_apis_tfm_an521/Makefile | 4 ++-- .../targets/tgt_dev_apis_tfm_musca_a/Makefile | 4 ++-- .../reference_logs/protected_storage.txt | 16 ++++------------ 12 files changed, 23 insertions(+), 49 deletions(-) diff --git a/api-tests/dev_apis/internal_trusted_storage/test_s003/test_s003.c b/api-tests/dev_apis/internal_trusted_storage/test_s003/test_s003.c index 74085429..fcd9a081 100755 --- a/api-tests/dev_apis/internal_trusted_storage/test_s003/test_s003.c +++ b/api-tests/dev_apis/internal_trusted_storage/test_s003/test_s003.c @@ -25,7 +25,7 @@ #endif #define TEST_BUFF_SIZE 1024 -#define NUM_ITERATIONS 5 +#define NUM_ITERATIONS 2 #define TEST_BASE_UID_VALUE UID_BASE_VALUE + 5 client_test_t test_s003_sst_list[] = { @@ -35,6 +35,9 @@ client_test_t test_s003_sst_list[] = { }; static uint8_t write_buff[TEST_BUFF_SIZE]; +static char test_desc[2][80] = { + "Overload storage space\n", + "Overload storage again to verify all previous UID removed\n"}; int32_t psa_sst_insufficient_space(security_t caller) { @@ -46,7 +49,8 @@ int32_t psa_sst_insufficient_space(security_t caller) /* Saturate the storage for NUM_ITERATION times, and remove them after */ for (i = 0 ; i < NUM_ITERATIONS; i++) { - val->print(PRINT_TEST, "[Check %d] Overload storage space\n", i + 1 ); + val->print(PRINT_TEST, "[Check %d] ", i + 1); + val->print(PRINT_TEST, &test_desc[i][0], 0); for (uid = TEST_BASE_UID_VALUE; status == PSA_SST_SUCCESS; uid++) { val->print(PRINT_INFO, "Setting 0x%x bytes for ", TEST_BUFF_SIZE); diff --git a/api-tests/dev_apis/internal_trusted_storage/test_s008/test_its_data.h b/api-tests/dev_apis/internal_trusted_storage/test_s008/test_its_data.h index a48ea375..89093d49 100755 --- a/api-tests/dev_apis/internal_trusted_storage/test_s008/test_its_data.h +++ b/api-tests/dev_apis/internal_trusted_storage/test_s008/test_its_data.h @@ -67,9 +67,6 @@ static const test_data s008_data[] = { { VAL_ITS_GET, PSA_ITS_SUCCESS /* Call get API with offset = MAX_UINT32 */ }, -{ - VAL_ITS_GET, PSA_ITS_SUCCESS /* Call get API with length = MAX_UINT32 */ -}, { VAL_ITS_REMOVE, PSA_ITS_SUCCESS /* Remove the storage entity */ }, diff --git a/api-tests/dev_apis/internal_trusted_storage/test_s008/test_ps_data.h b/api-tests/dev_apis/internal_trusted_storage/test_s008/test_ps_data.h index 8b2c4811..2b15d358 100755 --- a/api-tests/dev_apis/internal_trusted_storage/test_s008/test_ps_data.h +++ b/api-tests/dev_apis/internal_trusted_storage/test_s008/test_ps_data.h @@ -67,9 +67,6 @@ static const test_data s008_data[] = { { VAL_PS_GET, PSA_PS_SUCCESS /* Call get API with offset = MAX_UINT32 */ }, -{ - VAL_PS_GET, PSA_PS_SUCCESS /* Call get API with length = MAX_UINT32 */ -}, { VAL_PS_REMOVE, PSA_PS_SUCCESS /* Remove the storage entity */ }, diff --git a/api-tests/dev_apis/internal_trusted_storage/test_s008/test_s008.c b/api-tests/dev_apis/internal_trusted_storage/test_s008/test_s008.c index ce26e2e6..8374f36e 100755 --- a/api-tests/dev_apis/internal_trusted_storage/test_s008/test_s008.c +++ b/api-tests/dev_apis/internal_trusted_storage/test_s008/test_s008.c @@ -73,13 +73,9 @@ int32_t psa_sst_invalid_offset_failure(security_t caller) status = SST_FUNCTION(s008_data[12].api, uid, TEST_MAX_UINT32, TEST_BUFF_SIZE/2, read_buff); TEST_ASSERT_NOT_EQUAL(status, s008_data[12].status, TEST_CHECKPOINT_NUM(12)); - /* Try to access data with valid non-zero offset and length equal to MAX_UINT21 */ - status = SST_FUNCTION(s008_data[13].api, uid, 4, TEST_MAX_UINT32, read_buff); - TEST_ASSERT_NOT_EQUAL(status, s008_data[13].status, TEST_CHECKPOINT_NUM(13)); - /* Remove the UID */ - status = SST_FUNCTION(s008_data[14].api, uid); - TEST_ASSERT_EQUAL(status, s008_data[14].status, TEST_CHECKPOINT_NUM(14)); + status = SST_FUNCTION(s008_data[13].api, uid); + TEST_ASSERT_EQUAL(status, s008_data[13].status, TEST_CHECKPOINT_NUM(13)); return VAL_STATUS_SUCCESS; } diff --git a/api-tests/dev_apis/internal_trusted_storage/test_s009/test_its_data.h b/api-tests/dev_apis/internal_trusted_storage/test_s009/test_its_data.h index 3d88ceb3..a4f0b7e1 100755 --- a/api-tests/dev_apis/internal_trusted_storage/test_s009/test_its_data.h +++ b/api-tests/dev_apis/internal_trusted_storage/test_s009/test_its_data.h @@ -56,9 +56,6 @@ static const test_data s009_data[] = { { VAL_ITS_SET, PSA_ITS_SUCCESS /* Increase the asset size */ }, -{ - VAL_ITS_GET, PSA_ITS_ERROR_INVALID_ARGUMENTS /* Call get API with constant read buffer */ -}, { VAL_ITS_REMOVE, PSA_ITS_SUCCESS /* Remove the storage entity */ }, diff --git a/api-tests/dev_apis/internal_trusted_storage/test_s009/test_ps_data.h b/api-tests/dev_apis/internal_trusted_storage/test_s009/test_ps_data.h index 8030b6d1..982561c8 100755 --- a/api-tests/dev_apis/internal_trusted_storage/test_s009/test_ps_data.h +++ b/api-tests/dev_apis/internal_trusted_storage/test_s009/test_ps_data.h @@ -56,9 +56,6 @@ static const test_data s009_data[] = { { VAL_PS_SET, PSA_PS_SUCCESS /* Increase the asset size */ }, -{ - VAL_PS_GET, PSA_PS_ERROR_INVALID_ARGUMENT /* Call get API with constant read buffer */ -}, { VAL_PS_REMOVE, PSA_PS_SUCCESS /* Remove the storage entity */ }, diff --git a/api-tests/dev_apis/internal_trusted_storage/test_s009/test_s009.c b/api-tests/dev_apis/internal_trusted_storage/test_s009/test_s009.c index e1516159..a1b54246 100755 --- a/api-tests/dev_apis/internal_trusted_storage/test_s009/test_s009.c +++ b/api-tests/dev_apis/internal_trusted_storage/test_s009/test_s009.c @@ -35,14 +35,13 @@ client_test_t test_s009_sst_list[] = { static psa_sst_uid_t uid = UID_BASE_VALUE + 5; static uint8_t write_buff[TEST_BUFF_SIZE] = {0x99, 0x01, 0x02, 0x03, 0x04, 0x23, 0xF6, 0x07, 0x08, \ 0x0D, 0x70, 0xA1, 0xFF, 0xFF, 0x14, 0x73, 0x46, 0x97, 0xE8, 0xDD}; -static const uint8_t read_buff[TEST_BUFF_SIZE]; int32_t psa_sst_invalid_arguments_check(security_t caller) { uint32_t status; /* Set data for UID with length 0 and NULL pointer */ - val->print(PRINT_TEST, "[Check 1] Call set API with NULL write buffer\n", 0); + val->print(PRINT_TEST, "[Check 1] Call set API with NULL pointer and data length 0\n", 0); status = SST_FUNCTION(s009_data[1].api, uid, 0, NULL, 0); TEST_ASSERT_EQUAL(status, s009_data[1].status, TEST_CHECKPOINT_NUM(1)); @@ -56,7 +55,7 @@ int32_t psa_sst_invalid_arguments_check(security_t caller) TEST_ASSERT_EQUAL(status, s009_data[3].status, TEST_CHECKPOINT_NUM(3)); /* Set data for UID with length 0 and NULL pointer */ - val->print(PRINT_TEST, "[Check 3] Try to set NULL buffer for UID with data length\n", 0); + val->print(PRINT_TEST, "[Check 3] Try to set NULL buffer for existing UID\n", 0); status = SST_FUNCTION(s009_data[4].api, uid, 0, NULL, 0); TEST_ASSERT_EQUAL(status, s009_data[4].status, TEST_CHECKPOINT_NUM(4)); @@ -66,7 +65,7 @@ int32_t psa_sst_invalid_arguments_check(security_t caller) TEST_ASSERT_EQUAL(info.size, 0, TEST_CHECKPOINT_NUM(6)); /* Call get API with NULL read buffer and valid UID */ - val->print(PRINT_TEST, "[Check 4] Call get API with NULL read buffer\n", 0); + val->print(PRINT_TEST, "[Check 4] Call get API with NULL read buffer and data length 0\n", 0); status = SST_FUNCTION(s009_data[7].api, uid, 0, 0, NULL); TEST_ASSERT_EQUAL(status, s009_data[7].status, TEST_CHECKPOINT_NUM(7)); @@ -75,14 +74,9 @@ int32_t psa_sst_invalid_arguments_check(security_t caller) status = SST_FUNCTION(s009_data[8].api, uid, TEST_BUFF_SIZE, write_buff, 0); TEST_ASSERT_EQUAL(status, s009_data[8].status, TEST_CHECKPOINT_NUM(8)); - /* Call the get function with const read bufferr */ - val->print(PRINT_TEST, "[Check 6] Call get API with const read buffer\n", 0); - status = SST_FUNCTION(s009_data[9].api, uid, 0, TEST_BUFF_SIZE, read_buff); - TEST_ASSERT_EQUAL(status, s009_data[9].status, TEST_CHECKPOINT_NUM(9)); - /* Remove the UID */ - status = SST_FUNCTION(s009_data[10].api, uid); - TEST_ASSERT_EQUAL(status, s009_data[10].status, TEST_CHECKPOINT_NUM(10)); + status = SST_FUNCTION(s009_data[9].api, uid); + TEST_ASSERT_EQUAL(status, s009_data[9].status, TEST_CHECKPOINT_NUM(9)); return VAL_STATUS_SUCCESS; } diff --git a/api-tests/docs/psa_its_testlist.md b/api-tests/docs/psa_its_testlist.md index 73c5e172..61a86d5b 100644 --- a/api-tests/docs/psa_its_testlist.md +++ b/api-tests/docs/psa_its_testlist.md @@ -13,7 +13,7 @@ Following are the requirements of the Storage Test Suite.
|-----------|--------------------------------------|------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | test_s001 | PSA_ITS_ERROR_UID_NOT_FOUND | psa_its_get
psa_its_get_info
psa_its_remove
| 1. Call get API with UID for which no UID/Data pair is created
2. Call get_info API for which no UID/Data pair is created
3. Call remove API for which no UID/Data pair is created
4. Set valid UID/Data pair with uid1
5. Set one more set of UID/Data pair, with different uid, than previous
6. Remove the uid of step 4.
7. Call get API for removed UID/data pair
8. Call get_info API for removed UID/Data pair
9. Call remove API for removed UID/Data pair
10. Set valid UID/Data pair
11. Call get API for different uid , then created
12. Call get_info API for different uid, then created
13. Call remove API for different uid, then created
14. Remove the created UID/Data pair.
15. Remove the stray uid.
| UID value used are 5,6,7 | | test_s002 | PSA_ITS_ERROR_WRITE_ONCE | psa_its_set
psa_its_remove
| 1. Set valid UID/data value pair , with create flag value none.2. Call get and get_info API to validate the data, attributes associated with data
3. Call set API again with same uid and create flag PSA_PS_WRITE_ONCE_FLAG
4. Call get and get_info API to validate the data, attributes associated with data is not changed after second set operation
5. try to remove the UID/data pair.
6. Create new UID/data value pair, with create flag PSA_PS_WRITE_ONCE_FLAG
7. Try to remove the created UID.
8. Call get and get_info API to validate the data, attributes associated with data
9. Again call SET with same UID , create flag PSA_PS_WRITE_ONCE_FLAG but different data length
10. Try to remove the UID, PSA_ITS_ERROR_WRITE_ONCE error should be returned
11. Call get and get_info API to validate the data, attributes associated with data
| UID value used are 1 and 2 | -| test_s003 | PSA_ITS_ERROR_INSUFFICIENT_SPACE | psa_its_set
| 1. Create UID/data pairs, with data_len 256 bytes. Do this with incrementing uid values till we have INSUFFICENT_SPACE.
2. Remove all the UID/data pairs created.
3. Repeat the steps 5 times, to check same number of uid
| UID value starts from 5 and keep on incrementing till all space is exhausted | +| test_s003 | PSA_ITS_ERROR_INSUFFICIENT_SPACE | psa_its_set
| 1. Create UID/data pairs, with data_len 256 bytes. Do this with incrementing uid values till we have INSUFFICENT_SPACE.
2. Remove all the UID/data pairs created.
3. Repeat the steps once more, to check all previous uid are removed successfully
| UID value starts from 5 and keep on incrementing till all space is exhausted | | test_s004 | PSA_ITS_SUCCESS | psa_its_set
psa_its_get
psa_its_get_info
psa_its_remove
| 1. Set a valid uid/data pair
2. Validate the data using get api
3. Change the data length to half of previous.
4. Call GET api with original data length , error should be returned and also the return buffer should be empty
5. Call GET api with correct data_len and validate the data received.
6. Check old data cannot be accessed.
7. Call REMOVE api to delete the UID/data pair
| UID value used is 5 | | test_s005 | PSA_ITS_SUCCESS | psa_its_set
psa_its_get
psa_its_get_info
psa_its_remove
| 1. Set valid UID/data pair with varying uid and data_len
2. Call GET api and validate the set data
3. Call GET info api and validate the data attributes
4. Call REMOVE api to delete the UID/data pair
| UID value used are 4 | | test_s006 | PSA_ITS_ERROR_FLAGS_NOT_SUPPORTED | psa_its_set
| 1. Call the SET_INFO with minimum flag value to max flag value
2. Call GET_INFO api and validate the flag value
3. Remove the uid/data pair
| UID value used is 5 | diff --git a/api-tests/docs/psa_ps_testlist.md b/api-tests/docs/psa_ps_testlist.md index 4af927b0..6e10a9c2 100644 --- a/api-tests/docs/psa_ps_testlist.md +++ b/api-tests/docs/psa_ps_testlist.md @@ -13,7 +13,7 @@ Following are the requirements of the Storage Test Suite.
|-----------|--------------------------------------|------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | test_s001 | PSA_PS_ERROR_UID_NOT_FOUND | psa_ps_get
psa_ps_get_info
psa_ps_remove
| 1. Call get API with UID for which no UID/Data pair is created.
2. Call get_info API for which no UID/Data pair is created.
3. Call remove API for which no UID/Data pair is created.
4. Set valid UID/Data pair with uid1.
5. Set one more set of UID/Data pair, with different uid, than previous.
6. Remove the uid of step 4.
7. Call get API for removed UID/data pair.
8. Call get_info API for removed UID/Data pair.
9. Call remove API for removed UID/Data pair.
10. Set valid UID/Data pair.
11. Call get API for different uid , then created.
12. Call get_info API for different uid, then created.
13. Call remove API for different uid, then created.
14. Remove the created UID/Data pair.
15. Remove the stray uid.
| UID value used are 5, 6, 7 | | test_s002 | PSA_PS_ERROR_WRITE_ONCE | psa_ps_set
psa_ps_remove
| 1. Set valid UID/data value pair , with create flag value none.
2. Call get and get_info API to validate the data, attributes associated with data.
3. Call set API again with same uid and create flag PSA_PS_WRITE_ONCE_FLAG.
4. Call get and get_info API to validate the data, attributes associated with data is not changed after second set operation
5. Try to remove the UID/data pair.
6. Create new UID/data value pair, with create flag PSA_PS_WRITE_ONCE_FLAG.
7. Try to remove the created UID.
8. Call get and get_info API to validate the data, attributes associated with data.
9. Again call SET with same UID , create flag PSA_PS_WRITE_ONCE_FLAG but different data length.
10. Try to remove the UID, PSA_PS_ERROR_WRITE_ONCE error should be returned.
11. Call get and get_info API to validate the data, attributes associated with data.
| UID value used are 1 and 2 | -| test_s003 | PSA_PS_ERROR_INSUFFICIENT_SPACE | psa_ps_set
| 1. Create UID/data pairs, with data_len 256 bytes. Do this with incrementing uid values till we have INSUFFICENT_SPACE.
2. Remove all the UID/data pairs created.
3. Repeat the steps 5 times, to check same number of uid.
| UID value starts from 5 and keep on incrementing till all space is exhausted | +| test_s003 | PSA_PS_ERROR_INSUFFICIENT_SPACE | psa_ps_set
| 1. Create UID/data pairs, with data_len 256 bytes. Do this with incrementing uid values till we have INSUFFICENT_SPACE.
2. Remove all the UID/data pairs created.
3. Repeat the steps once more, to check all previous uid are removed successfully.
| UID value starts from 5 and keep on incrementing till all space is exhausted | | test_s004 | PSA_PS_SUCCESS | psa_ps_set
psa_ps_get
psa_ps_get_info
psa_ps_remove
| 1. Set a valid uid/data pair.
2. Validate the data using get api.
3. Change the data length to half of previous.
4. Call GET api with original data length , error should be returned and also the return buffer should be empty.
5. Call GET api with correct data_len and validate the data received.
6. Check old data cannot be accessed.
7. Call REMOVE api to delete the UID/data pair.
| UID value used is 5 | | test_s005 | PSA_PS_SUCCESS | psa_ps_set
psa_ps_get
psa_ps_get_info
psa_ps_remove
| 1. Set valid UID/data pair with varying uid and data_len.
2. Call GET api and validate the set data.
3. Call GET info api and validate the data attributes.
4. Call REMOVE api to delete the UID/data pair.
| UID value used are 4 | | test_s006 | PSA_PS_ERROR_FLAGS_NOT_SUPPORTED | psa_ps_set
| 1. Call the SET_INFO with minimum flag value to max flag value.
2. Call GET_INFO api and validae the flag value.
3. Remove the uid/data pair.
| UID value used is 5 | diff --git a/api-tests/platform/targets/tgt_dev_apis_tfm_an521/Makefile b/api-tests/platform/targets/tgt_dev_apis_tfm_an521/Makefile index 6244a9cc..3bd8c232 100644 --- a/api-tests/platform/targets/tgt_dev_apis_tfm_an521/Makefile +++ b/api-tests/platform/targets/tgt_dev_apis_tfm_an521/Makefile @@ -25,13 +25,13 @@ PSA_IPC_IMPLEMENTED:=0 PSA_CRYPTO_IMPLEMENTED:=1 ## PSA_PROTECTED_STORAGE_IMPLEMENTED must be true for PROTECTED_STORAGE SUITE -PSA_PROTECTED_STORAGE_IMPLEMENTED:=0 +PSA_PROTECTED_STORAGE_IMPLEMENTED:=1 ## PSA_INTERNAL_TRUSTED_STORAGE_IMPLEMENTED must be true for INTERNAL_TRUSTED_STORAGE SUITE PSA_INTERNAL_TRUSTED_STORAGE_IMPLEMENTED:=0 ## PSA_INITIAL_ATTESTATION_IMPLEMENTED must be true for INITIAL_ATTESTATION SUITE -PSA_INITIAL_ATTESTATION_IMPLEMENTED:=0 +PSA_INITIAL_ATTESTATION_IMPLEMENTED:=1 # Make variables holding NSPE/SPE source files diff --git a/api-tests/platform/targets/tgt_dev_apis_tfm_musca_a/Makefile b/api-tests/platform/targets/tgt_dev_apis_tfm_musca_a/Makefile index 37ef21e3..00829ae7 100644 --- a/api-tests/platform/targets/tgt_dev_apis_tfm_musca_a/Makefile +++ b/api-tests/platform/targets/tgt_dev_apis_tfm_musca_a/Makefile @@ -25,13 +25,13 @@ PSA_IPC_IMPLEMENTED:=0 PSA_CRYPTO_IMPLEMENTED:=1 ## PSA_PROTECTED_STORAGE_IMPLEMENTED must be true for PROTECTED_STORAGE SUITE -PSA_PROTECTED_STORAGE_IMPLEMENTED:=0 +PSA_PROTECTED_STORAGE_IMPLEMENTED:=1 ## PSA_INTERNAL_TRUSTED_STORAGE_IMPLEMENTED must be true for INTERNAL_TRUSTED_STORAGE SUITE PSA_INTERNAL_TRUSTED_STORAGE_IMPLEMENTED:=0 ## PSA_INITIAL_ATTESTATION_IMPLEMENTED must be true for INITIAL_ATTESTATION SUITE -PSA_INITIAL_ATTESTATION_IMPLEMENTED:=0 +PSA_INITIAL_ATTESTATION_IMPLEMENTED:=1 # Make variables holding NSPE/SPE source files diff --git a/api-tests/platform/targets/tgt_dev_apis_tfm_musca_a/reference_logs/protected_storage.txt b/api-tests/platform/targets/tgt_dev_apis_tfm_musca_a/reference_logs/protected_storage.txt index 46f3ca6c..b7f12d55 100755 --- a/api-tests/platform/targets/tgt_dev_apis_tfm_musca_a/reference_logs/protected_storage.txt +++ b/api-tests/platform/targets/tgt_dev_apis_tfm_musca_a/reference_logs/protected_storage.txt @@ -3,7 +3,6 @@ Running.. Protected Storage Suite ****************************************** - TEST: 401 | DESCRIPTION: UID not found check [Info] Executing tests from non-secure [Check 1] Call get API for UID 6 which is not set @@ -38,13 +37,7 @@ TEST: 403 | DESCRIPTION: Insufficient space check [Info] Executing tests from non-secure [Check 1] Overload storage space Remove all registered UIDs -[Check 2] Overload storage space -Remove all registered UIDs -[Check 3] Overload storage space -Remove all registered UIDs -[Check 4] Overload storage space -Remove all registered UIDs -[Check 5] Overload storage space +[Check 2] Overload storage again to verify all previous UID removed Remove all registered UIDs TEST RESULT: PASSED @@ -95,12 +88,11 @@ TEST RESULT: PASSED TEST: 409 | DESCRIPTION: Invalid Arguments check [Info] Executing tests from non-secure -[Check 1] Call set API with NULL write buffer +[Check 1] Call set API with NULL pointer and data length 0 [Check 2] Create UID with zero data length -[Check 3] Try to set NULL buffer for UID with data length -[Check 4] Call get API with NULL read buffer +[Check 3] Try to set NULL buffer for existing UID +[Check 4] Call get API with NULL read buffer and data length 0 [Check 5] Increase the length -[Check 6] Call get API with const read buffer TEST RESULT: PASSED ******************************************