aboutsummaryrefslogtreecommitdiff
path: root/crypto.c
diff options
context:
space:
mode:
authorFranklin Wei <me@fwei.tk>2018-06-20 14:13:48 -0400
committerFranklin Wei <me@fwei.tk>2018-06-20 14:13:48 -0400
commit9fb1f3ba699a2ff004aaf35f5fc628df7bcf6f1e (patch)
tree0dac159462ae9fff6d4000038b358527dc51849e /crypto.c
parenta9315b1f9e01097e4fedff446912db8d5fd5e422 (diff)
downloadcsaa-9fb1f3ba699a2ff004aaf35f5fc628df7bcf6f1e.zip
csaa-9fb1f3ba699a2ff004aaf35f5fc628df7bcf6f1e.tar.gz
csaa-9fb1f3ba699a2ff004aaf35f5fc628df7bcf6f1e.tar.bz2
csaa-9fb1f3ba699a2ff004aaf35f5fc628df7bcf6f1e.tar.xz
Some code cleanup and refactor
Diffstat (limited to 'crypto.c')
-rw-r--r--crypto.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto.c b/crypto.c
index 10576a0..5752913 100644
--- a/crypto.c
+++ b/crypto.c
@@ -242,7 +242,9 @@ void restore_nodes(hash_t *nodes, const int *indices, const hash_t *values, int
/* Update mt_nodes to reflect a change to a leaf node's
* value. Optionally, if old_dep is not NULL, *old_dep will be made to
* point to an array of length mt_logleaves that contains the old node
- * values (whose indices are returned by bintree_ancestors()). */
+ * values (whose indices are returned by bintree_ancestors()). NOTE:
+ * this function will NOT set the corresponding IOMT leaf; use
+ * iomt_update_by_leafidx for that. */
void merkle_update(struct iomt *tree, uint64_t leafidx, hash_t newval, hash_t **old_dep)
{
if(old_dep)