Skip to content

Commit aec5a7f

Browse files
psa_copy_key: minor documentation clarification
1 parent 6b156df commit aec5a7f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

include/psa/crypto.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -668,11 +668,12 @@ psa_status_t psa_export_public_key(psa_key_handle_t handle,
668668
*
669669
* Copy key material from one location to another.
670670
*
671-
* This function is primarily useful to copy a key from one lifetime
672-
* to another. The target key retains its lifetime and location.
671+
* This function is primarily useful to copy a key from one location
672+
* to another, since it populates a key using the material from
673+
* another key which may have a different lifetime.
673674
*
674675
* In an implementation where slots have different ownerships,
675-
* this functin may be used to share a key with a different party,
676+
* this function may be used to share a key with a different party,
676677
* subject to implementation-defined restrictions on key sharing.
677678
* In this case \p constraint would typically prevent the recipient
678679
* from exporting the key.

0 commit comments

Comments
 (0)