internal/model/dkim.go (view raw)
1package model
2
3type DKIMAlgorithmType string
4
5var (
6 // Verifiers MUST be able to validate signatures with keys ranging from 1024 bits to 4096 bits.
7 // https://datatracker.ietf.org/doc/html/rfc8301
8 DKIMAlgorithmRSA2048 DKIMAlgorithmType = "rsa-2048"
9 DKIMAlgorithmRSA4096 DKIMAlgorithmType = "rsa-4096"
10 // https://datatracker.ietf.org/doc/html/rfc8463
11 DKIMAlgorithmEd25519 DKIMAlgorithmType = "ed25519-sha256"
12)
13
14type DKIM struct {
15 ID int
16 Domain, Selector, BlobAddress string
17 KeyType DKIMAlgorithmType
18 Enabled bool
19}