~juju-qa/ubuntu/xenial/juju/2.0-rc2

« back to all changes in this revision

Viewing changes to src/golang.org/x/crypto/openpgp/s2k/s2k.go

  • Committer: Nicholas Skaggs
  • Date: 2016-09-30 14:39:30 UTC
  • mfrom: (1.8.1)
  • Revision ID: nicholas.skaggs@canonical.com-20160930143930-vwwhrefh6ftckccy
import upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
251
251
}
252
252
 
253
253
// HashIdToString returns the name of the hash function corresponding to the
254
 
// given OpenPGP hash id, or panics if id is unknown.
 
254
// given OpenPGP hash id.
255
255
func HashIdToString(id byte) (name string, ok bool) {
256
256
        for _, m := range hashToHashIdMapping {
257
257
                if m.id == id {