LoupVaillant / Monocypher

An easy to use, easy to deploy crypto library
https://monocypher.org
Other
594 stars 79 forks source link

Docs feedback #58

Closed mikejsavage closed 6 years ago

mikejsavage commented 6 years ago

I'm not done yet, but here are my notes so far. I hope this is readable!

intro.html

crypto_aead_lock.html crypto_aead_unlock.html crypto_lock.html crypto_unlock.html

crypto_argon2i.html

crypto_blake2b.html crypto_blake2b_final.html crypto_blake2b_general.html crypto_blake2b_general_init.html crypto_blake2b_init.html crypto_blake2b_update.html

crypto_chacha20_H.html

crypto_chacha20_encrypt.html crypto_chacha20_init.html crypto_chacha20_set_ctr.html crypto_chacha20_stream.html crypto_chacha20_x_init.html

crypto_check.html crypto_sign.html crypto_sign_public_key.html

crypto_check_final.html crypto_check_init.html crypto_check_update.html crypto_sign_final.html crypto_sign_init_first_pass.html crypto_sign_init_second_pass.html crypto_sign_update.html

crypto_key_exchange.html crypto_x25519.html crypto_x25519_public_key.html

crypto_lock_auth.html crypto_lock_encrypt.html crypto_lock_final.html crypto_lock_init.html crypto_lock_update.html crypto_unlock_final.html crypto_unlock_update.html

crypto_memcmp.html crypto_zerocmp.html

crypto_poly1305.html crypto_poly1305_final.html crypto_poly1305_init.html crypto_poly1305_update.html

crypto_verify16.html crypto_verify32.html crypto_verify64.html

crypto_wipe.html

mikejsavage commented 6 years ago

crypto_wipe's size arg is called secret_size in the manual, size in the header

also I guess "It probably wasn't the only copy..." in the header is a joke but it's a bit confusing :d

mikejsavage commented 6 years ago

crypto_aead_lock/argon2i examples are like

uint8_t       *text;      /* Message to decrypt        */
size_t         text_size; /* Message size (NOT secret) */

when other pages have examples like uint8_t message[500];

should we fix the examples to only use one or the other?

mikejsavage commented 6 years ago

one more PR is up. hopefully the last. https://github.com/LoupVaillant/Monocypher/pull/76

going to add loup's todo list to the PR because it has threading and is easier to follow

@CuleX, can you make the const PR (including docs changes)?

ghost commented 6 years ago

On it.

LoupVaillant commented 6 years ago

You guys are outstanding. Reviewing the PRs now.

LoupVaillant commented 6 years ago

Looks all good from my end. Can we close this now?

mikejsavage commented 6 years ago

I would like to try tweaking the argon2i page to be like the aead_lock page, with the additional data arguments in a separate block

soon.

LoupVaillant commented 6 years ago

Okay, works for me.

LoupVaillant commented 6 years ago

Hi, @mikejsavage, any news from the argon2i page?

mikejsavage commented 6 years ago

no, no progress

I'll have another go at it some time this week

do you want me to write up the new aliases too?

LoupVaillant commented 6 years ago

Oh yes that would be great, thanks!

LoupVaillant commented 6 years ago

OK, now we should be good to go. Any last word before we close this? (@mikejsavage, sorry for stealing your work, but I'd like to release Monocypher monday. Hope you're well.)

ghost commented 6 years ago

LGTM apart from the comments made on the commit. Same for #80. Apologies for sleeping on this, irl was kind of a mess so it fell under the truck.

mikejsavage commented 6 years ago

sorry too for letting this slide!

reviewing commits/website now

LoupVaillant commented 6 years ago

Okay, I've done some last corrections. Closing this now, feel free to reopen it if I forgot anything.

mikejsavage commented 6 years ago

as predicted it only took a few days

LoupVaillant commented 6 years ago

Planning fallacy for the win!