mbedtls/include/psa
Gilles Peskine 2493401af4 Document that psa_close_key(0) and psa_destroy_key(0) succeed
Document that passing 0 to a close/destroy function does nothing and
returns PSA_SUCCESS.

Although this was not written explicitly, the specification strongly
suggested that this would return PSA_ERROR_INVALID_HANDLE. While
returning INVALID_HANDLE makes sense, it was awkward for a very common
programming style where applications can store 0 in a handle variable
to indicate that the handle has been closed or has never been open:
applications had to either check if (handle != 0) before calling
psa_close_key(handle) or psa_destroy_key(handle), or ignore errors
from the close/destroy function. Now applications following this style
can just call psa_close_key(handle) or psa_destroy_key(handle).
2019-10-08 15:43:13 +02:00
..
crypto_accel_driver.h Pacify check-names.sh 2019-03-06 18:29:57 +01:00
crypto_driver_common.h Split crypto_driver.h into one for each driver type 2018-12-21 18:17:10 +01:00
crypto_entropy_driver.h Doxygen changes to match the code changes. clarifications. 2019-02-15 17:23:42 -06:00
crypto_extra.h Add backward compatibility alias for PSA_ERROR_CORRUPTION_DETECTED 2019-09-06 17:48:56 +02:00
crypto_platform.h Merge pull request #139 from Patater/des-faster-and-typo-fix 2019-09-04 12:18:39 +01:00
crypto_se_driver.h Update import_key and generate_key SE methods to the current API 2019-08-09 16:43:35 +02:00
crypto_sizes.h Merge remote-tracking branch 'upstream-crypto/development' into psa-api-1.0-beta-merge_development_20190801 2019-07-31 17:47:49 +02:00
crypto_struct.h Key derivation: forbid output_key without input_key 2019-09-24 18:39:03 +02:00
crypto_types.h Clarify how key creation functions use attributes and what 0 means 2019-09-12 17:38:19 +02:00
crypto_values.h Key derivation: forbid output_key without input_key 2019-09-24 18:39:03 +02:00
crypto.h Document that psa_close_key(0) and psa_destroy_key(0) succeed 2019-10-08 15:43:13 +02:00