LoupVaillant/Monocypher
View on GitHub ↗ ★ 797 C
An easy to use, easy to deploy crypto library
12 mentions on Hacker News by 7 people: 1 story, 11 comments · first 2017-07-22 · latest 2022-04-20
20082026
-
…zero and MAX? I guess that would work. Also, would you consider the following to be fuzz testing? https://github.com/LoupVaillant/Monocypher/blob/master/tests...
comment by loup-vaillant · 2022-04-20 · in Psychic Signatures in Java -
…[2] https://github.com/BLAKE3-team/BLAKE3/blob/master/LICENSE [3] https://github.com/LoupVaillant/Monocypher/blob/master/LICEN...
comment by beefhash · 2020-07-13 · in On Open Source, licenses and changes -
…It makes very tasteful use of comments, functions and macros to maximize readability and clarity. https://github.com/LoupVaillant/Monocypher
comment by beefhash · 2018-09-21 · in Ask HN: What open source project, in your opinion, has the highest code quality? -
…That test suite is top notch at catching bugs, but it sucks big time at documenting Monocypher. https://github.com/LoupVaillant/Monocypher/blob/master/tests...
comment by loup-vaillant · 2018-05-20 · in Libui: a portable GUI library for C -
Here's a real world example: https://github.com/LoupVaillant/Monocypher/commit/d7bb73f65a... So I have this function, `crypto_wipe()` that wipes memory regions with `volatile` so the compiler doesn't optimises it away. In the link above I…
comment by loup-vaillant · 2018-04-29 · in Competitive Programmer's Handbook (2017) [pdf] -
…code within hours". This change to Blake2b for instance took me a few minutes to make and verify. https://github.com/LoupVaillant/Monocypher/commit/80ebf55307... > A strong feeling that something is "bug-free" does not tell me that…
comment by loup-vaillant · 2017-11-27 · in Unit Testing Doesn’t Affect Codebases the Way You Would Think -
…Also, what the hell is this macro defined in the middle of a function and then only used twice: https://github.com/LoupVaillant/Monocypher/blob/master/src/m... Why do you need this function for "constant time comparison to 0":…
comment by capitalsigma · 2017-11-27 · in Unit Testing Doesn’t Affect Codebases the Way You Would Think -
…(although you could do much of the same with macros, but I'm not sure if that's any better). [1]: https://github.com/LoupVaillant/Monocypher/blob/master/src/m...
comment by joshuamorton · 2017-11-27 · in Unit Testing Doesn’t Affect Codebases the Way You Would Think -
…this is justified. Also, quality requirements for crypto code are kinda off the chart.) [1]: https://github.com/LoupVaillant/Monocypher
comment by loup-vaillant · 2017-11-26 · in Unit Testing Doesn’t Affect Codebases the Way You Would Think -
`ctx->c` is a u32[1] and msg is u8. So yeah there is integer promotion here. [1]: https://github.com/LoupVaillant/Monocypher/blob/master/src/m...
comment by baby · 2017-08-03 · in How I implemented my own crypto -
…wrong. Would really appreciate it if someone here could show a test case where this matters. [1] https://github.com/LoupVaillant/Monocypher/commit/347189c50c...
comment by kbeckmann · 2017-08-03 · in How I implemented my own crypto