]> git.codecow.com Git - Monocypher.git/commit
Nicer Argon2 API
authorLoup Vaillant <loup@loup-vaillant.fr>
Fri, 6 Jan 2023 16:29:16 +0000 (17:29 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Fri, 6 Jan 2023 16:40:30 +0000 (17:40 +0100)
commit57c820b46e83943d09585a5e9a147307e2ae0dd2
tree9708d2907c7ba9ec11275c437c380e151ed7cc8c
parenta27b89c835fdb41c4488e8339690ef450bcf9615
Nicer Argon2 API

I believe it's hard to do any better.

- One function to rule them all.
- Inputs are all nicely organised.
- There's an easy way to omit the key and additional data.
- Argon2 user code is very clear, though a little verbose.

I believe fusing the "regular" and "extra" inputs together would not be
a good idea, because it would make the common case (no extra inputs)
either more verbose or more confusing than it is right now.

Issue #243
src/monocypher.c
src/monocypher.h
tests/speed/speed.c
tests/test.c
tests/tis-ci.c