Documentation
¶
Index ¶
Constants ¶
View Source
const ( MagicLength = 8 MinimumQueryLength = 52 NonceLength = 24 KeyLength = 32 )
Variables ¶
View Source
var ResolverMagic = []byte{0x72, 0x36, 0x66, 0x6e, 0x76, 0x57, 0x6a, 0x38}
Functions ¶
Types ¶
type Certificate ¶
type Certificate struct {
PublicKey [32]byte
PrivateKey [32]byte
ClientMagic []byte
Serial uint32
Start time.Time
End time.Time
Extensions []byte
Signature []byte
}
func ParseCertificate ¶
func ParseCertificate(b []byte) (*Certificate, error)
func (*Certificate) Bytes ¶
func (c *Certificate) Bytes() []byte
Bytes returns the serialized form of a Certificate. It is in the correct form for use in TXT records.
func (*Certificate) Sign ¶
func (c *Certificate) Sign(pkey ed25519.PrivateKey)
Sign signs certificate c, setting its Signature field.
type Config ¶
type Config struct {
GetCertificates func() ([]*Certificate, error)
}
Click to show internal directories.
Click to hide internal directories.