Function anj_crypto_storage_resolve_security_info
Defined in File storage.h
Function Documentation
-
int anj_crypto_storage_resolve_security_info(void *crypto_ctx, const anj_crypto_security_info_external_t *info, char *out_buffer, size_t out_buffer_size, size_t *out_record_size)
- Experimental:
This is an experimental API. This API can change in the future versions without any notice.
Retrieves the security information from the storage.
This function is called to load the security information from the storage into a buffer. The implementation should read the data associated with the provided
infoand copy it into theout_buffer. The size of the buffer is specified byout_buffer_size, and the actual size of the loaded data should be returned inout_record_size.- Parameters:
crypto_ctx – Cryptographic context.
info – Security record identifier.
out_buffer – [out] Buffer to store the loaded data.
out_buffer_size – Size of the output buffer.
out_record_size – [out] Size of the loaded data.
- Returns:
0 on success, negative value on failure.