@@ -161,9 +161,6 @@ psa_status_t secure_storage_its_set(secure_storage_its_caller_id_t caller_id, ps
161
161
if (make_its_uid (caller_id , uid , & its_uid ) != PSA_SUCCESS ) {
162
162
return PSA_ERROR_INVALID_ARGUMENT ;
163
163
}
164
- if (p_data == NULL && data_length != 0 ) {
165
- return PSA_ERROR_INVALID_ARGUMENT ;
166
- }
167
164
if (create_flags & ~SECURE_STORAGE_ALL_CREATE_FLAGS ) {
168
165
return PSA_ERROR_NOT_SUPPORTED ;
169
166
}
@@ -193,15 +190,11 @@ psa_status_t secure_storage_its_get(secure_storage_its_caller_id_t caller_id, ps
193
190
if (make_its_uid (caller_id , uid , & its_uid ) != PSA_SUCCESS ) {
194
191
return PSA_ERROR_INVALID_ARGUMENT ;
195
192
}
196
- if ((p_data == NULL && data_size != 0 ) || p_data_length == NULL ) {
197
- return PSA_ERROR_INVALID_ARGUMENT ;
198
- }
199
193
if (data_size == 0 ) {
200
194
* p_data_length = 0 ;
201
195
return PSA_SUCCESS ;
202
196
}
203
197
204
-
205
198
ret = get_stored_data (its_uid , stored_data , & stored_data_len );
206
199
if (ret != PSA_SUCCESS ) {
207
200
return ret ;
@@ -239,9 +232,6 @@ psa_status_t secure_storage_its_get_info(secure_storage_its_caller_id_t caller_i
239
232
if (make_its_uid (caller_id , uid , & its_uid ) != PSA_SUCCESS ) {
240
233
return PSA_ERROR_INVALID_ARGUMENT ;
241
234
}
242
- if (p_info == NULL ) {
243
- return PSA_ERROR_INVALID_ARGUMENT ;
244
- }
245
235
246
236
ret = get_entry (its_uid , sizeof (data ), data , & p_info -> size , & p_info -> flags );
247
237
if (ret == PSA_SUCCESS ) {
0 commit comments