![]() |
nRF Connect SDK API 3.3.99
|
#include <stdbool.h>#include <stdint.h>#include <nrf_socket.h>Go to the source code of this file.
Macros | |
| #define | MODEM_KEY_MGMT_DIGEST_SIZE (32) |
| The digest is 32 bytes long. | |
Typedefs | |
| typedef void(* | modem_key_mgmt_list_cb_t) (nrf_sec_tag_t sec_tag, enum modem_key_mgmt_cred_type cred_type) |
| Credential list entry handler function prototype. | |
Enumerations | |
| enum | modem_key_mgmt_cred_type { MODEM_KEY_MGMT_CRED_TYPE_CA_CHAIN , MODEM_KEY_MGMT_CRED_TYPE_PUBLIC_CERT , MODEM_KEY_MGMT_CRED_TYPE_PRIVATE_CERT , MODEM_KEY_MGMT_CRED_TYPE_PSK , MODEM_KEY_MGMT_CRED_TYPE_IDENTITY } |
| Credential types. More... | |
Functions | |
| int | modem_key_mgmt_write (nrf_sec_tag_t sec_tag, enum modem_key_mgmt_cred_type cred_type, const void *buf, size_t len) |
| Write or update a credential in persistent storage. | |
| int | modem_key_mgmt_delete (nrf_sec_tag_t sec_tag, enum modem_key_mgmt_cred_type cred_type) |
| Delete a credential from persistent storage. | |
| int | modem_key_mgmt_clear (nrf_sec_tag_t sec_tag) |
| Delete all credentials for a given sectag from persistent storage. | |
| int | modem_key_mgmt_read (nrf_sec_tag_t sec_tag, enum modem_key_mgmt_cred_type cred_type, void *buf, size_t *len) |
| Read a credential from persistent storage. | |
| int | modem_key_mgmt_cmp (nrf_sec_tag_t sec_tag, enum modem_key_mgmt_cred_type cred_type, const void *buf, size_t len) |
| Compare a credential with a credential in persistent storage. | |
| int | modem_key_mgmt_digest (nrf_sec_tag_t sec_tag, enum modem_key_mgmt_cred_type cred_type, void *buf, size_t len) |
| Read the SHA-256 digest of a credential from persistent storage. | |
| int | modem_key_mgmt_exists (nrf_sec_tag_t sec_tag, enum modem_key_mgmt_cred_type cred_type, bool *exists) |
| Check if a credential exists in persistent storage. | |
| int | modem_key_mgmt_list (modem_key_mgmt_list_cb_t list_cb) |
| List all the available credentials in persistent storage. | |