aboutsummaryrefslogtreecommitdiff
path: root/iomt.h
diff options
context:
space:
mode:
Diffstat (limited to 'iomt.h')
-rw-r--r--iomt.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/iomt.h b/iomt.h
index 060a582..7a00cb4 100644
--- a/iomt.h
+++ b/iomt.h
@@ -55,10 +55,10 @@ struct iomt {
hash_t hash_node(struct iomt_node node);
-hash_t *lookup_nodes(const struct iomt *tree, const int *indices, int n);
-void restore_nodes(struct iomt *tree, const int *indices, const hash_t *values, int n);
+hash_t *lookup_nodes(const struct iomt *tree, const uint64_t *indices, int n);
+void restore_nodes(struct iomt *tree, const uint64_t *indices, const hash_t *values, int n);
-hash_t *merkle_complement(const struct iomt *tree, int leafidx, int **orders);
+hash_t *merkle_complement(const struct iomt *tree, uint64_t leafidx, int **orders);
/* This function is prefixed merkle_ because it does not know about
* any IOMT-specific properties (though it is still passed an iomt
@@ -110,8 +110,8 @@ void iomt_dump(const struct iomt *tree);
hash_t iomt_getroot(const struct iomt *tree);
-hash_t iomt_getnode(const struct iomt *tree, int idx);
-void iomt_setnode(const struct iomt *tree, int idx, hash_t val);
+hash_t iomt_getnode(const struct iomt *tree, uint64_t idx);
+void iomt_setnode(const struct iomt *tree, uint64_t idx, hash_t val);
struct iomt_node iomt_getleaf(const struct iomt *tree, uint64_t leafidx);