Document the maximum key identifier
Give it a name and explain why it was chosen.
diff --git a/library/psa_crypto.c b/library/psa_crypto.c
index 2712c67..d272334 100644
--- a/library/psa_crypto.c
+++ b/library/psa_crypto.c
@@ -871,7 +871,7 @@
return( PSA_ERROR_INVALID_ARGUMENT );
/* Reject high values because the file names are reserved for the
* library's internal use. */
- if( id >= 0xffff0000 )
+ if( id >= PSA_MAX_PERSISTENT_KEY_IDENTIFIER )
return( PSA_ERROR_INVALID_ARGUMENT );
status = psa_get_key_slot( handle, &slot );