Function anj_crypto_storage_resolve_persistence_info

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)

Experimental:

This is an experimental API. This API can change in the future versions without any notice.

This function is called by the Security Object to interpret the provided data buffer and populate out_info with 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 a 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.