Exemplo n.º 1
0
void hash_file_start(const char *uri)
{
	size_t key_size = 0;
	const uint8_t *hmac_key = gui_get_hmac_key(&key_size);

	if (gui_get_view() == GUI_VIEW_FILE)
		gtkhash_hash_file_clear_digests(&hash_priv.file_data);

	gtkhash_hash_file(&hash_priv.file_data, uri, hmac_key, key_size);
}
void gtkhash_properties_hash_start(struct page_s *page, const uint8_t *hmac_key,
	const size_t key_size)
{
	gtkhash_hash_file(&page->hash_file, page->uri, hmac_key, key_size);
}
Exemplo n.º 3
0
void gtkhash_properties_hash_start(struct page_s *page,
	const uint8_t *hmac_key, const size_t key_size)
{
	gtkhash_hash_file(page->hfile, page->uri, DIGEST_FORMAT_HEX_LOWER,
		hmac_key, key_size, page);
}