23 #include <sol-common-buildopts.h>
96 #ifndef SOL_NO_API_VERSION
97 #define SOL_MESSAGE_DIGEST_CONFIG_API_VERSION (1)
struct sol_message_digest sol_message_digest
A handle for a message digest.
Definition: sol-message-digest.h:87
const void * data
The context data to give to all callbacks.
Definition: sol-message-digest.h:169
These routines are used for Soletta types' manipulation.
struct sol_message_digest_config sol_message_digest_config
The message digest configuration to use when creating a new handle.
const char * algorithm
Algorithm name.
Definition: sol-message-digest.h:116
void(* on_digest_ready)(void *data, struct sol_message_digest *handle, struct sol_blob *output)
The mandatory callback function to report digest is ready.
Definition: sol-message-digest.h:143
struct sol_str_slice key
If provided (length > 0), then is used by the message digest hash function.
Definition: sol-message-digest.h:124
void(* on_feed_done)(void *data, struct sol_message_digest *handle, struct sol_blob *input, int status)
The optional callback function to report digest consumed given data.
Definition: sol-message-digest.h:165
struct sol_message_digest * sol_message_digest_new(const struct sol_message_digest_config *config)
Create a new handle to feed the message to digest.
The message digest configuration to use when creating a new handle.
Definition: sol-message-digest.h:95
String slice type.
Definition: sol-str-slice.h:84
int sol_message_digest_feed(struct sol_message_digest *handle, struct sol_blob *input, bool is_last)
Feed message (data) to be digested (hashed).
uint16_t api_version
api_version must match SOL_MESSAGE_DIGEST_CONFIG_API_VERSION at runtime.
Definition: sol-message-digest.h:102
void sol_message_digest_del(struct sol_message_digest *handle)
Delete a message digest handle.
Data type describing the default blob implementation.
Definition: sol-types.h:468
size_t feed_size
The feed buffer max size.
Definition: sol-message-digest.h:180
These are routines that Soletta provides for its string slice implementation.