> 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). I have used > NaCl from C a lot, but the Go NaCl packages are new to me. I am a little > unclear as to whether the Go routines are compatible with crypto_box_open > or libsodium's crypto_box_open_easy, for example.
After some experimentation, I found that the Go implementation is indeed compatible with libsodium's "easy" API rather than DJB's original NaCl API. I submitted an issue ticket requesting clarification in the documentation: https://github.com/golang/go/issues/33109 With some interest, I could probably write up a proposal and submit a merge request. For now, my issue describes what I found, and it provides example programs in Go and C. -- Mike :wq -- 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/20190714225222.GA19957%40imp.flyn.org. For more options, visit https://groups.google.com/d/optout.