![]() |
nRF Connect SDK API 3.3.99
|
| int modem_key_mgmt_digest | ( | nrf_sec_tag_t | sec_tag, |
| enum modem_key_mgmt_cred_type | cred_type, | ||
| void * | buf, | ||
| size_t | len ) |
#include <include/modem/modem_key_mgmt.h>
Read the SHA-256 digest of a credential from persistent storage.
| [in] | sec_tag | The security tag of the credential. |
| [in] | cred_type | The credential type. |
| [out] | buf | Buffer to read the credential into. |
| [in] | len | Length of the buffer. |
| 0 | On success. |
| -ENOMEM | Credential does not fit in buf. See MODEM_KEY_MGMT_DIGEST_SIZE |
| -ENOENT | No credential associated with the given sec_tag and cred_type. |