4 ms·
Zinc: Introduce minimal cryptography library
- jwilk 8y agohttps://news.ycombinator.com/item?id=17659983 https://news.ycombinator.com/item?id=17659983
- SiempreViernes 8y ago"This initial commit adds implementations of the primitives used by WireGuard" is apparently the relation to the WireGuard discussion linked above.
- Fnoord 8y agozx2c4 (Jason A. Donenfeld) is the main developer of WireGuard, and Zinc. The name "zinc" could be a nod to NaCl / libsodium.
- bjconlan 8y agoI wonder how these perform over libsodium's implementations. (Particularly regarding the assembly).
- jedisct1 8y agoThey are probably way faster. Speed is not what libhydrogen and libsodium are obsessed about.
- nwmcsween 8y ago> cascade of architecture-specific functions is done as ifdefs within one file, so that it's easy and obvious and clear what's happening... Not in my opinion, having an arch ifdefs makes things much less clear as I effectively have to parse the ifdefs within the code while trying to understand what it's doing, compound that with n arch specific optimizations and it quickly grows out of hand. An arch over-ride file (e.g. $arch/foo.[cs] over-rides dir/foo.c) is much easier to read.
- BubuIIC 8y agoThe linux-crypto maintainer seems to agree: https://marc.info/?l=linux-crypto-vger&m=153310819905231 https://marc.info/?l=linux-crypto-vger&m=153310819905231
- ewe22 8y agoHerbert Xu is the linux-crypto maintainer and he wasn't even Cc'ed, neither was linux-crypto mailing list in the submission. Not an appropriate behavior from Wireguard folks ...
- jessaustin 8y agoOT, but I'm so glad to see the word "hesitance" rather than the abomination one might expect, "hesitancy".