You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/storage/api/api.rst
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -765,13 +765,13 @@ These definitions must be defined in the header file :file:`psa/protected_storag
765
765
Initialises an iterator that can be used to return a list of uids in the Protected Storage .
766
766
767
767
.. param:: psa_storage_iterator_t* context
768
-
A pointer to a context for this iterator. This is set to a new value on success and is undefined on error. The content of the iterator is implementation defined. The pointer MUST be valid and MUST point to a block of memory of the size given by the ``PSA_STORAGE_ITERATOR_CTX__SIZE`` macro to which the caller has write access.
768
+
A pointer to a context for this iterator. The pointer may be NULL. This is set to a new value on success and is undefined on error. The content of the iterator is implementation defined.
769
769
770
770
.. param:: psa_storage_uid_t filter
771
771
A value used to filter the results included in this iteration.
772
772
773
773
.. param:: int_t filter_length
774
-
A length of the filter to use, this must be a value `-63 < filter_lemngth < 63`.
774
+
A length of the filter to use, this must be a value `0 < filter_lemngth < 63`.
775
775
776
776
.. param:: psa_storage_uid_t *result
777
777
A pointer to the location in which to store ``uid``. On success the contents of this location will be updated with the first matching ``uid``. On error, the contents are undefined.
@@ -788,7 +788,7 @@ These definitions must be defined in the header file :file:`psa/protected_storag
788
788
.. retval:: PSA_ERROR_STORAGE_FAILURE
789
789
The operation failed because the physical storage has failed (Fatal error).
790
790
791
-
The iterator returns those values where the ``filter_length`` bits of the `uid` matches the bits in ``filter``. If the value of ``filter_length`` is positive, it matches left most bits, if it i nagative, it matches the right most bits.
791
+
The iterator returns those values where the ``filter_length`` bits of the `uid` matches the left most bits in ``filter``.
792
792
793
793
The iterator will only returns those ``uid`` that were created by the caller. It MUST not return any ``uid`` created by a different user.
0 commit comments