Skip to content

Commit 37cc257

Browse files
author
itayzafrir
committed
Add internal documentation to access control header file
This file is for internal use only.
1 parent 0c231b0 commit 37cc257

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/TARGET_PSA/services/crypto/COMPONENT_SPE/psa_crypto_access_control.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,19 @@
2222

2323
#include "crypto_platform.h"
2424

25+
/* initialize the module, resets all tracked information */
2526
void psa_crypto_access_control_init(void);
2627

28+
/* deinitialize the module, resets all tracked information */
2729
void psa_crypto_access_control_destroy(void);
2830

31+
/* tracks and associates the key_handle with partition_id */
2932
void psa_crypto_access_control_register_handle(psa_key_handle_t key_handle, int32_t partition_id);
3033

34+
/* removes tracking of the key_handle */
3135
void psa_crypto_access_control_unregister_handle(psa_key_handle_t key_handle);
3236

37+
/* checks if the key_handle is associated with the partition_id, returns 0 is false otherwise 1 */
3338
uint8_t psa_crypto_access_control_is_handle_permitted(psa_key_handle_t key_handle, int32_t partition_id);
3439

3540
#endif /* PSA_CRYPTO_ACCESS_CONTROL_H */

0 commit comments

Comments
 (0)