Simplify description of psa_copy_key

This commit is contained in:
Adrian L. Shaw 2019-05-15 13:28:41 +01:00 committed by Gilles Peskine
parent 52d83dabd6
commit 0a695bd13e

View file

@ -682,7 +682,7 @@ psa_status_t psa_import_key(const psa_key_attributes_t *attributes,
* \retval #PSA_SUCCESS * \retval #PSA_SUCCESS
* The key material has been erased. * The key material has been erased.
* \retval #PSA_ERROR_NOT_PERMITTED * \retval #PSA_ERROR_NOT_PERMITTED
* The handle holds content and cannot be erased because it is * The key cannot be erased because it is
* read-only, either due to a policy or due to physical restrictions. * read-only, either due to a policy or due to physical restrictions.
* \retval #PSA_ERROR_INVALID_HANDLE * \retval #PSA_ERROR_INVALID_HANDLE
* \retval #PSA_ERROR_COMMUNICATION_FAILURE * \retval #PSA_ERROR_COMMUNICATION_FAILURE
@ -874,8 +874,7 @@ psa_status_t psa_export_public_key(psa_key_handle_t handle,
* to another, since it populates a key using the material from * to another, since it populates a key using the material from
* another key which may have a different lifetime. * another key which may have a different lifetime.
* *
* In an implementation where handles have different ownerships, * This function may be used to share a key with a different party,
* this function may be used to share a key with a different party,
* subject to implementation-defined restrictions on key sharing. * subject to implementation-defined restrictions on key sharing.
* *
* The policy on the source key must have the usage flag * The policy on the source key must have the usage flag