aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libar2simplified.h3
-rw-r--r--libar2simplified_hash.c38
2 files changed, 2 insertions, 39 deletions
diff --git a/libar2simplified.h b/libar2simplified.h
index 8e3352e..cd784d4 100644
--- a/libar2simplified.h
+++ b/libar2simplified.h
@@ -53,7 +53,8 @@ char *libar2simplified_encode_hash(const struct libar2_argon2_parameters *params
* about `params->key` or `params->ad`, therefore
* `params->key` and `params->ad` will be set to
* `NULL` and `params->keylen` and `params->adlen`
- * will be set to 0
+ * will be set to 0; where `params` is the returned
+ * pointer
*
* @param str The hashing parameter string to decode
* @param tagp Output parameter for the tag (hash result), or `NULL`.
diff --git a/libar2simplified_hash.c b/libar2simplified_hash.c
index 8e4bd85..b21ef5b 100644
--- a/libar2simplified_hash.c
+++ b/libar2simplified_hash.c
@@ -260,44 +260,6 @@ init_thread_pool(size_t desired, size_t *createdp, struct libar2_context *ctx)
}
-/*
- * INIT_THREAD_POOL
- * slave semaphores: 0
- * master semaphore: 0
- * all ressting
- *
- * THREAD_LOOP
- * acquire slave
- * run function(input)
- * with lock on master {
- * mark as resting
- * release master
- * }
- *
- * RUN_THREAD
- * with lock on master {
- * mark as busy
- * }
- * set function & input
- * release slave
- *
- * AWAIT_THREADS
- * for (ret = 0; ret < require;) {
- * acquire master
- * with lock on master {
- * mark one resting as joined
- * ret += 1
- * }
- * }
- * while (try-acquire master) {
- * with lock on master {
- * mark one resting as joined
- * ret += 1
- * }
- * }
- * return ret
- */
-
#if defined(__GNUC__)
__attribute__((__const__))
#endif