package
0.53.1
Repository: https://github.com/shulhan/share.git
Documentation: pkg.go.dev

# Functions

Canonicalize a simple or relaxed input of DKIM-Signature value by removing the value of tag "b=" and CRLF at the end.
DecodeQP decode DKIM quoted printable text.
LookupKey DKIM (public) key using specific query method and DKIM domain name (selector plus SDID).
NewSignature create and initialize new signature using SDID ("d=") and selector ("s=") and default value for the rest of field.
Parse DKIM-Signature field value.
ParseTXT parse DNS TXT resource record into Key.

# Constants

List of valid and known canonicalization algorithms.
"simple" (default).
(default to allow all).
sha1.
sha256.
KeyFlagStrict or "s" in text, means that the domain in AUID ("i=") tag value MUST equal or subdomain of SDID "d=" tag value.
KeyFlagTesting or "y" in text, indicate that domain is for testing DKIM.
"rsa" (default).
"txt" (default).
"dns" (default).
rsa-sha1.
rsa-sha256 (default).
StatusNoSignature no dkim signature in message.
StatusOK the signature is valid.
StatusPermFail the signature failed and should not be reconsidered.
StatusTempFail the signature could not be verified at this time but may be tried again later.
StatusUnverify means that the signature has not been verified.

# Variables

DefaultKeyPool contains cached DKIM key.
DefaultNameServers contains list of nameserver's IP addresses.

# Structs

Key represent a DKIM key record.
KeyPool maintain cached DKIM public keys.
QueryMethod define a type and option to retrieve public key.
Signature represents the value of DKIM-Signature header field tag.
Status represent the result of DKIM verification.

# Type aliases

Canon define type of canonicalization algorithm.
HashAlg define the type for hash algorithm.
KeyFlag define a type of key flag in DKIM key record.
KeyType define a type of algorithm that sign the key.
QueryOption define an option for query.
QueryType define type for query.
SignAlg define the type of signing and verification algorithm.
StatusType define type of status.