[go-nuts] Re: failure in go.crypto and GnuPG interoperability

Bernd Fix brf at hoi-polloi.org
Thu Jan 30 22:47:34 CET 2014


Am 30.01.2014 18:28, schrieb Casey Marshall:
> go.crypto is interpreting the plaintext input as text and mangling it,
> as the input is binary. If you encrypt with:
> 
> cWrt, err := openpgp.Encrypt(cBuf, ents, nil,
> &openpgp.FileHints{IsBinary: true}, nil)
> 
> you should see output identical to the input.

Indeed - that solved the problem. Thanks a lot.

Cheers, Bernd.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 551 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20140130/5ac9c06e/attachment.sig>


More information about the Gnupg-devel mailing list