diff options
author | Franklin Wei <me@fwei.tk> | 2018-07-03 15:00:57 -0400 |
---|---|---|
committer | Franklin Wei <me@fwei.tk> | 2018-07-03 15:01:25 -0400 |
commit | 9be8af8a7404eebf13186539db6e7cb3e7499692 (patch) | |
tree | 652479e9bb3145c9d12e7e94cc91426f147137e9 /iomt.h | |
parent | cf207a90591da839248aeffa99cb47077113a7e3 (diff) | |
download | csaa-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.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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); |