From 07f16b78ffc90a0d1a735289c5eee33f40ec3fe8 Mon Sep 17 00:00:00 2001 From: Andrew Thoelke Date: Wed, 21 Aug 2019 22:48:47 +0100 Subject: [PATCH] Update documentation for psa_destroy_key Define the affect on handles to the key and on active multipart operations. --- include/psa/crypto.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/psa/crypto.h b/include/psa/crypto.h index 8aa11ce94..eac0ff2bf 100644 --- a/include/psa/crypto.h +++ b/include/psa/crypto.h @@ -506,6 +506,11 @@ psa_status_t psa_import_key(const psa_key_attributes_t *attributes, * This function also erases any metadata such as policies and frees all * resources associated with the key. * + * Destroying a key will invalidate all existing handles to the key. + * + * If the key is currently in use in a multipart operation, then destroying the + * key will abort the multipart operation. + * * \param handle Handle to the key to erase. * * \retval #PSA_SUCCESS