Function anj_crypto_storage_create_new_record

Function Documentation

int anj_crypto_storage_create_new_record(void *crypto_ctx, anj_crypto_security_info_t *out_info)

Creates a new security information record.

This function is called to create a new security information record. The implementation should allocate and initialize a new record on the underlying storage side, which will then be populated with data in subsequent calls to anj_crypto_storage_store_data.

The out_info->tag and out_info->source are set by the caller to identify the type and source of the security information being stored.

Parameters:
  • crypto_ctx – Cryptographic context.

  • out_info[inout] Pointer to a structure that will receive the newly created security information record.

Returns:

0 on success, or a negative value on failure.