On Fri, 12 Jul 2019 20:49:58 -0700 (PDT)
mike <m...@flyn.org> wrote:

> Does anyone have any sample code which shows interoperability between Go's 
> golang.org/x/crypto/nacl/box and C's NaCl or libsodium? I have been having 
> trouble boxing with Go and opening with NaCl (and vice versa).
> Mike

Once upon a time unknown three letter force of nature managed to change a
character in the reference NaCl source, and copies of this tampered source
persist on the net. Make sure you're not using this tampered one.
As per "x/crypto/nacl/box" declaration, it should be the direct equivalent of 
the [2].

As a result of discovered tampering the [3] reference implementation had been
produced and carefully inspected upon release. This is the version to be used
in vetting other implementations.


>>> On Friday, July 12, 2019 at 10:34:10 PM UTC-6, Ian Lance Taylor wrote:
>>> we are dropping NaCl support from Go after the 1.13 release. 

>> On Sat, 13 Jul 2019 06:56:40 -0700 (PDT) B Carr <buc...@gmail.com> wrote:
>> Ugh. Why is that? What is the recommended replacement?

Names clash: for most Googlers and web developers NaCl stands  for 'Native 
Client' [1]. 

For the crypto community NaCl[2][3] is a recognized name of Daniel J. Bernstein
NaCl library implementing his inventions (Curve25519 public key crypto
and Salsa family of ciphers). Famous D.J.Bernstein's "own build mode habits" 
effected
in the libsodium[4] - an open source "rich" version of the original NaCl 
reference code.
Libsodium follows build habits of the rest of the world.

>> Ugh. Why is that? What is the recommended replacement?
Now, was the question about [1] or  [5]? :)

[1] https://en.wikipedia.org/wiki/Google_Native_Client
[2] https://nacl.cr.yp.to/
[3] https://tweetnacl.cr.yp.to/
[4] https://libsodium.org
[5] https://golang.org/x/crypto/nacl/box


Hope this helps,

-- 
Wojciech S. Czarnecki
 << ^oo^ >> OHIR-RIPE

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/20190713164930.5c7bdbd6%40zuzia.
For more options, visit https://groups.google.com/d/optout.

Reply via email to