Skip to content

Commit 0ad77a5

Browse files
committed
Add a recommendation for implementation of ALL_SUBSYSTEMS initialization
1 parent 940d059 commit 0ad77a5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/crypto/api/library/library.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,11 @@ If the application calls any function that returns a :code:`psa_status_t` result
198198

199199
Using this value in a call to `psa_crypto_init_subsystem()` is equivalent to calling `psa_crypto_init()`.
200200

201+
.. admonition:: Implementation note
202+
203+
It is recommended that :code:`psa_crypto_init_subsystem(PSA_CRYPTO_ALL_SUBSYSTEMS)` is implemented in a way that provides compatibility with future versions of the implementation.
204+
That is, addition of a new subsystem to an implementation does not require recompilation of the application so that this call will still initialize all subsystems.
205+
201206
.. function:: psa_crypto_init_subsystem
202207

203208
.. summary::

0 commit comments

Comments
 (0)