]>
git.codecow.com Git - Monocypher.git/log
Michael Savage [Sat, 30 Dec 2017 11:04:16 +0000 (11:04 +0000)]
Apply Loup's feedback
Michael Savage [Fri, 29 Dec 2017 23:56:40 +0000 (23:56 +0000)]
Misc manual tweaks
Loup Vaillant [Thu, 28 Dec 2017 15:42:36 +0000 (16:42 +0100)]
Manual: reset dates (#58)
Loup Vaillant [Thu, 28 Dec 2017 15:31:34 +0000 (16:31 +0100)]
Manual: examples (#58)
Loup Vaillant [Sun, 24 Dec 2017 09:43:14 +0000 (10:43 +0100)]
Manual: Applying CuleX's advice
Loup Vaillant [Sun, 24 Dec 2017 09:20:51 +0000 (10:20 +0100)]
Manual: xx byte => xx-byte
Loup Vaillant [Sat, 23 Dec 2017 11:38:01 +0000 (12:38 +0100)]
Manual: add missing args blocks
Loup Vaillant [Thu, 21 Dec 2017 17:16:46 +0000 (18:16 +0100)]
Manual: warning about incremental signature verification
Just so users don't mistakenly trust messages before the verification is
finished.
Related to #58
Loup Vaillant [Fri, 15 Dec 2017 18:45:21 +0000 (19:45 +0100)]
Fixed #74 (crypto_verify bug)
Loup Vaillant [Fri, 15 Dec 2017 18:35:33 +0000 (19:35 +0100)]
Added tests for comparison functions
They are crafted to catch many possible errors, such as using an
operator instead of another.
And catch an error it did...
Loup Vaillant [Fri, 15 Dec 2017 09:56:05 +0000 (10:56 +0100)]
Manual: applying CuleX's corrections
Loup Vaillant [Sun, 10 Dec 2017 21:19:24 +0000 (22:19 +0100)]
Added a warning about incremental authentication
Loup Vaillant [Sun, 10 Dec 2017 20:00:45 +0000 (21:00 +0100)]
Mentinned the Double Ratchet Algorithm
This is better than the half assed explanation about authenticating keys
with `crypto_lock`
Loup Vaillant [Sun, 10 Dec 2017 19:45:18 +0000 (20:45 +0100)]
Merge pull request #73 from mikejsavage/poly1305feedback
Poly1305 manual tweaks based on Loup's comments
Michael Savage [Fri, 8 Dec 2017 23:53:38 +0000 (01:53 +0200)]
Poly1305 manual tweaks based on Loup's comments
Loup Vaillant [Fri, 8 Dec 2017 23:30:49 +0000 (00:30 +0100)]
Merge pull request #72 from mikejsavage/keyexchangereview
Key exchange manual tweaks
Loup Vaillant [Fri, 8 Dec 2017 23:18:46 +0000 (00:18 +0100)]
Merge pull request #70 from mikejsavage/lockincreview
Incremental crypto_lock manual tweaks
Loup Vaillant [Fri, 8 Dec 2017 23:18:25 +0000 (00:18 +0100)]
Merge pull request #71 from mikejsavage/poly1305review
Poly1305 manual tweaks
Michael Savage [Thu, 7 Dec 2017 19:41:02 +0000 (21:41 +0200)]
Key exchange manual tweaks
Michael Savage [Thu, 7 Dec 2017 18:05:06 +0000 (20:05 +0200)]
Re-add the paragraph about corruption being 3x slower to detect
Michael Savage [Thu, 7 Dec 2017 17:49:43 +0000 (19:49 +0200)]
More tweaking
Michael Savage [Wed, 6 Dec 2017 23:42:14 +0000 (01:42 +0200)]
Poly1305 keys are 32 _bytes_!
Michael Savage [Wed, 6 Dec 2017 23:36:00 +0000 (01:36 +0200)]
Poly1305 manual tweaks
Michael Savage [Wed, 6 Dec 2017 23:09:56 +0000 (01:09 +0200)]
"can happen because of" -> "can be caused by"
Michael Savage [Wed, 6 Dec 2017 23:06:12 +0000 (01:06 +0200)]
Incremental crypto_lock manual tweaks
Loup Vaillant [Wed, 29 Nov 2017 21:54:49 +0000 (22:54 +0100)]
Merge pull request #69 from mikejsavage/verifyreview
crypto_verify manual tweaks
Loup Vaillant [Wed, 29 Nov 2017 21:51:51 +0000 (22:51 +0100)]
Merge pull request #68 from mikejsavage/cryptosignreview
crypto_sign manual tweaks
Loup Vaillant [Wed, 29 Nov 2017 21:51:25 +0000 (22:51 +0100)]
Merge pull request #67 from mikejsavage/cryptosignincrementalreview
Incremental crypto_sign manual tweaks
Loup Vaillant [Wed, 29 Nov 2017 21:50:59 +0000 (22:50 +0100)]
Merge pull request #66 from mikejsavage/chacha20review
chacha20 manual tweaks
Loup Vaillant [Wed, 29 Nov 2017 21:50:28 +0000 (22:50 +0100)]
Merge pull request #65 from mikejsavage/blakereview
BLAKE2b manual tweaks
Loup Vaillant [Wed, 29 Nov 2017 21:49:01 +0000 (22:49 +0100)]
Merge pull request #64 from mikejsavage/chacha20hreview
chacha20_H manual tweaks
Loup Vaillant [Wed, 29 Nov 2017 21:48:06 +0000 (22:48 +0100)]
Merge pull request #63 from mikejsavage/wipereview
crypto_wipe manual tweaks
Michael Savage [Wed, 29 Nov 2017 08:38:24 +0000 (10:38 +0200)]
Remove parens around "like memcmp"
Michael Savage [Wed, 29 Nov 2017 08:34:38 +0000 (10:34 +0200)]
Formatting fix
Michael Savage [Wed, 29 Nov 2017 08:32:11 +0000 (10:32 +0200)]
64 bit -> 64-byte
Michael Savage [Tue, 28 Nov 2017 19:06:44 +0000 (21:06 +0200)]
crypto_wipe manual tweaks
Michael Savage [Tue, 28 Nov 2017 19:02:03 +0000 (21:02 +0200)]
crypto_verify manual tweaks
Michael Savage [Tue, 28 Nov 2017 18:52:17 +0000 (20:52 +0200)]
Incremental crypto_sign manual tweaks
Michael Savage [Tue, 28 Nov 2017 18:37:01 +0000 (20:37 +0200)]
chacha20 manual tweaks
Michael Savage [Tue, 28 Nov 2017 18:39:19 +0000 (20:39 +0200)]
crypto_sign manual tweaks
Michael Savage [Tue, 28 Nov 2017 18:14:20 +0000 (20:14 +0200)]
chacha20_H manual tweaks
Michael Savage [Tue, 28 Nov 2017 18:12:40 +0000 (20:12 +0200)]
BLAKE2b manual tweaks
Loup Vaillant [Sun, 26 Nov 2017 10:44:37 +0000 (11:44 +0100)]
Merge pull request #62 from CuleX/master+add-missing-symlink
Add symlink for crypto_argon2i_general.3monocypher
CuleX [Sun, 26 Nov 2017 05:51:37 +0000 (06:51 +0100)]
Add symlink for crypto_argon2i_general.3monocypher
This also adds it to intro(3monocypher).
Loup Vaillant [Thu, 23 Nov 2017 20:06:12 +0000 (21:06 +0100)]
Reviewing mikejsavage's manual tweaks
Loup Vaillant [Thu, 23 Nov 2017 00:10:33 +0000 (01:10 +0100)]
Merge pull request #59 from mikejsavage/cryptolockdoc
crypto_lock manual tweaks
Loup Vaillant [Thu, 23 Nov 2017 00:00:47 +0000 (01:00 +0100)]
Merge pull request #60 from mikejsavage/argondoc
Argon manual tweaks
Loup Vaillant [Wed, 22 Nov 2017 23:49:02 +0000 (00:49 +0100)]
Merge pull request #61 from mikejsavage/introdoc
Explicitly talk about compression being harmful in the intro
Michael Savage [Tue, 21 Nov 2017 21:44:44 +0000 (23:44 +0200)]
Reword CRIME sentence
Michael Savage [Tue, 21 Nov 2017 21:42:38 +0000 (23:42 +0200)]
Explicitly mention compression, see intro for details
Michael Savage [Tue, 21 Nov 2017 21:21:21 +0000 (23:21 +0200)]
Argon manual tweaks
Michael Savage [Tue, 21 Nov 2017 20:57:30 +0000 (22:57 +0200)]
tw=72
Michael Savage [Tue, 21 Nov 2017 20:57:01 +0000 (22:57 +0200)]
New lines after .
Michael Savage [Tue, 21 Nov 2017 20:56:09 +0000 (22:56 +0200)]
crypto_lock manual tweaks
Michael Savage [Tue, 21 Nov 2017 20:15:45 +0000 (22:15 +0200)]
Explicitly talk about data compression being harmful in the intro
Loup Vaillant [Thu, 16 Nov 2017 22:25:26 +0000 (23:25 +0100)]
Changed Argon2i API
- Removed the key and ad from crypto_argon2i()
- Added crypto_argon2i_general(), which conform to the old API, to
compensate.
- Updated the manual.
Related to #58
Rationale: the key and ad arguments are rarely used. Regular users
shouldn't be burdened with them.
Loup Vaillant [Sun, 12 Nov 2017 16:59:03 +0000 (17:59 +0100)]
Faster Blake2b.
Between 25% and 30% faster on my corei5 skylake laptop.
Loup Vaillant [Sun, 12 Nov 2017 16:27:28 +0000 (17:27 +0100)]
more warnings for multiplication timings
Following CuleX's advice.
Whitelisted x86, x86_64, ARM, and ARM64. Users should check
how multiplication is done on other platforms.
Loup Vaillant [Sun, 12 Nov 2017 13:00:34 +0000 (14:00 +0100)]
Manual review: applying CuleX's advice
Loup Vaillant [Sat, 11 Nov 2017 18:17:03 +0000 (19:17 +0100)]
Renamed crypto_poly1305_auth to crypto_poly1305
Loup Vaillant [Sat, 11 Nov 2017 18:00:39 +0000 (19:00 +0100)]
Manual review: intro
Loup Vaillant [Sat, 11 Nov 2017 17:59:58 +0000 (18:59 +0100)]
Manual review: applying CuleX's advice
Loup Vaillant [Mon, 6 Nov 2017 19:37:34 +0000 (20:37 +0100)]
Forgot to wipe a temporary buffer
Loup Vaillant [Mon, 6 Nov 2017 19:29:58 +0000 (20:29 +0100)]
Manual review: applying CuleX's advice
Loup Vaillant [Sun, 5 Nov 2017 19:29:45 +0000 (20:29 +0100)]
Manual review: crypto_sign_init
Loup Vaillant [Sun, 5 Nov 2017 17:43:24 +0000 (18:43 +0100)]
Removed "The *** function" patterns
Loup Vaillant [Sun, 5 Nov 2017 17:09:29 +0000 (18:09 +0100)]
Manual review: applying CuleX's advice
Loup Vaillant [Sun, 5 Nov 2017 15:42:09 +0000 (16:42 +0100)]
Manual review: spell check
Loup Vaillant [Sun, 5 Nov 2017 15:39:33 +0000 (16:39 +0100)]
Manual review: crypto_sign
Loup Vaillant [Sun, 5 Nov 2017 11:21:52 +0000 (12:21 +0100)]
Manual review: crypto_lock_init
Loup Vaillant [Fri, 3 Nov 2017 11:10:23 +0000 (12:10 +0100)]
Forgot to wipe a temporary buffer
Loup Vaillant [Fri, 3 Nov 2017 09:46:25 +0000 (10:46 +0100)]
Manual review: applying CuleX's advice
Loup Vaillant [Fri, 3 Nov 2017 00:31:13 +0000 (01:31 +0100)]
Manual review: crypto_lock
Loup Vaillant [Wed, 1 Nov 2017 20:07:14 +0000 (21:07 +0100)]
Automatically wipe Argon2i work area
crypto_wipe() wipes byte by byte. This is fine for small buffers, but
for the Argon2i work area, it means losing about 20% performance.
This has a direct impact on security: users are advised to chose the
highest settings they are comfortable with. A 20% slow down will mean
a 20% edge for the attacker.) Users must then chose between
sacrificing 20% of security, or exposing themselves to side channel
attacks.
---
There is a faster way to wipe that work area: word by word. Since it
is already required to be aligned for 8-byte words, we can wipe it in
8-bytes chunks. This is much faster than crypto_wipe, and slows down
the whole process by only 2-3%.
This is a bit ad-hoc, though, and it wouldn't make much sense to add a
crypto_wipe_fast() function or something to handle that special case.
Instead, I've chosen to integrate it in Argon2i itself. Now users
don't have to wipe the work area any more.
The drawback is, the output hash buffer must not overlap with the work
area, or it will be wiped with it. This shouldn't be a problem in
practice.
Loup Vaillant [Wed, 1 Nov 2017 16:59:13 +0000 (17:59 +0100)]
Manual review: applying CuleX's advice
Replaced 'evil' by 'malicious'
Loup Vaillant [Wed, 1 Nov 2017 16:52:41 +0000 (17:52 +0100)]
Merge pull request #57 from mikejsavage/deterministically
eterministically -> deterministically
Loup Vaillant [Wed, 1 Nov 2017 16:51:50 +0000 (17:51 +0100)]
Merge branch 'master' into deterministically
Loup Vaillant [Wed, 1 Nov 2017 16:50:08 +0000 (17:50 +0100)]
Merge branch 'master' into deterministically
Loup Vaillant [Wed, 1 Nov 2017 11:01:48 +0000 (12:01 +0100)]
Manual review: key exchange
Michael Savage [Tue, 31 Oct 2017 20:10:25 +0000 (22:10 +0200)]
eterministically -> deterministically
Loup Vaillant [Sun, 29 Oct 2017 17:43:51 +0000 (18:43 +0100)]
Manual review: argon2i
Loup Vaillant [Sun, 29 Oct 2017 16:43:47 +0000 (17:43 +0100)]
Manual review: verify, wipe, memcmp
Rephrased a bit.
Removed references to the rest of Monocypher. That advice
belongs to the Blake2b and Argon2i pages.
Loup Vaillant [Sun, 29 Oct 2017 15:01:34 +0000 (16:01 +0100)]
Manual review: HChacha20
Loup Vaillant [Sun, 29 Oct 2017 15:01:00 +0000 (16:01 +0100)]
Forgot a contraction
Loup Vaillant [Sat, 28 Oct 2017 11:56:03 +0000 (13:56 +0200)]
Manual review: applying CuleX's advice
* Removed contractions for a more formal style.
* Spelled BLAKE2b upper case.
* Put a final period *after* the parenthesis.
Loup Vaillant [Wed, 25 Oct 2017 20:31:57 +0000 (22:31 +0200)]
Manual review: Blake2b
Minor tweaks everywhere, expanded the examples section.
Loup Vaillant [Sun, 22 Oct 2017 18:00:16 +0000 (20:00 +0200)]
Manual review: side channel protection nitpicking
Loup Vaillant [Sat, 21 Oct 2017 23:24:50 +0000 (01:24 +0200)]
Wipe some more secret data
Loup Vaillant [Sat, 21 Oct 2017 23:06:23 +0000 (01:06 +0200)]
Manual review: applying CuleX's advice
Loup Vaillant [Sat, 21 Oct 2017 16:37:39 +0000 (18:37 +0200)]
Manual review: Poly1305
Loup Vaillant [Sat, 21 Oct 2017 15:45:45 +0000 (17:45 +0200)]
Merge pull request #56 from CuleX/master+crypto-wipe-man-page
Add man page for crypto_wipe
CuleX [Fri, 20 Oct 2017 11:52:11 +0000 (13:52 +0200)]
Add man page for crypto_wipe
This includes adjustments in other manual pages and examples, telling
the user to use crypto_wipe.
Loup Vaillant [Thu, 19 Oct 2017 21:27:00 +0000 (23:27 +0200)]
Added crypto_wipe() (Erases buffers)
I've been convinced that wiping secrets might be useful to mitigate
some side channel attacks where the attacker might read your memory
after you're done processing those secrets.
This probably wasn't the only copy, though.
Loup Vaillant [Wed, 18 Oct 2017 19:19:43 +0000 (21:19 +0200)]
Uppercase RFC
Loup Vaillant [Tue, 17 Oct 2017 18:52:36 +0000 (20:52 +0200)]
Manual review: applying CuleX's advice
Loup Vaillant [Mon, 16 Oct 2017 21:46:39 +0000 (23:46 +0200)]
Manual review: Chacha20
I intended this to be a fairly light review, but this ended up being a
rather comprehensive rewrite...
I tried to follow the advice of mdoc(7) as much as possible. CuleX
did a remarkable job adapting the old manual to man pages without
butchering the original text; but I now think it has to be butchered
eventually.
Expanded the EXAMPLES section. I think it gives a clearer view of all
possible use cases that way.
Replaced STANDARDS by IMPLEMENTATION DETAILS. The choice of primitive
has implications for the end users, and thus isn't a mere
implementation detail. Also serves to emphasise that Monocypher does
implement widely reviewed standards, as opposed to home-invented
crypto.
Replaced CAVEATS by SECURITY CONSIDERATIONS. Arguably, either section
would do. I changed it because every consideration listed there would
trigger a vulnerability if not observed.
Loup Vaillant [Mon, 16 Oct 2017 21:45:02 +0000 (23:45 +0200)]
Manual review: intro
Loup Vaillant [Sat, 14 Oct 2017 17:32:21 +0000 (19:32 +0200)]
Merge pull request #55 from CuleX/master+fix-uninstall
make uninstall should not fail on partial installs
CuleX [Sat, 14 Oct 2017 16:27:54 +0000 (18:27 +0200)]
make uninstall should not fail on partial installs
rm returns non-zero when the target file does not exist. This is
possible when e.g. a user only does install-doc but not install.
Loup Vaillant [Sat, 14 Oct 2017 15:40:13 +0000 (17:40 +0200)]
Erase old html files before generating the new ones