From 488d045bc097d627d766531fb5ad8d48614e04ef Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Fri, 30 Aug 2013 10:38:22 -0400 Subject: [PATCH] go.crypto/openpgp/packet: use minimal interface for SerializeSignaturePrefix. Only an io.Writer is needed in this case. Fixes golang/go#6035. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/13277044 --- openpgp/packet/public_key.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openpgp/packet/public_key.go b/openpgp/packet/public_key.go index 45d944e..3a1b5db 100644 --- a/openpgp/packet/public_key.go +++ b/openpgp/packet/public_key.go @@ -340,7 +340,7 @@ func (pk *PublicKey) parseElGamal(r io.Reader) (err error) { // SerializeSignaturePrefix writes the prefix for this public key to the given Writer. // The prefix is used when calculating a signature over this public key. See // RFC 4880, section 5.2.4. -func (pk *PublicKey) SerializeSignaturePrefix(h hash.Hash) { +func (pk *PublicKey) SerializeSignaturePrefix(h io.Writer) { var pLength uint16 switch pk.PubKeyAlgo { case PubKeyAlgoRSA, PubKeyAlgoRSAEncryptOnly, PubKeyAlgoRSASignOnly: