Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3249)

Unified Diff: dm-bht.h

Issue 6705014: verity: remove verify_mode (Closed) Base URL: http://git.chromium.org/git/dm-verity.git@master
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | dm-bht.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm-bht.h
diff --git a/dm-bht.h b/dm-bht.h
index 25c20b51778f1ca4a1abc8016fab80c65552265b..a6528d30ee22e1891ccaf03f04650fbbd4d8ef83 100644
--- a/dm-bht.h
+++ b/dm-bht.h
@@ -83,14 +83,12 @@ typedef int(*dm_bht_callback)(void *, /* external context */
* TODO(wad): All hash storage memory is pre-allocated and freed once an
* entire branch has been verified.
*/
-enum verify_mode { DM_BHT_REVERIFY_LEAVES = 0, DM_BHT_FULL_REVERIFY };
struct dm_bht {
/* Configured values */
/* ENFORCE: depth must be >= 2. */
unsigned int depth; /* Depth of the tree including the root */
unsigned int block_count; /* Number of blocks hashed */
char hash_alg[CRYPTO_MAX_ALG_NAME];
- int verify_mode; /* different verification modes */
unsigned int entry_readahead; /* number of entries to attempt to
* pre-read in a level.
*/
@@ -127,7 +125,6 @@ void dm_bht_set_entry_readahead(struct dm_bht *bht,
unsigned int readahead_count);
void dm_bht_set_read_cb(struct dm_bht *bht, dm_bht_callback read_cb);
void dm_bht_set_write_cb(struct dm_bht *bht, dm_bht_callback write_cb);
-void dm_bht_set_verify_mode(struct dm_bht *bht, int verify_mode);
int dm_bht_set_root_hexdigest(struct dm_bht *bht, const u8 *hexdigest);
int dm_bht_root_hexdigest(struct dm_bht *bht, u8 *hexdigest, int available);
« no previous file with comments | « no previous file | dm-bht.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698