aboutsummaryrefslogtreecommitdiff
path: root/iomt.h
diff options
context:
space:
mode:
authorFranklin Wei <me@fwei.tk>2018-07-03 15:00:57 -0400
committerFranklin Wei <me@fwei.tk>2018-07-03 15:01:25 -0400
commit9be8af8a7404eebf13186539db6e7cb3e7499692 (patch)
tree652479e9bb3145c9d12e7e94cc91426f147137e9 /iomt.h
parentcf207a90591da839248aeffa99cb47077113a7e3 (diff)
downloadcsaa-9be8af8a7404eebf13186539db6e7cb3e7499692.zip
csaa-9be8af8a7404eebf13186539db6e7cb3e7499692.tar.gz
csaa-9be8af8a7404eebf13186539db6e7cb3e7499692.tar.bz2
csaa-9be8af8a7404eebf13186539db6e7cb3e7499692.tar.xz
Use 64-bit integers where appropriate
Should allow the use of larger logleaves values (> 32).
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);