File: pgpmail.go

package info (click to toggle)
golang-github-emersion-go-pgpmail 0.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 136 kB
  • sloc: makefile: 2
file content (19 lines) | stat: -rw-r--r-- 444 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Package pgpmail implements PGP encryption for e-mail messages.
//
// PGP/MIME is defined in RFC 3156.
package pgpmail

import (
	"crypto"
)

// See RFC 4880, section 9.4.
var hashAlgs = map[string]crypto.Hash{
	"pgp-md5":       crypto.MD5,
	"pgp-sha1":      crypto.SHA1,
	"pgp-ripemd160": crypto.RIPEMD160,
	"pgp-sha256":    crypto.SHA256,
	"pgp-sha384":    crypto.SHA384,
	"pgp-sha512":    crypto.SHA512,
	"pgp-sha224":    crypto.SHA224,
}