crypto/openpgp
Samuele Pedroni 00c1479577 x/crypto/openpgp: support crypto.Signer private keys
This adds support for crypto.Signer-based RSA and ECDSA private keys.
This enables using opaque signing keys as explained in the documentation
for crypto.Signer.

The support is in the form of a new NewSignerPrivateKey function which
makes a PrivateKey from a crypto.Signer.

Fixes golang/go#15841.

Change-Id: Ice2ec2793a9f5409a5bfd4e5e49d919e14ede1e0
Reviewed-on: https://go-review.googlesource.com/23802
Run-TryBot: Adam Langley <agl@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Adam Langley <agl@golang.org>
2016-10-04 19:56:12 +00:00
..
armor crypto: add import comments. 2014-12-09 23:26:36 +00:00
clearsign openpgp/clearsign: Handle truncated messages 2016-03-10 22:05:46 +00:00
elgamal crypto: add import comments. 2014-12-09 23:26:36 +00:00
errors crypto: add import comments. 2014-12-09 23:26:36 +00:00
packet x/crypto/openpgp: support crypto.Signer private keys 2016-10-04 19:56:12 +00:00
s2k x/crypto/openpgp/s2k: fix misleading function comment 2016-05-04 14:33:35 +00:00
canonical_text.go go.crypto: initial code 2012-01-25 15:31:12 -05:00
canonical_text_test.go go.crypto: initial code 2012-01-25 15:31:12 -05:00
keys.go opengpg: set SelfSignature.PreferredHash in NewEntity 2016-09-13 21:11:04 +00:00
keys_test.go opengpg: set SelfSignature.PreferredHash in NewEntity 2016-09-13 21:11:04 +00:00
read.go openpgp: fix a typo in a comment 2016-09-28 22:09:27 +00:00
read_test.go openpgp: Allow V3 signatures in messages 2016-04-06 04:37:51 +00:00
write.go x/crypto: fix typos 2016-07-06 16:40:51 +00:00
write_test.go openpgp: ECDSA key and signature support 2016-03-14 20:49:18 +00:00