Function anj_crypto_storage_resolve_persistence_info
Defined in File storage.h
Function Documentation
-
int anj_crypto_storage_resolve_persistence_info(void *crypto_ctx, const void *data, size_t data_size, anj_crypto_security_info_external_t *out_info)
This function is called by the Security Object to interpret the provided
databuffer and populateout_infowith the corresponding key or certificate identifier. It is the reverse operation of anj_crypto_storage_get_persistence_info.Note
All data must be provided in single chunk.
- Parameters:
crypto_ctx – Cryptographic context.
data – Pointer to the data buffer containing the certificate or key identifier in ANJ_DATA_TYPE_BYTES format.
data_size – Size of the data buffer in bytes.
out_info – [out] Pointer to a structure that will be filled with the resolved persistence information.
- Returns:
0 on success, or a negative value on failure.