blob: 81f9dcfda1becc7ea532e6cf8a6b4fd9c87e88ac [file] [log] [blame]
* Copyright (C) 2011 The Chromium OS Authors <>
* Device-Mapper block hash tree interface.
* This file is released under the GPLv2.
namespace verity {
/* Functions for creating struct dm_bhts on disk. A newly created dm_bht
* should not be directly used for verification. (It should be repopulated.)
* In addition, these functions aren't meant to be called in parallel.
int dm_bht_compute(struct dm_bht* bht);
void dm_bht_set_buffer(struct dm_bht* bht, void* buffer);
int dm_bht_store_block(struct dm_bht* bht,
unsigned int block,
uint8_t* block_data);
} // namespace verity