diff options
author | Mattias Andrée <maandree@kth.se> | 2022-02-15 11:18:15 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-02-15 11:18:15 +0100 |
commit | 48db2850b5866f6465fb37011e15641ddf2133fa (patch) | |
tree | e20d7f7e3eb9ad800cf79171995c52f1f50dc4bb | |
parent | Fix doc and adjust text width (diff) | |
download | libar2simplified-48db2850b5866f6465fb37011e15641ddf2133fa.tar.gz libar2simplified-48db2850b5866f6465fb37011e15641ddf2133fa.tar.bz2 libar2simplified-48db2850b5866f6465fb37011e15641ddf2133fa.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | libar2simplified.h | 3 | ||||
-rw-r--r-- | libar2simplified_hash.c | 38 |
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 |